Skip to content

Commit

Permalink
Fix video player not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
killergerbah committed Feb 11, 2021
1 parent dba3fcd commit 50c58f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function Player(props) {
const channelId = String(Date.now());
channel = new VideoChannel(new BroadcastChannelVideoProtocol(channelId));
window.open(
'/?video=' + encodeURIComponent(videoFileUrl) + '&channel=' + channelId,
process.env.PUBLIC_URL + '/?video=' + encodeURIComponent(videoFileUrl) + '&channel=' + channelId,
'asbplayer-video-' + videoFileUrl,
"resizable,width=800,height=450"
);
Expand Down

0 comments on commit 50c58f4

Please sign in to comment.