Skip to content

Instantly share code, notes, and snippets.

@subhanahmed047
Created March 8, 2021 01:57
Show Gist options
  • Save subhanahmed047/7863662deb42e910b9d6497414f191fb to your computer and use it in GitHub Desktop.
Save subhanahmed047/7863662deb42e910b9d6497414f191fb to your computer and use it in GitHub Desktop.
Test TTML
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml">
<head>
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata">
<ttm:title>Sample</ttm:title>
</metadata>
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling">
<style xml:id="s1"
tts:color="white"
tts:fontFamily="proportionalSansSerif"
tts:fontSize="16px"
tts:textAlign="center"
/>
</styling>
<layout xmlns:tts="http://www.w3.org/ns/ttml#styling">
<region xml:id="subtitleArea"
style="s1"
tts:padding="5px 3px"
tts:origin="20% 80%"
tts:extent="80% 100%"
/>
</layout>
</head>
<body region="subtitleArea">
<div>
<p xml:id="subtitle1" begin="0.00s" end="9000.00s">
The Web is always changing
</p>
</div>
</body>
</tt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment