Skip to content

Bug: On-Demand video treated as live on Safari with Media Chrome #915

@jakubslambor

Description

@jakubslambor

Is there an existing issue for this?

  • I have searched the existing issues

Which Mux Elements/Packages does this apply to? Select all that apply

mux-video

Which browsers are you using?

Safari

Which operating systems are you using?

macOS

Description

When using <mux-video> in conjunction with Media Chrome, since version v0.16.5, when you try to play a HLS (.m3u8) video in macOS/iOS Safari, it treats it as mediastreamtype="live" on the Media Chrome <media-controller>. This causes the video to start from the beginning on every play/pause, and other weird behavior:

CleanShot.2024-05-02.at.18.52.02.mp4

CleanShot 2024-05-02 at 18 52 51@2x

versions <0.16.5 (0.16.4) and non-hsl streams work fine

https://www.media-chrome.org/docs/en/stream-type

Reduced test case

https://codesandbox.io/p/devbox/media-stream-type-qmjqmn?file=%2Fsrc%2FApp.vue

Steps to reproduce

reproduction sandbox is provided; remember to use Safari where this issue is present

Current Behavior

<media-controller> is mediastreamtype="live", which is incorrect

Expected Behavior

<media-controller> is mediastreamtype="on-demand"

Errors

No response

What version of the package are you using?

^0.16.5

Metadata

Metadata

Assignees

Labels

Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions