Versions in this module Expand all Collapse all v1 v1.1.1 Jun 8, 2020 Changes in this version + const ModeListLoop — linux/amd64, windows/amd64 + const ModeRandom — linux/amd64, windows/amd64 + const ModeSingleLoop — linux/amd64, windows/amd64 + const ModeSingleStop — linux/amd64, windows/amd64 + const NoStatus — linux/amd64, windows/amd64 + const SourceFile — linux/amd64, windows/amd64 + const SourceWeb — linux/amd64, windows/amd64 + const StatusOther — linux/amd64, windows/amd64 + const StatusPaused — linux/amd64, windows/amd64 + const StatusPlaying — linux/amd64, windows/amd64 + const StatusStopped — linux/amd64, windows/amd64 + func Release() — linux/amd64, windows/amd64 + type Music struct — linux/amd64, windows/amd64 + Album string + Author string + Cover string + FilePath string + Handle uint + ID int + Length int + Name string + PlaySourceType int + func (m *Music) GetLength() int + func (m *Music) GetPosition() int + func (m *Music) SetCover(src string) + func (m *Music) SetPosition(sec int) int + type Player struct — linux/amd64, windows/amd64 + CurrentLength int + IsShowProgress bool + LastHandle uint + LastIndex int + LastSecond int + Login *account.Login + LyricSwitch bool + NowPlayingIndex int + NowPlayingSheetID int + PlayFeature int + PlayMode int + Playlist []Music + Status uint + Volume uint + func NewPlayer(login *account.Login) *Player + func (p *Player) AttachFile(file string) + func (p *Player) AttachFileWeb(url string) + func (p *Player) EmptyPlayList() + func (p *Player) FreeStream(handle uint) uint32 + func (p *Player) GetCurrentIndex() int + func (p *Player) GetLastIndex() int + func (p *Player) GetNextIndex() int + func (p *Player) GetRandomIndex() int + func (p *Player) GetVolume() uint + func (p *Player) Last() + func (p *Player) Next() + func (p *Player) Pause() + func (p *Player) Play() + func (p *Player) RefreshPlayURL() + func (p *Player) RemoveFile(index int) + func (p *Player) SetCurrentIndex(index int) + func (p *Player) SetPlayFeature(fea int) + func (p *Player) SetPlayMode(mode int) + func (p *Player) SetVolume(value uint) uint + func (p *Player) Stop()