const vod = new Vod({
Vod.Configs.MAX_BUFFER_LENGTH:60,
Vod.Configs.MAX_FLY_BUFFER_LENGTH:30,
Vod.Configs.SEGMENT_MAX_TIMEOUT:30 * 1000,
Vod.Configs.MAX_LEVEL_RETRY_COUNT:4,
Vod.Configs.REQUEST_RETRY_COUNT:2,
Vod.Configs.REQUEST_RETRY_DELAY:1000,
Vod.Configs.ABR_ENABLE:true,
Vod.Configs.WORKER_ENABLE:true,
})
vod.attachMedia(document.querySelector('video'))
vod.loadSource('xxxx.m3u8')
vod.loadSource('xxxx.master.m3u8')
vod.on(Vod.Events.ERROR,e => {
})
vod.on(Vod.Events.MANIFEST_LOADED,playlist => {
})
vod.on(Vod.Events.LEVEL_CHANGED,levelId => {
})