hls: format code (#2634)

This commit is contained in:
Alessandro Ros 2023-11-03 09:42:37 +01:00 committed by GitHub
parent 39a239caba
commit d41e4025de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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