Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedMediaPlayer ¶
type AdvancedMediaPlayer interface {
PlayVLC()
PlayMP4()
}
type MediaPlayer ¶
type MediaPlayer interface {
Play(string)
}
type MediaPlayerAdapter ¶
type MediaPlayerAdapter struct {
//MediaType string
MediaType string
}
创建adapter
func NewMediaPlayerAdapter ¶
func NewMediaPlayerAdapter(mt string) *MediaPlayerAdapter
func (*MediaPlayerAdapter) Play ¶
func (mpa *MediaPlayerAdapter) Play(fileName string)
Click to show internal directories.
Click to hide internal directories.