Browse Source

hls: format code (#2634)

pull/2638/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
d41e4025de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/hls_index.html

2
internal/core/hls_index.html

@ -44,9 +44,11 @@ const create = (video) => {
hls.on(Hls.Events.MEDIA_ATTACHED, () => { hls.on(Hls.Events.MEDIA_ATTACHED, () => {
hls.loadSource('index.m3u8' + window.location.search); hls.loadSource('index.m3u8' + window.location.search);
}); });
hls.on(Hls.Events.MANIFEST_PARSED, () => { hls.on(Hls.Events.MANIFEST_PARSED, () => {
video.play(); video.play();
}); });
hls.attachMedia(video); hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) { } else if (video.canPlayType('application/vnd.apple.mpegurl')) {

Loading…
Cancel
Save