Skip to content

Instantly share code, notes, and snippets.

@Zmetser
Created April 23, 2020 11:17
Show Gist options
  • Save Zmetser/707ff83b24fedbe5cafa34392ef1771b to your computer and use it in GitHub Desktop.
Save Zmetser/707ff83b24fedbe5cafa34392ef1771b to your computer and use it in GitHub Desktop.
The parent tag of tag 'audio > track' is 'track', but it can only be 'audio'.
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<link rel="canonical" href="self.html" />
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async="" custom-element="amp-ima-video" src="https://cdn.ampproject.org/v0/amp-ima-video-0.1.js"></script>
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
<body>
<amp-ima-video
width="640"
height="360"
layout="responsive"
data-tag="ads.xml"
data-poster="poster.png"
>
<source src="https://test.com/foo.mp4" type="video/mp4" />
<source src="https://test.com/foo.webm" type="video/webm" />
<track kind="captions" label="en_US" src="https://test.com/10002.vtt"/>
<track kind="captions" label="en" src="https://test.com/10964.vtt"/>
</amp-ima-video>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment