Bug 261813

Summary: Managed Media Source doesn't work on iOS
Product: WebKit Reporter: Vitaly <vitaly.ivanov>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, jean-yves.avenard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: Other   

Vitaly
Reported 2023-09-20 03:40:18 PDT
MMS-based playback never starts on iOS 17 / iPhone 12 with symptoms similar to what happened on macOS / Safari TP 17 before I disabled AirPlay with video.disableRemotePlayback = true. Steps to reproduce: 1. Enable MMS on your iPhone; 2. Load https://vitaly-castlabs.github.io/mms/ on it in Safari Expected result: The video is loaded and the first frame is shown. Actual result: Nothing is displayed with the following log: 9: got loadstart event 10: got sourceopen event 11: ok(true) Receive a sourceopen event 13: got startstreaming event 3159: got stalled event The code I'm using is based on https://github.com/jyavenard/htmltests/blob/master/tests/ManagedMediaSource/bipbop.html with some extra FairPlay stuff (which is not triggered) and is stored here: https://github.com/vitaly-castLabs/mms/blob/main/main.js It is worth mentioning it works fine on macOS 13.5.2 / MB Air M1 / Safari 17 TP, with both regular and encrypted media - after I blocked AirPlay (I don't have any AirPlay devices handy)
Attachments
Vitaly
Comment 1 2023-09-20 03:43:22 PDT
I tried to flip that MMS + AirPlay experimental flag in iPhone Safari settings as well, but it didn't change anything
Alexey Proskuryakov
Comment 2 2023-09-20 10:46:22 PDT
According to https://webkit.org/blog/14445/webkit-features-in-safari-17-0/, support for Managed Media Source is coming to iPhone with iOS 17.1 beta.
Vitaly
Comment 3 2023-09-20 19:20:39 PDT
Thanks for clarification! That explains it. WWDC presentation was misleading with "...Managed MSE is available in Safari 17 on macOS and iPad OS and behind an experimental flag on iPhone...", not mentioning it's not functional yet, even if you flip the flag. I guess it's not what people want to hear at WWDC
Jean-Yves Avenard [:jya]
Comment 4 2023-09-21 15:44:58 PDT
(In reply to Vitaly from comment #3) > Thanks for clarification! That explains it. WWDC presentation was misleading > with "...Managed MSE is available in Safari 17 on macOS and iPad OS and > behind an experimental flag on iPhone...", not mentioning it's not > functional yet, even if you flip the flag. I guess it's not what people want > to hear at WWDC Managed Media Source has been functional in all iOS 17 beta and was available at WWDC What is changing in iOS 17.1 is that Managed Media Source is enabled by default. Apparently we had a bit of a mix-up in our production configuration, and a system API Safari relies on for MMS/MSE to work was disabled in customer release. This has been corrected.
Jean-Yves Avenard [:jya]
Comment 5 2023-09-21 15:45:20 PDT
Re-opening it, because there is indeed an issue at present.
Radar WebKit Bug Importer
Comment 6 2023-09-21 15:45:39 PDT
Vitaly
Comment 7 2023-09-21 20:13:46 PDT
Oh, that's unfortunate. Thanks for sorting this out! Looking forward to 17.1 dev beta to try it out
Jean-Yves Avenard [:jya]
Comment 8 2023-09-21 23:24:02 PDT
There's nothing to do here on the webkit side of things and manually verified that the site is working as intended.
Vitaly
Comment 9 2023-09-27 17:11:22 PDT
I've just installed iOS 17.1 beta (21B5045h), and it still doesn't work - exact same behavior as with iOS 17
Alexey Proskuryakov
Comment 10 2023-09-28 09:04:35 PDT
Yes, very sorry about that. We expect it to be fixed in beta 2.
Vitaly
Comment 11 2023-10-03 23:47:27 PDT
I just tried it with 17.1 beta 2 and it indeed works, both with clear and unencrypted content. Thank you!
Note You need to log in before you can comment on or make changes to this bug.