Early Access
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" />
<meta property="twitter:player:stream" content="https://example.com/podcast/stream.mp3" />
<meta property="twitter:player:stream" content="http://example.com/video/stream.m3u8" />
<meta property="twitter:player:stream" content="https://example.com/video/stream.avi" />
Recommendations
- Secure Your StreamAlways use HTTPS for your stream URL to ensure user data is protected and to adhere to Twitter's security policies.
- Optimize Streaming QualityFor a better user experience, use adaptive streaming protocols (like HLS) that adjust to the user's bandwidth, providing smooth playback without buffering.
- Check CompatibilityEnsure 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 SoundConsider 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">
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">
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">
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">
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">
Community