Skip to content

Commit

Permalink
规范了代码,添加了注释。
Browse files Browse the repository at this point in the history
  • Loading branch information
fanmingming authored Nov 25, 2022
1 parent 027c0c7 commit 67003f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/player.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var video = document.getElementById('video');
var vurl = location.search.split('vurl=')[1];
var videoSrc = vurl;
// 检查浏览器是否支持HLS
// 检查浏览器是否支持hls
if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = videoSrc;
// 如不支持则调用hls.min.js
// 如不支持则调用hls.min.js
} else if (Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(videoSrc);
Expand Down

0 comments on commit 67003f3

Please sign in to comment.