Skip to content

Instantly share code, notes, and snippets.

@botic
Last active April 12, 2016 10:41
Show Gist options
  • Select an option

  • Save botic/6b33d21e6ae905a16be46ffc5396a673 to your computer and use it in GitHub Desktop.

Select an option

Save botic/6b33d21e6ae905a16be46ffc5396a673 to your computer and use it in GitHub Desktop.
  • Safari und Chrome brauchen crossorigin="anonymous" im Video-Element, um das VTT von einer anderen Domain zu laden; hat aber die Konsequenz, dass das Poster-Image und das MPEG4 zusätzlich zum VTT auch CORS-Header bräuchte; auch IE funktioniert nicht Cross-Origin.
  • Firefox hat in den Default-Controls keinen Button. Um Captions hardcoded anzuzeigen, muss man per JavaScript aktivieren: videoElement.textTracks[0].mode="showing".
  • IE11 braucht korrekten MIME-Type text/vtt für die Untertitel-Files, sonst ignoriert er die WebVTT-Dateien.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment