videojs-ima
videojs-ima copied to clipboard
Under some specific devices, the HLS m3u8 video cannot be played after the pre-roll ads.
I searched the problem records and found many people with the same problem as me, but none of them were solved. For example, after replacing the mp4 video in the official demo with m3u8, and change user agent to iphone, the problem can be reproduced.
https://codepen.io/imasdk/pen/wpyQXP
m3u8 video: <source src="https://customer-pp9pw84f78fe5x2r.cloudflarestream.com/bee4361401e57a115541e9aa7b3e7c24/manifest/video.m3u8" type="application/x-mpegURL" />
If HLS stops working after you set iPhone user agent in your desktop browser it is because iPhone can play HLS natively while other devices/browsers use HLS.js for that so when you set your user agent to iPhone Video.js tries to play video natively and it doesn't work because this feature isn't supported.