player icon indicating copy to clipboard operation
player copied to clipboard

Vimeo HLS Stream not playing in native mode, but playing in normal video tag

Open Benny739 opened this issue 1 year ago • 5 comments

Current Behavior:

Vimeo HLS Stream not playing when using preferNativeHLS in Safari 18 on MacOs.

Expected Behavior:

Stream plays, as it does when using a video tag with src.

Steps To Reproduce:

  1. set preferNativeHLS to true
  2. Use a vimeo hls stream: https://player.vimeo.com/external/1016458166.m3u8?s=45a871d7b538a7b38851701a62bbdeca99813e4e&logging=false
  3. stream doesn't play in Safari 18 on MacOs

Reproduction Link: Vidstack Demo Link

Benny739 avatar Oct 05 '24 11:10 Benny739

We get mp4 urls directly from vimeo's api and then they redirect to their CDN. This works normally but it's not working on safari 18. I clicked the reproduction link posted above and appears to be the same issue. something about the redirect Failed to load resource: The network connection was lost. But pasting the URLs directly into safari works and the video plays in the browser

shanebeehler avatar Oct 29 '24 14:10 shanebeehler

@Benny739 removing crossOrigin or setting crossOrigin=false fixes your example. It works for my issue too. Hopefully it doesn't cause issues in other browsers though

shanebeehler avatar Oct 29 '24 14:10 shanebeehler

This is actually super weird, no? I also have it happening with another library (just setting a crossOrigin prop on a <video> tag). Could it be a Safari 18 bug?

rhwinter avatar Jan 15 '25 11:01 rhwinter

Running into a similar issue. Anyone have confirmation if this is a Safari 18 bug?

arno-fukuda avatar Feb 19 '25 03:02 arno-fukuda

@Benny739 removing crossOrigin or setting crossOrigin=false fixes your example. It works for my issue too. Hopefully it doesn't cause issues in other browsers though

Removing crossorigin fixed this for me on Safari 18.3.1 thanks!

Safari seemingly has a couple of crossorigin problems from 17+ that Apple hasn't acknowledged.

JakeGonzales avatar Apr 02 '25 02:04 JakeGonzales