Skip to content

Commit

Permalink
Update player.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Feb 21, 2024
1 parent 85cb4bd commit 05af858
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions player.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</head>
<body>
<iframe width="100%" height="100%" frameBorder="0" id="mse"></iframe>
<video width="540" height="310" controls>
<video width="100%" height="100%"controls>
<source id="vidf" src="" type="video/mp4">
</video>

Expand All @@ -37,8 +37,12 @@
var file = window.location.hash.split('#')[1];
file = hex2a(file); // returns '2460'
console.log(file);
mse.src=file
vidf.src=file
if (file.includes(".mp4")){
vidf.src=file
mse.remove();
}else {
mse.src=file
}

</script>

Expand Down

0 comments on commit 05af858

Please sign in to comment.