C# Class SharpCaster.Channels.MediaChannel

Inheritance: ChromecastChannel
ファイルを表示 Open project: tapanila/SharpCaster Class Usage Examples

Public Methods

Method Description
GetMediaStatus ( ) : System.Threading.Tasks.Task
LoadMedia ( string mediaUrl, string contentType = "application/vnd.ms-sstr+xml", IMetadata metadata = null, string streamType = "BUFFERED", double duration = 0D, object customData = null, Track tracks = null, int activeTrackIds = null, bool autoPlay = true, double currentTime = 0.0 ) : System.Threading.Tasks.Task
MediaChannel ( ChromeCastClient client ) : System.Linq
Next ( ) : System.Threading.Tasks.Task
Pause ( ) : System.Threading.Tasks.Task
Play ( ) : System.Threading.Tasks.Task
Previous ( ) : System.Threading.Tasks.Task
Seek ( double seconds ) : System.Threading.Tasks.Task
Stop ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
OnMessageReceived ( object sender, ChromecastSSLClientDataReceivedArgs chromecastSSLClientDataReceivedArgs ) : void

Method Details

GetMediaStatus() public method

public GetMediaStatus ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

LoadMedia() public method

public LoadMedia ( string mediaUrl, string contentType = "application/vnd.ms-sstr+xml", IMetadata metadata = null, string streamType = "BUFFERED", double duration = 0D, object customData = null, Track tracks = null, int activeTrackIds = null, bool autoPlay = true, double currentTime = 0.0 ) : System.Threading.Tasks.Task
mediaUrl string
contentType string
metadata IMetadata
streamType string
duration double
customData object
tracks SharpCaster.Models.MediaStatus.Track
activeTrackIds int
autoPlay bool
currentTime double
return System.Threading.Tasks.Task

MediaChannel() public method

public MediaChannel ( ChromeCastClient client ) : System.Linq
client ChromeCastClient
return System.Linq

Next() public method

public Next ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Pause() public method

public Pause ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Play() public method

public Play ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Previous() public method

public Previous ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Seek() public method

public Seek ( double seconds ) : System.Threading.Tasks.Task
seconds double
return System.Threading.Tasks.Task

Stop() public method

public Stop ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task