DEVHIDE
  • Home (current)
  • About
  • Contact
  • Cookie
  • Home (current)
  • About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy
  • TOS
Login Or Sign up

TTML caption file not working in all browsers

1.3k Views Asked by Arvin At 21 April 2015 at 09:01 2025-12-21T11:47:29.302000

I am integrating closed captions in my video element

 <div style="text-align:center;">
        <video width="720" height="360" controls>
            <source src="Files/testvideo_1.mp4" type="video/mp4">
            <track label="English" kind="subtitles" srclang="en" src="Files/testvideo_CC.xml" default >
            Your browser does not support the video tag.
        </video>
    </div>

The caption file used here is of ttml type.According to this link below both ttml and webvtt type caption files will work on html5 video.

http://www.html5labs.com/prototypes/video-captioning/video-captioning/info

But in internet explorer ttml format is working and webvtt is not. In the case of firefox and chrome only webvtt file is working and ttml is not.See the link below

http://www.html5labs.com/prototypes/video-captioning/video-captioning/info

I have only ttml type caption files with me and in most of the tutorials in web they are using webvtt files, so is there any way to use this in all browsers

html5-video closed-captions webvtt ttml
Original Q&A
2

There are 2 best solutions below

0
TimHayes TimHayes On 21 April 2015 at 15:32

TTML and WebVTT were competing standards for captioning a few years ago when the spec was emerging, but since then WebVTT has largely won out. You shouldn't need to use TTML.

Check the HTML5 track spec discussing the use of WebVTT and the caniuse for WebVTT. Neither lists TTML as an alternative.

0
Nigel Megitt Nigel Megitt On 22 April 2015 at 15:28

Both TTML and WebVTT are standardised by the W3C's Timed Text Working Group (TTWG), whose charter lists both. To get to Recommendation they both have to be Web friendly. TTML has been a recommendation since 2010, WebVTT is on the track, currently at first public working draft.

Today, more browsers support WebVTT to some extent out of the box; although IE has historically supported TTML natively, typical implementations such as the BBC's iPlayer use Javascript to parse the TTML and present it. That approach is also workable for WebVTT. By the way, Google Chromecast also plays TTML natively, and there's some code in Exoplayer for playing back TTML on Android. There are lots of other examples of player code on github for example.

TTML (or profiles of TTML) is also widely used in implementations not primarily seen as browsers for example in connected TV specifications like YouView, CFF, HbbTV, DVB DASH, ARIB etc.

Related Questions in HTML5-VIDEO

  • <video> tag with downloaded path in ionic ios not loads the video
  • Google Ads does not show on website when video is full screen
  • sourceBuffer.appendBuffer successfully but the h5 video player stuck
  • video.audioTracks is not working as expected for large video
  • HTML5 and CSS - Responsive Video Pop Up Not working according to design
  • Video lazy load - background
  • Reimplement HTML Media Tag Fetching without a tag using Media Source API
  • Flask Streaming mp4 video works perfectly on windows but not mobile phone
  • Pause the animation of all html cards when the video popup is opened or when the play button on the video is clicked
  • HTML5 sourcebuffer stalls in firefox
  • Full screen in Electron js adds a blank space at the bottom
  • What is the largest size limit (in Mb) for html video tag on iOS mobile devices
  • Client side H.264 (MP4) video compression/encoding
  • video Enters Fullscreen "Live Broadcast" Mode on iOS Despite playsinline Attribute in Standalone PWA
  • How to process each frames exactly only once using MediaStreamTrackProcessor

Related Questions in CLOSED-CAPTIONS

  • Why doesn't video-conferencing with subtitles exist?
  • Token for CARTs (closed captions) API Microsoft Teams
  • How to enable closed captions by default with OpenPlayerJS / video.js?
  • Schema/DTD for Youtube json3 transcript format
  • When the update occurs on Android TV, canvas seems to expand
  • Disable English (automatic captions) from my uploaded videos in Youtube
  • Is it compliant with Google and Youtube policies that an app downloads captions from youtube videos using Python package: Youtube Transcript API?
  • I need subtitles for iptv on firestick qnd don't knkw where to start my ideas are excused
  • Does YouTube meet WCAG 2.1 standards regarding close captions?
  • Background not applying for video closed captions ::cue on Firefox and Safari on iOS Mobile
  • I want to add Closed Captions for a SIP call
  • WebVVT (.vtt captions) won't work when uploaded to live site
  • How can I display subtitles along with a video with Gradio?
  • How can I display subtitles along with a video with Streamlit?
  • HTML5 video player won't load .vtt subtitle track

