C# Class Decision.Common.Twitter.Structs.TwitterPlayer

A video used in a Twitter card. If the iframe is wider than 435px, the iframe player will be resized to fit a max width of 435px, maintaining the original aspect ratio.
Mostrar archivo Open project: rabbal/Decision Class Usage Examples

Public Methods

Method Description
TwitterPlayer ( string playerUrl, int width, int height ) : System

Initializes a new instance of the TwitterPlayer class.

TwitterPlayer ( string playerUrl, int width, int height, string streamContentType, string streamUrl ) : System

Initializes a new instance of the TwitterPlayer class.

Method Details

TwitterPlayer() public method

Initializes a new instance of the TwitterPlayer class.
and /// must be more than zero.
public TwitterPlayer ( string playerUrl, int width, int height ) : System
playerUrl string The URL to an iframe player. This must be a HTTPS URL which does not generate active /// mixed content warnings in a web browser.
width int The width of the iFrame player in pixels.
height int The height of the iFrame player in pixels.
return System

TwitterPlayer() public method

Initializes a new instance of the TwitterPlayer class.
and /// must be more than zero.
public TwitterPlayer ( string playerUrl, int width, int height, string streamContentType, string streamUrl ) : System
playerUrl string The URL to an iframe player. This must be a HTTPS URL which does not generate active /// mixed content warnings in a web browser.
width int The width of the iFrame player in pixels.
height int The height of the iFrame player in pixels.
streamContentType string The MIME type/subtype combination that describes the content contained in /// twitter:player:stream. Takes the form specified in RFC 6381. Currently supported content_type values are /// those defined in RFC 4337 (MIME Type Registration for MP4).
streamUrl string The URL to a raw stream that will be rendered in Twitter’s mobile applications /// directly. If provided, the stream must be delivered in the MPEG-4 container format (the.mp4 extension). The /// container can store a mix of audio and video with the following codecs: Video: H.264, Baseline Profile(BP), /// Level 3.0, up to 640 x 480 at 30 fps. Audio: AAC, Low Complexity Profile(LC).
return System