Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl committed Oct 13, 2024
1 parent f3a2dd3 commit 25e3ca8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web/views/flow_player_drm.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,20 @@
console.log("The video has now been loaded!");
} catch (e) {
console.error("Error loading video", e);
switch(e.code){
switch (e.code) {
case 1001:
alert("The channel is not available.");
break;
case 6001:
alert("Widevine DRM content can't be played in http (except localhost). Please enable https in server.");
alert(
"Widevine DRM content can't be played in http (except localhost). Please enable https in server."
);
break;
default:
alert("An error occurred. Please try again later. Shaka Error code: " + e.code);
alert(
"An error occurred. Please try again later. Shaka Error code: " +
e.code
);
}
}

Expand Down

0 comments on commit 25e3ca8

Please sign in to comment.