C# Class Microsoft.PlayerFramework.Adaptive.HLS.HLSPlugin

Inheritance: IPlugin
ファイルを表示 Open project: plexinc/MicrosoftHLSSDK Class Usage Examples

Private Properties

Property Type Description
GetAudioRenditions IList
HLSControllerFactory_HLSControllerReady void
HLSPlaylist_BitrateSwitchCancelled void
HLSPlaylist_BitrateSwitchCompleted void
HLSPlaylist_BitrateSwitchSuggested void
HLSPlaylist_StreamSelectionChanged void
IPlugin void
IPlugin void
InitalizePlugin void
InitializeController void
MediaPlayer_MediaClosed void
MediaPlayer_MediaLoading void
MediaPlayer_MediaOpened void
MediaPlayer_SelectedAudioStreamChanged void
MediaPlayer_SelectedCaptionChanged void
Playlist_SegmentSwitched void
RefreshStateAsync System.Threading.Tasks.Task
RegisterByteStreamHandler void
UninitalizePlugin void
UninitializeController void
UpdateCaptionTracksAsync System.Threading.Tasks.Task

Public Methods

Method Description
AddNonStandardRegistration ( string fileExtension, string mimeType ) : void

Regsiter the byte stream handler.

HLSPlugin ( ) : Microsoft.HLSClient

Constructor for the plugin

Private Methods

Method Description
GetAudioRenditions ( ) : IList
HLSControllerFactory_HLSControllerReady ( object sender, IHLSController controller ) : void

Called when the HLS Client has initialized the IHLSController

HLSPlaylist_BitrateSwitchCancelled ( object sender, IHLSBitrateSwitchEventArgs args ) : void

Called when a bitrate switch has been canceled.

HLSPlaylist_BitrateSwitchCompleted ( object sender, IHLSBitrateSwitchEventArgs args ) : void

Called after the currently playing HLS playlist has switched bitrates.

HLSPlaylist_BitrateSwitchSuggested ( object sender, IHLSBitrateSwitchEventArgs args ) : void

Called after the currently playing HLS playlist should switch bitrates.

HLSPlaylist_StreamSelectionChanged ( object sender, IHLSStreamSelectionChangedEventArgs args ) : void

Called when the stream selection changes between audio, video or both.

IPlugin ( ) : void
IPlugin ( IMediaSource mediaSource ) : void
InitalizePlugin ( ) : void

Initializes the HLS Client by registering Microsoft.HLSPlaylistHandler as a byte stream handler and initializing an HLSControllerFactory

InitializeController ( ) : void

Initialize the controller.

MediaPlayer_MediaClosed ( object sender, RoutedEventArgs e ) : void

Occurs when the MediaElement has closed the media source audio or video.

MediaPlayer_MediaLoading ( object sender, MediaPlayerDeferrableEventArgs e ) : void

Occurs just before the MMPPF MediaPlayer source is set, cancel any closed caption downloads for the current video.

MediaPlayer_MediaOpened ( object sender, RoutedEventArgs e ) : void

Occurs when the MediaElement has opened the media source audio or video.

MediaPlayer_SelectedAudioStreamChanged ( object sender, SelectedAudioStreamChangedEventArgs e ) : void
MediaPlayer_SelectedCaptionChanged ( object sender, RoutedPropertyChangedEventArgs
e ) : void

The selected closed caption has changed.

Playlist_SegmentSwitched ( object sender, IHLSSegmentSwitchEventArgs args ) : void

Called when playback moves from one segment to the next. We handle it here in order to process the 608 data that may be available.

RefreshStateAsync ( ) : System.Threading.Tasks.Task

Update the signal strength and media quality display.

RegisterByteStreamHandler ( string fileExtension, string mimeType ) : void

Register the byte stream handler.

UninitalizePlugin ( ) : void

Uninitialize the plugin.

UninitializeController ( ) : void

Uninitialize the controller.

UpdateCaptionTracksAsync ( ) : System.Threading.Tasks.Task

Method Details

AddNonStandardRegistration() public method

Regsiter the byte stream handler.
public AddNonStandardRegistration ( string fileExtension, string mimeType ) : void
fileExtension string File extention to register.
mimeType string MIME type to register.
return void

HLSPlugin() public method

Constructor for the plugin
public HLSPlugin ( ) : Microsoft.HLSClient
return Microsoft.HLSClient