Fix: ws emit edit current status

This commit is contained in:
zijiren233 2023-10-07 23:35:29 +08:00
parent 679294e957
commit ef03a3f835
1 changed files with 2 additions and 0 deletions

View File

@ -528,6 +528,7 @@ watch(
//
case WsMessageType.CURRENT_MOVIE: {
room.currentMovie = jsonData.current.movie;
room.currentMovieStatus = jsonData.current.status;
break;
}
@ -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,