forked from mbk-lab/rui_orig
2
0
Fork 0
rui/audioPlayer.go

36 lines
715 B
Go
Raw Normal View History

2021-09-07 17:36:50 +03:00
package rui
type AudioPlayer interface {
MediaPlayer
}
type audioPlayerData struct {
mediaPlayerData
}
// NewAudioPlayer create new MediaPlayer object and return it
2021-11-04 21:21:42 +03:00
func NewAudioPlayer(session Session, params Params) AudioPlayer {
2021-09-07 17:36:50 +03:00
view := new(audioPlayerData)
view.Init(session)
view.tag = "AudioPlayer"
setInitParams(view, params)
return view
}
func newAudioPlayer(session Session) View {
return NewAudioPlayer(session, nil)
}
func (player *audioPlayerData) Init(session Session) {
player.mediaPlayerData.Init(session)
player.tag = "AudioPlayer"
}
2022-05-22 12:54:02 +03:00
func (player *audioPlayerData) String() string {
return getViewString(player)
}
2021-09-07 17:36:50 +03:00
func (player *audioPlayerData) htmlTag() string {
return "audio"
}