Skip to content

Native HLS on Safari only for AirPlay #5022

Closed
@niklaskorz

Description

Have you read the FAQ and checked for duplicate open issues?

Yes

Is your feature request related to a problem? Please describe.

When using AirPlay on Safari with useNativeHlsOnSafari: false, AirPlay becomes unusable. This is because the blob source set on the video element cannot be handled by the AirPlay target.

Describe the solution you'd like

As of Safari 16.4, Safari can automatically fall back to another supported <source> element when starting AirPlay. An example is provided by this test in the WebKit repository. The basic idea would be to provide both the Media Source Extensions-backed video blob and the address of the HLS playlist as separate <source> elements as children of the <video> element.

Describe alternatives you've considered

An alternative would be to re-enable useNativeHlsOnSafari when AirPlay is requested by the user, seek to the previous timestamp and start playback again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

browser: SafariIssues affecting Safari or WebKit derivativespriority: P3Useful but not urgentstatus: archivedArchived and locked; will not be updatedtype: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions