C# Class Unosquare.FFmpegMediaElement.MediaElement

Afficher le fichier Open project: bbougot/Popcorn

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

Closes the media source and releases its resources
public Close ( ) : void
Résultat void

CoerceBalanceProperty() public static méthode

public static CoerceBalanceProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

CoercePositionProperty() public static méthode

public static CoercePositionProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

CoerceSpeedRatioProperty() public static méthode

public static CoerceSpeedRatioProperty ( DependencyObject d, object value ) : object
d System.Windows.DependencyObject
value object
Résultat object

Pause() public méthode

Pauses media playback.
public Pause ( ) : void
Résultat void

Play() public méthode

Begins playback if not already playing
public Play ( ) : void
Résultat void

Stop() public méthode

Stops media playback.
public Stop ( ) : void
Résultat void

Property Details

BalanceProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Balance property.
public static DependencyProperty,System.Windows BalanceProperty
Résultat System.Windows.DependencyProperty

IsMutedProperty public_oe static_oe property

The DependencyProperty for the MediaElement.IsMuted property.
public static DependencyProperty,System.Windows IsMutedProperty
Résultat System.Windows.DependencyProperty

LoadedBehaviorProperty public_oe static_oe property

The DependencyProperty for the MediaElement.LoadedBehavior property.
public static DependencyProperty,System.Windows LoadedBehaviorProperty
Résultat System.Windows.DependencyProperty

MediaEndedEvent public_oe static_oe property

MediaEnded is a routed event
public static RoutedEvent,System.Windows MediaEndedEvent
Résultat System.Windows.RoutedEvent

MediaErroredEvent public_oe static_oe property

MediaErrorEvent is a routed event.
public static RoutedEvent,System.Windows MediaErroredEvent
Résultat System.Windows.RoutedEvent

MediaFailedEvent public_oe static_oe property

MediaFailedEvent is a routed event.
public static RoutedEvent,System.Windows MediaFailedEvent
Résultat System.Windows.RoutedEvent

MediaOpenedEvent public_oe static_oe property

MediaOpened is a routed event.
public static RoutedEvent,System.Windows MediaOpenedEvent
Résultat System.Windows.RoutedEvent

PositionProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Position property.
public static DependencyProperty,System.Windows PositionProperty
Résultat System.Windows.DependencyProperty

RefererProperty public_oe static_oe property

Dependency property for the Referer property
public static DependencyProperty,System.Windows RefererProperty
Résultat System.Windows.DependencyProperty

ScrubbingEnabledProperty public_oe static_oe property

The DependencyProperty for the MediaElement.ScrubbingEnabled property.
public static DependencyProperty,System.Windows ScrubbingEnabledProperty
Résultat System.Windows.DependencyProperty

SourceProperty public_oe static_oe property

DependencyProperty for FFmpegMediaElement Source property.
public static DependencyProperty,System.Windows SourceProperty
Résultat System.Windows.DependencyProperty

SpeedRatioProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.SpeedRatio property.
public static DependencyProperty,System.Windows SpeedRatioProperty
Résultat System.Windows.DependencyProperty

StretchDirectionProperty public_oe static_oe property

DependencyProperty for StretchDirection property.
public static DependencyProperty,System.Windows StretchDirectionProperty
Résultat System.Windows.DependencyProperty

StretchProperty public_oe static_oe property

DependencyProperty for Stretch property.
public static DependencyProperty,System.Windows StretchProperty
Résultat System.Windows.DependencyProperty

UnloadedBehaviorProperty public_oe static_oe property

The DependencyProperty for the MediaElement.UnloadedBehavior property.
public static DependencyProperty,System.Windows UnloadedBehaviorProperty
Résultat System.Windows.DependencyProperty

UserAgentProperty public_oe static_oe property

Dependency property for the user agent property
public static DependencyProperty,System.Windows UserAgentProperty
Résultat System.Windows.DependencyProperty

VolumeProperty public_oe static_oe property

     The DependencyProperty for the MediaElement.Volume property.
public static DependencyProperty VolumeProperty
Résultat DependencyProperty