Bug 274142 - Managed MSE + AirPlay does not work
Summary: Managed MSE + AirPlay does not work
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-05-14 01:56 PDT by Mattias Bergström
Modified: 2024-05-15 23:50 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Bergström 2024-05-14 01:56:26 PDT
When using Managed MSE with an additional source for HLS AirPlay support the video doesn't switch to the AirPlay target, instead it keeps playing in the local video element.

How to reproduce:

1. Open https://webkit.org/blog/15036/how-to-use-media-source-extensions-with-airplay/
2. Start playing the example video.
3. Select an AirPlay target.

Expected outcome: Video starts playing on the target.
Actual outcome: Video keeps playing on the local device. An airplay icon is briefly shown on the video element if the video is paused and then played again.

Affected platforms:
macOS 14.4.1
iOS 17.4.1 and 17.5
Comment 1 Radar WebKit Bug Importer 2024-05-14 09:09:40 PDT
<rdar://problem/128068121>
Comment 2 Ahmad Saleem 2024-05-14 14:21:24 PDT
@Mattias - was this working prior to 17.4 (e.g., in 17.3), just trying to confirm whether it is recent regression or not and if you know top of your head.
Comment 3 Jean-Yves Avenard [:jya] 2024-05-14 17:08:58 PDT
The issue is in the page. It sets a src attribute which will make it ignore the <source> children.
Comment 4 Mattias Bergström 2024-05-15 23:50:50 PDT
Unfortunately I don't have any information regarding older versions. But as mentioned, the issue seems to be in the example. I was able to get it to work correctly by removing the src attribute.