googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
445 stars 285 forks source link

Under some specific devices, the HLS m3u8 video cannot be played after the pre-roll ads. #1137

Open Jerome-lara opened 4 months ago

Jerome-lara commented 4 months ago

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" />

QQ20240314-183028@2x
davlasq commented 2 months ago

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.