Skip to content

Commit

Permalink
Feat: movie proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyCreeper committed Nov 4, 2023
1 parent 3b56f9b commit 750f645
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 @@ -648,6 +648,8 @@ const playerUrl = computed(() => {
default:
return `${window.location.origin}/api/movie/live/${room.currentMovie.id}.flv`;
}
} else if (room.currentMovie.base?.proxy) {
return `${window.location.origin}/api/movie/proxy/${roomID.value}/${room.currentMovie.id}`;
} else {
return room.currentMovie.base!.url;
}
Expand Down

0 comments on commit 750f645

Please sign in to comment.