Skip to content

Safari with vhs and overrideNative causes a no source supported error due to empty sources list #9117

@danrossi

Description

@danrossi

Description

I discovered this a while ago and so doesn't seem like anyone is trying to use MSE with Safari. Attempting to force vhs with Safari using overrideNative causes a no source supported error.

On discovery this load method is called in Safari but not Chrome. and the currentSource method returns an empty src and type. Which is causing the error.

this.src(this.currentSource());

Working example using hls.js

https://electroteque.org/dev/safari/hlsjs.html

Reduced test case

https://electroteque.org/dev/safari/videojs2.html

Steps to reproduce

  1. configure overrideNative: true
  2. test HLS in Safari

Errors

Image

What version of Video.js are you using?

8.23.4

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Safario

What OS(es) and version(s) does this occur with?

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: triageThis issue needs to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions