Skip to content
Sample Code for Player Cards, both for stored and streamed video.
HTML
Branch: master
Clone or download
andypiper Merge pull request #13 from mightyiam/patch-1
Remove duplicate ' are' from readme
Latest commit 4f88d61 Aug 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
player Remove "streaming" sample per card updates Apr 9, 2018
LICENSE.txt license May 7, 2014
README.md Update README.md Mar 20, 2019
screenshot.png Add files via upload Feb 28, 2018

README.md

Twitter Cards Getting Started Bundle

Thank you for downloading the Twitter Cards getting started bundle!

Player Card

In the /player path, you'll find sample code to set up a simple Player Card for your site.

The basic steps to deploy are:

  • Unzip the contents into a publicly accessible path on your website
  • Open the page.html file and ensure the twitter:image, twitter:player and twitter:player:stream values point to your server and file locations
  • Update the content that you're pointing to (don't use the sample video, please!)
  • Ensure all paths are specified as secure (https://)
  • Test your URL

To test your experience, please visit the following URL:

https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/player-card

At that site, you will also find information on general rules, in case you choose to extend the experience to fit your own platform and media player.

Screenshot

Additional Help

If you need more help getting your Player Card working, please check out these additional resources:

You can’t perform that action at this time.