Embedded Video parameter reference
An Embedded Video supports customization in data-* attributes and a JavaScript factory function. This reference document describes parameters used in all formats.
Reference the oEmbed API with widget_type=video
to set these parameters as part of an HTML response for a Tweet ID or URL.
Parameters
The numerical ID of the desired Tweet.
Example Value: 560070183650213889
When set to hidden
, selecting the Twitter bird logo on the bottom corner of the video player will link to the Tweet URL instead of displaying a Tweet overlay.
Example Value: hidden
A supported Twitter language code.
Loads text components of a Tweet overlay in the specified language. Note: does not affect the text of the cited Tweet.
Example Value: es
HTML example
You can now shoot, edit and share video on Twitter. Capture life’s most moving moments from your perspective. pic.twitter.com/31JoMS50ha
— Twitter (@twitter) enero 27, 2015
<blockquote class="twitter-video" data-status="hidden" lang="es"> <p>You can now shoot, edit and share video on Twitter. Capture life's most moving moments from your perspective. <a href="http://t.co/31JoMS50ha"> pic.twitter.com/31JoMS50ha </a></p> — Twitter (@twitter) <a href="https://twitter.com/twitter/status/560070183650213889"> enero 27, 2015 </a> </blockquote>
JavaScript factory example
Note: the numeric Tweet ID should be passed as a string.
twttr.widgets.createVideo( "560070183650213889", document.getElementById("video-container"), { status: "hidden", lang: "es" } );