forked from External/mediamtx
hls: format code (#2634)
This commit is contained in:
parent
39a239caba
commit
d41e4025de
1 changed files with 2 additions and 0 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue