C# Class Decision.Common.Twitter.Cards.PlayerTwitterCard

Video clips and audio streams have a special place on the Twitter platform thanks to the Player Card. By implementing a few HTML meta tags to your website and following the Twitter Rules of the Road, you can deliver your rich media to users across the globe. Twitter must approve the use of the player card, find out more below. See https://dev.twitter.com/cards/types/player
Inheritance: TwitterCard
Show file Open project: rabbal/Decision

Public Methods

Method Description
PlayerTwitterCard ( string username, TwitterImage image, TwitterPlayer player ) : System

Initializes a new instance of the PlayerTwitterCard class.

ToString ( StringBuilder stringBuilder ) : void

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Twitter card meta tags.

Method Details

PlayerTwitterCard() public method

Initializes a new instance of the PlayerTwitterCard class.
username is null.
public PlayerTwitterCard ( string username, TwitterImage image, TwitterPlayer player ) : System
username string The Twitter username associated with the page e.g. @RehanSaeedUK. This is a required property.
image TwitterImage The image to be displayed in place of the player on platforms that don’t support iframes or inline players. /// You should make this image the same dimensions as your player. Images with fewer than 68,600 pixels /// (a 262x262 square image, or a 350x196 16:9 image) will cause the player card not to render. /// Image must be less than 1MB in size.
player Decision.Common.Twitter.Structs.TwitterPlayer The video player.
return System

ToString() public method

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Twitter card meta tags.
public ToString ( StringBuilder stringBuilder ) : void
stringBuilder StringBuilder The string builder.
return void