peaBerberian / wasp-hls

WebAssembly-based (Rust) & in-worker HLS Media Player for the web
https://peaberberian.github.io/wasp-hls/
MIT License
124 stars 4 forks source link

By May of 2024, does this project support iPhone browser? #9

Closed WENPIN1 closed 3 weeks ago

WENPIN1 commented 3 months ago

By May of 2024, does this project support iPhone browser?

I checked the demo on iphone, but it has a MediaSourceAttachmentError.

photo_2024-05-16_15-19-24

Thanks for your help!

peaBerberian commented 1 month ago

Hi (sorry for the very late response! This POC fulfilled its role and I'm since into low-maintenance mode on it),

I think that the MediaSource API on which we rely here to feed media data to the browser is not available on iPhones. Apple chose to implement an alternative, ManagedMediaSource (https://webkit.org/blog/14735/webkit-features-in-safari-17-1/).

Quickly, I don't see why we couldn't alternatively rely on ManagedMediaSource (which has some other requirements), but I don't have any iOS device to properly test it :/

Though if you (or anyone) want to implement this in this project, you can provide a pull request to it or fork that project to adapt it to your need, I have 0 issue with that (on the contrary).

WENPIN1 commented 3 weeks ago

Thank you for your handsome efforts very much!