我使用XAMP,每當我嘗試上傳字幕時,都會給出此錯誤「跨源資源共享策略拒絕跨源文本軌道負載」。 (谷歌鉻)Web VTT無法正常工作
我的代碼似乎是正確的,我不知道爲什麼它可以這樣做。
這裏是我的視頻
<style type="text/css">.easyhtml5video span{display:none}
</style>
<video controls autoplay="autoplay"
poster="videoTryThis.files/html5video/IMG_0535.jpg" style="width:400px"
title="400px">
<source src="videoTryThis.files/html5video/IMG_0535.m4v" type="video/mp4">
<source src="videoTryThis.files/html5video/IMG_0535.webm" type="video/webm">
<track label="English Captions" kind="captions" src="video_cc_en.vtt"></track>
</video>
這裏的代碼是VTT文件
WEBVTT
Cue-1
00:00:5.000 --> 00:00:18.000
At the left we can see...
任何幫助將是真棒,謝謝你們!
這是來不及回答這個問題? –