Twitter Cards launch for Channel 9

Sign in to queue


These days, Twitter is one of the big social media channels for people talking about development, including Channel 9. Recently Twitter added a new feature, Twitter Cards, and it seemed like a perfect fit for our content ... especially the 'Player Card', which is designed to display video content. We have video content, people like to tweet about it... perfect!

To get these cards to work for our content seemingly involves just providing the right meta tags:

 <meta name="twitter:card" content="player"/>
<meta name="twitter:site" content="@ch9"/>
<meta name="twitter:title" content="Defrag Tools: #74 - Windows 8.1 - Frame.GetNavigationState Crash (Channel 9)"/>
<meta name="twitter:description" content="In this episode of Defrag Tools,&amp;nbsp;Andrew Richards and Chad Beeder&amp;nbsp;walk you through a common issue in Windows Store applications that use Frame.GetNavigationState. We&amp;nbsp;use a Windows Store "/>
<meta name="twitter:image:src" content=""/>
<meta name="twitter:player" content=""/>
<meta name="twitter:player:stream" content=""/>
<meta name="twitter:player:stream:content_type" content="video/mp4"/>
<meta name="twitter:player:height" content="288">
<meta name="twitter:player:width" content="512"> 

If you check out the values of those tags though, the real trick to making this happen was to get secure (SSL) links for every resource that we reference. Channel 9 is easy, but our CDN URLs ( for example) were not available over SSL. I could have fallen back to a direct link to our blob storage, where all our videos and images are stored, but I like the CDN and the whole idea of offloading traffic onto a massive global network of edge nodes, so we had a new CDN rewrite setup ( that does work with SSL. Boom, Twitter Cards implemented!

The end result, when someone tweets about one of our videos, this is what you see on

Twitter Card In Action

And, if you are using one of Twitter's mobile apps, you'll see the media in there as well!

Twitter on WP8

So... tweet some videos and checkout the inline player ... or go to our twitter feed and watch some videos there. Exciting times! 



The Discussion

Add Your 2 Cents