CORS and data URI VTT chapters, possible? #1007
Replies: 3 comments 2 replies
-
could you try setting the I do recall some issues on Safari with playing around with this some time ago you could try using a Blob but it does require JS unfortunately. |
Beta Was this translation helpful? Give feedback.
-
If I remove 'crossorigin' from the mux-video element then it seems to work. But thought I needed this attribute. If I remove it the storyboard.vtt from Mux give a CORS error. |
Beta Was this translation helpful? Give feedback.
-
Hey @streamworksaudio I think this one may sadly be a long lived Chrome/Chromium bug that got closed due to inactivity 💔: https://issues.chromium.org/issues/40411923#comment24 |
Beta Was this translation helpful? Give feedback.
-
I am storing VTT chapters in the database and then adding them to the mux-video using PHP to create a data uri (data:text/vtt;base64,....) as a track.
On Chrome this works as expected and the chapters show, but in Safari I am getting a CORS error.
CORS can be confusing, but could the error be because src of the video file is from mux.com and the chapters are from a data:uri (my domain). Is it possible to have a data:url for the chapters (in Safari)? Makes it easier to manage chapters as text in a database than a file elsewhere (such as our CDN which has our domain as a CNAME).
Cheers
Beta Was this translation helpful? Give feedback.
All reactions