Related Questions in WEBVTT

  • WEBVTT into HLS does not work anymore on last iOS version
  • Read chapters from an mp4 file?
  • WEBVTT subtitle issue on ROKU and LG TV using Dash stream on HTML5 player
  • How to fix unsafe attempt error and show the caption?
  • WebVTT to JSON using `jq`
  • Dash JS player x Cloudflare displaying adaptation ID for CC options
  • How do I convert .vtt subtitle file into segments (.m3u8)?
  • Fill formula down to same level in adjacent column does not work when combined with other working code
  • plyr.io captions dont load nextjs typescript
  • How to convert srt file to vtt then append video
  • Can I make use charset-normalizer 3.0.0 instead of 3.2.0 in build.gradle so that I do not get aiohttp related library error in android studio?
  • Vertical text from left to right with NSTextView
  • Serving Vtt files from AWS Cloudfront with signed cookies
  • Keep .vtt as string object vs write to file - OpenAI Whisper
  • HTML Video won't play vtt subtitles

Related Questions in TTML

  • YouTube Data API V3: Download caption
  • Youtube Timed Text Caption box alignment issue
  • Setting font size in webvtt without css styling?
  • HTML5: Playing <audio> with TTML subtitle
  • How to convert .srt file into ttml based xml subtitle file using ffmpeg?
  • Python parsing weird root - TTML (XML) with ElementTree or lxml
  • How to browse thru TTML and get all the time\captions into JSON file
  • how to setup MPEG-DASH in mac?
  • How to convert a document to a .str and a .ttml file
  • CAF: subtitles positioning issue even after shaka-player update
  • CAF Receiver: Positioning of subtitles
  • Remove xml node from ttml file C#
  • What does '+' mean in W3C syntax representation for TTML timeExpression?
  • Adding some kind of subtitle to an mp4 with ffmpeg
  • How to convert TTML (Timed Text Markup Language) tick to seconds

Trending Questions

  • UIImageView Frame Doesn't Reflect Constraints
  • Is it possible to use adb commands to click on a view by finding its ID?
  • How to create a new web character symbol recognizable by html/javascript?
  • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
  • Heap Gives Page Fault
  • Connect ffmpeg to Visual Studio 2008
  • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
  • How to avoid default initialization of objects in std::vector?
  • second argument of the command line arguments in a format other than char** argv or char* argv[]
  • How to improve efficiency of algorithm which generates next lexicographic permutation?
  • Navigating to the another actvity app getting crash in android
  • How to read the particular message format in android and store in sqlite database?
  • Resetting inventory status after order is cancelled
  • Efficiently compute powers of X in SSE/AVX
  • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Popular # Hahtags

javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

Popular Questions

  • How do I undo the most recent local commits in Git?
  • How can I remove a specific item from an array in JavaScript?
  • How do I delete a Git branch locally and remotely?
  • Find all files containing a specific text (string) on Linux?
  • How do I revert a Git repository to a previous commit?
  • How do I create an HTML button that acts like a link?
  • How do I check out a remote Git branch?
  • How do I force "git pull" to overwrite local files?
  • How do I list all files of a directory?
  • How to check whether a string contains a substring in JavaScript?
  • How do I redirect to another webpage?
  • How can I iterate over rows in a Pandas DataFrame?
  • How do I convert a String to an int in Java?
  • Does Python have a string 'contains' substring method?
  • How do I check if a string contains a specific word?

Copyright © 2021 Jogjafile Inc.

  • Disclaimer
  • Privacy
  • TOS
  • Homegardensmart
  • Pricesm.com
  • Aftereffectstemplates
  • Jogjafile