Bug 261813 - Managed Media Source doesn't work on iOS
Summary: Managed Media Source doesn't work on iOS
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-20 03:40 PDT by Vitaly
Modified: 2023-10-03 23:47 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly 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)
Comment 1 Vitaly 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
Comment 2 Alexey Proskuryakov 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.
Comment 3 Vitaly 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
Comment 4 Jean-Yves Avenard [:jya] 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.
Comment 5 Jean-Yves Avenard [:jya] 2023-09-21 15:45:20 PDT
Re-opening it, because there is indeed an issue at present.
Comment 6 Radar WebKit Bug Importer 2023-09-21 15:45:39 PDT
<rdar://problem/115864800>
Comment 7 Vitaly 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
Comment 8 Jean-Yves Avenard [:jya] 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.
Comment 9 Vitaly 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
Comment 10 Alexey Proskuryakov 2023-09-28 09:04:35 PDT
Yes, very sorry about that. We expect it to be fixed in beta 2.
Comment 11 Vitaly 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!