mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Add regression test for hls.media prop.
This commit is contained in:
@@ -33,7 +33,11 @@ if (Hls.isSupported()) {
|
||||
|
||||
const version: string = Hls.version;
|
||||
hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8');
|
||||
hls.attachMedia(video);
|
||||
if (hls.media === undefined || hls.media === null) {
|
||||
hls.attachMedia(video);
|
||||
} else {
|
||||
console.log('src: ', hls.media.src);
|
||||
}
|
||||
|
||||
hls.once(Hls.Events.MANIFEST_PARSED, (event: "hlsManifestParsed", data: Hls.manifestParsedData) => {
|
||||
video.play();
|
||||
|
||||
Reference in New Issue
Block a user