Early Access

Open Graph Meta Tags

twitter:player:stream

Learn how to use the twitter:player:stream meta tag to improve your site.

Defines the URL to a raw video or audio stream that Twitter will use in its card player when sharing content. It is intended for integration with Twitter cards, specifically for videos or podcasts shared via tweets.

Code Examples

<meta property="twitter:player:stream" content="https://example.com/video/stream.m3u8" />
Uses HTTPS for secure delivery and an adaptive streaming format (HLS) for optimal experience.
<meta property="twitter:player:stream" content="https://example.com/podcast/stream.mp3" />
A direct link to an MP3 audio stream, ensuring straightforward compatibility.
<meta property="twitter:player:stream" content="http://example.com/video/stream.m3u8" />
Lacks HTTPS, making the stream unsecured and potentially blocked by Twitter.
<meta property="twitter:player:stream" content="https://example.com/video/stream.avi" />
Uses an incompatible file format (AVI) that Twitter's player likely won't support.

Recommendations

  • Secure Your Stream
    Always use HTTPS for your stream URL to ensure user data is protected and to adhere to Twitter's security policies.
  • Optimize Streaming Quality
    For a better user experience, use adaptive streaming protocols (like HLS) that adjust to the user's bandwidth, providing smooth playback without buffering.
  • Check Compatibility
    Ensure the stream format is compatible with Twitter's player. Typically, H.264 video codec with AAC audio codec in an MP4 container works best across all platforms.
  • Avoid Autoplay With Sound
    Consider setting your video or audio stream to start without sound if autoplaying, as this follows best practices for user experience and accessibility.

Related Documentation

Related Meta Tags

Defines the numeric ID of your iPad application in the Apple App Store, enabling Twitter to link to it when your content is shared.

<meta name="twitter:app:id:ipad" content="307234931">
Specifies the App Store ID for an iPad application, directly guiding Twitter users to the app when shared.

Defines the iPhone app ID in the Apple App Store for deep linking from tweets. This is part of Twitter Cards used to enhance tweets with rich media to direct users to web content directly or through an app.

<meta name="twitter:app:id:iphone" content="307234931">
A valid example of an App Store ID used for the Twitter iPhone app, facilitating direct app opens or installations from tweets.

Specifies the unique application ID for a Google Play app, used within Twitter Cards to direct users to a specific Android app.

<meta name="twitter:app:id:googleplay" content="com.example.app">
Correctly specifies the Google Play Store ID, ensuring Twitter can direct users to the appropriate app page.

Specifies the name of your application tailored for iPad users when sharing content on Twitter.

<meta name="twitter:app:name:ipad" content="My Amazing App">
Clearly specifies the name of the application as "My Amazing App", which is direct and memorable.

Specifies the name of your Android app on the Google Play Store. This is utilized in Twitter Cards when you want to promote a mobile application directly from a tweet.

<meta name="twitter:app:name:googleplay" content="MyApp">
Directly matching the app name on the Google Play Store, ensuring accurate and effective promotion.