Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Discussion options

You must be logged in to vote

参见 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track#:~:text=This%20attribute%20must%20be%20specified%20and%20its%20URL%20value%20must%20have%20the%20same%20origin%20as%20the%20document%20%E2%80%94%20unless%20the%20%3Caudio%3E%20or%20%3Cvideo%3E%20parent%20element%20of%20the%20track%20element%20has%20a%20crossorigin%20attribute. :

This attribute must be specified and its URL value must have the same origin as the document — unless the or

所以字幕这个跨域的 <track> 要求 <video>crossorigin 不然不工作,而 <video>crossorigin 的话又要应用 CORS protocol 导致 video src 无法加载

那还是只能直接给 raw link 加那两个 header 了……

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@zkeq
Comment options

Comment options

You must be logged in to vote
2 replies
@zkeq
Comment options

@zkeq
Comment options

Answer selected by zkeq
Comment options

You must be logged in to vote
1 reply
@zkeq
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants