Skip to content

Commit

Permalink
Fix: ws emit edit current status
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 7, 2023
1 parent 679294e commit ef03a3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/Cinema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ watch(
// 设置正在播放的影片
case WsMessageType.CURRENT_MOVIE: {
room.currentMovie = jsonData.current.movie;
room.currentMovieStatus = jsonData.current.status;
break;
}
Expand Down Expand Up @@ -615,6 +616,7 @@ const syncCurrent = () => {
jsonData.url = `${window.location.origin}/api/movie/live/${jsonData.pullKey}.flv`;
// jsonData.url = `${window.location.origin}/api/movie/live/${jsonData.pullKey}.m3u8`;
}
console.log(jsonData);
playerOptions.value = {
url: jsonData.url,
isLive: jsonData.live,
Expand Down

0 comments on commit ef03a3f

Please sign in to comment.