客户端播放音乐时,多次推送给客户端

This commit is contained in:
wulin 2023-10-28 21:56:48 +08:00
parent 1c7a8905c1
commit 9d8bc48c35

View File

@ -76,7 +76,6 @@ public class MusicActionCommand extends ActionCommand implements IActionCommand
log.info("推送Box播放音乐");
BoxSession boxSession = baseWebSocketService.getBoxSessionWithSn(baseSession.getSn());
if(boxSession != null){
baseWebSocketService.sendMsg(boxSession, resp);
//记录音乐状态
if(resp.getMusic().getPlay().equals(PlayEnum.STOP.getCode())){
//去掉内存中音乐同步对象