CORS and data URI VTT chapters, possible? #1007
streamworksaudio
started this conversation in
General
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. |
0 replies
|
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. |
1 reply
|
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 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions