简体   繁体   English

HTML5视频+ TTML字幕未显示字幕

[英]HTML5 video + TTML subtitle is not displaying subtitle

I am trying to display my Subtitles in video. 我正在尝试在视频中显示我的字幕。 I have mp4 video and ttml file for the video. 我有mp4视频和该视频的ttml文件。 When put it in html code, the video is playing but no subtitle is coming[Checked in chrome]. 如果将其放入html代码中,则视频正在播放,但没有字幕显示[Chrome中已选中]。 When I checked in IE11 it shows the CC option in the HTML5 video player but there also no subtitle is coming. 当我签入IE11时,它在HTML5视频播放器中显示CC选项,但也没有字幕出现。

Here is what I have tried http://jsfiddle.net/ilaiya/s49zessy/ 这是我尝试过的内容http://jsfiddle.net/ilaiya/s49zessy/

<video controls autoplay height="400" width="400">
    <source type="video/mp4" src="https://ccdpoc.blob.core.windows.net/asset-b82767bd-bf28-4e03-a2d2-329d6df2b633/Index.mp4?sv=2012-02-12&sr=c&si=107ca7bf-272e-48a9-b824-a48da8b7fe90&sig=o8PPGNFD6k0B7PMwdvZdjEy%2FuRc2r4urqqFd5GJyN2k%3D&st=2014-12-10T10%3A40%3A14Z&se=2016-12-09T10%3A40%3A14Z">

    <track src="https://ccdpoc.blob.core.windows.net/sourceaes34/subtitle.ttml" label="English subtitle" kind="subtitles" srclang="en-us" default>
</video>

Chrome does not support TTML out-of-band text tracks. Chrome浏览器不支持TTML带外文本轨道。 Currently, only WebVTT can be used inside of the element. 当前,在元素内部只能使用WebVTT。

In general, Chromium is trying to remove XML from Blink: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/vXuOTK5M0hM . 通常,Chromium会尝试从Blink中删除XML: https ://groups.google.com/a/chromium.org/forum/#! topic/ blink-dev/ vXuOTK5M0hM

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM