mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 13:38:16 +08:00
ui界面优化,event handler优化-新增任务池模式,歌词加载优化,新房间管理(可以自动连接) 本地音频搜索算法优化,
This commit is contained in:
@@ -241,7 +241,7 @@ func (p *corePlaylist) Get(index int) *model.Media {
|
||||
}
|
||||
|
||||
func (p *corePlaylist) Pop() *model.Media {
|
||||
lg.Info("[Playlists] %s pop first media", p.Playlist)
|
||||
lg.Debugf("[Playlists] %s pop first media", p.Playlist)
|
||||
if p.Size() == 0 {
|
||||
return nil
|
||||
}
|
||||
@@ -262,7 +262,9 @@ func (p *corePlaylist) Pop() *model.Media {
|
||||
}
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistUpdate,
|
||||
model.PlaylistUpdateEvent{Playlist: p.Playlist.Copy()},
|
||||
model.PlaylistUpdateEvent{
|
||||
Playlist: p.Playlist.Copy(),
|
||||
},
|
||||
)
|
||||
return m
|
||||
}
|
||||
@@ -275,7 +277,9 @@ func (p *corePlaylist) Replace(medias []*model.Media) {
|
||||
p.Lock.Unlock()
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistUpdate,
|
||||
model.PlaylistUpdateEvent{Playlist: p.Playlist.Copy()},
|
||||
model.PlaylistUpdateEvent{
|
||||
Playlist: p.Playlist.Copy(),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -315,7 +319,9 @@ func (p *corePlaylist) Insert(index int, media *model.Media) {
|
||||
p.Lock.Unlock()
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistUpdate,
|
||||
model.PlaylistUpdateEvent{Playlist: p.Playlist.Copy()},
|
||||
model.PlaylistUpdateEvent{
|
||||
Playlist: p.Playlist.Copy(),
|
||||
},
|
||||
)
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistInsert,
|
||||
@@ -343,7 +349,9 @@ func (p *corePlaylist) Delete(index int) *model.Media {
|
||||
}
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistUpdate,
|
||||
model.PlaylistUpdateEvent{Playlist: p.Playlist.Copy()})
|
||||
model.PlaylistUpdateEvent{
|
||||
Playlist: p.Playlist.Copy(),
|
||||
})
|
||||
return m
|
||||
}
|
||||
|
||||
@@ -376,7 +384,9 @@ func (p *corePlaylist) Move(src int, dst int) {
|
||||
p.Lock.Unlock()
|
||||
p.eventManager.CallA(
|
||||
model.EventPlaylistUpdate,
|
||||
model.PlaylistUpdateEvent{Playlist: p.Playlist.Copy()})
|
||||
model.PlaylistUpdateEvent{
|
||||
Playlist: p.Playlist.Copy(),
|
||||
})
|
||||
}
|
||||
|
||||
func (p *corePlaylist) Next() *model.Media {
|
||||
|
||||
Reference in New Issue
Block a user