C# Class Unosquare.FFmpegMediaElement.MediaElement

Exibir arquivo Open project: bbougot/Popcorn

Public Properties

Property Type Description
BalanceProperty System.Windows.DependencyProperty
IsMutedProperty System.Windows.DependencyProperty
LoadedBehaviorProperty System.Windows.DependencyProperty
MediaEndedEvent System.Windows.RoutedEvent
MediaErroredEvent System.Windows.RoutedEvent
MediaFailedEvent System.Windows.RoutedEvent
MediaOpenedEvent System.Windows.RoutedEvent
PositionProperty System.Windows.DependencyProperty
RefererProperty System.Windows.DependencyProperty
ScrubbingEnabledProperty System.Windows.DependencyProperty
SourceProperty System.Windows.DependencyProperty
SpeedRatioProperty System.Windows.DependencyProperty
StretchDirectionProperty System.Windows.DependencyProperty
StretchProperty System.Windows.DependencyProperty
UnloadedBehaviorProperty System.Windows.DependencyProperty
UserAgentProperty System.Windows.DependencyProperty
VolumeProperty DependencyProperty

Public Methods

Method Description
Close ( ) : void

Closes the media source and releases its resources

CoerceBalanceProperty ( DependencyObject d, object value ) : object
CoercePositionProperty ( DependencyObject d, object value ) : object
CoerceSpeedRatioProperty ( DependencyObject d, object value ) : object
Pause ( ) : void

Pauses media playback.

Play ( ) : void

Begins playback if not already playing

Stop ( ) : void

Stops media playback.

Private Methods

Method Description
BalancePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
CloseMedia ( bool updateProperties ) : void

Closes the media.

HandleMediaPropertyChanged ( object sender, System e ) : void

Handles the PropertyChanged event of the underlying media.

IsMutedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
LoadedBehaviorPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnMediaError ( object sender, Exception ex ) : void

Called when a media error occurs.

OnSourcePropertyChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when [source property changed].

OnSourcePropertyCoerce ( DependencyObject dependencyObject, object baseValue ) : object
OnStretchDirectionPropertyChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when [stretch direction property changed].

OnStretchPropertyChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when [stretch property changed].

OpenMedia ( Uri sourceUri, string referer, string userAgent ) : void

Opens the media.

PositionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ScrubbingEnabledPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SeekPositionUpdateTimerTick ( object sender, EventArgs e ) : void

Callback when the seek position timer ticks.

SpeedRatioPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UnloadedBehaviorPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdateMediaProperties ( ) : void

Updates the media properties.

VolumePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Method Details

Close() public method

Closes the media source and releases its resources
public Close ( ) : void
return void

CoerceBalanceProperty() public static method

public static CoerceBalanceProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

CoercePositionProperty() public static method

public static CoercePositionProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

CoerceSpeedRatioProperty() public static method

public static CoerceSpeedRatioProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
return object

Pause() public method

Pauses media playback.
public Pause ( ) : void
return void

Play() public method

Begins playback if not already playing
public Play ( ) : void
return void

Stop() public method

Stops media playback.
public Stop ( ) : void
return void

Property Details

BalanceProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Balance property.
public static DependencyProperty,System.Windows BalanceProperty
return System.Windows.DependencyProperty

IsMutedProperty public_oe static_oe property

The DependencyProperty for the MediaElement.IsMuted property.
public static DependencyProperty,System.Windows IsMutedProperty
return System.Windows.DependencyProperty

LoadedBehaviorProperty public_oe static_oe property

The DependencyProperty for the MediaElement.LoadedBehavior property.
public static DependencyProperty,System.Windows LoadedBehaviorProperty
return System.Windows.DependencyProperty

MediaEndedEvent public_oe static_oe property

MediaEnded is a routed event
public static RoutedEvent,System.Windows MediaEndedEvent
return System.Windows.RoutedEvent

MediaErroredEvent public_oe static_oe property

MediaErrorEvent is a routed event.
public static RoutedEvent,System.Windows MediaErroredEvent
return System.Windows.RoutedEvent

MediaFailedEvent public_oe static_oe property

MediaFailedEvent is a routed event.
public static RoutedEvent,System.Windows MediaFailedEvent
return System.Windows.RoutedEvent

MediaOpenedEvent public_oe static_oe property

MediaOpened is a routed event.
public static RoutedEvent,System.Windows MediaOpenedEvent
return System.Windows.RoutedEvent

PositionProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Position property.
public static DependencyProperty,System.Windows PositionProperty
return System.Windows.DependencyProperty

RefererProperty public_oe static_oe property

Dependency property for the Referer property
public static DependencyProperty,System.Windows RefererProperty
return System.Windows.DependencyProperty

ScrubbingEnabledProperty public_oe static_oe property

The DependencyProperty for the MediaElement.ScrubbingEnabled property.
public static DependencyProperty,System.Windows ScrubbingEnabledProperty
return System.Windows.DependencyProperty

SourceProperty public_oe static_oe property

DependencyProperty for FFmpegMediaElement Source property.
public static DependencyProperty,System.Windows SourceProperty
return System.Windows.DependencyProperty

SpeedRatioProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.SpeedRatio property.
public static DependencyProperty,System.Windows SpeedRatioProperty
return System.Windows.DependencyProperty

StretchDirectionProperty public_oe static_oe property

DependencyProperty for StretchDirection property.
public static DependencyProperty,System.Windows StretchDirectionProperty
return System.Windows.DependencyProperty

StretchProperty public_oe static_oe property

DependencyProperty for Stretch property.
public static DependencyProperty,System.Windows StretchProperty
return System.Windows.DependencyProperty

UnloadedBehaviorProperty public_oe static_oe property

The DependencyProperty for the MediaElement.UnloadedBehavior property.
public static DependencyProperty,System.Windows UnloadedBehaviorProperty
return System.Windows.DependencyProperty

UserAgentProperty public_oe static_oe property

Dependency property for the user agent property
public static DependencyProperty,System.Windows UserAgentProperty
return System.Windows.DependencyProperty

VolumeProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Volume property.
public static DependencyProperty VolumeProperty
return DependencyProperty