MediaState 枚举

定义

指定可应用于 MediaElementLoadedBehavior 属性的 UnloadedBehavior 的语句。Specifies the states that can be applied to a MediaElement for the LoadedBehavior and UnloadedBehavior properties.

public enum class MediaState
public enum MediaState
type MediaState = 
Public Enum MediaState
继承
MediaState

字段

Close 2

用于关闭媒体的状态。The state used to close the media. 释放所有媒体资源(包括视频内存)。All media resources are released (including video memory).

Manual 0

用于手动控制 MediaElement 的语句。The state used to control a MediaElement manually. 可以使用交互方法,例如,Play()Pause()Interactive methods like Play() and Pause() can be used. MediaElement 分配了有效媒体源时,媒体会预播放,但不会播放。Media will preroll but not play when the MediaElement is assigned valid media source.

Pause 3

用于暂停媒体的状态。The state used to pause the media. MediaElement 分配了有效媒体源时,媒体会预播放,但会保持暂停。Media will preroll but remains paused when the MediaElement is assigned valid media source.

Play 1

用于播放媒体的状态。The state used to play the media. . MediaElement 分配了有效媒体源时,媒体会预播放,从而自动播放。Media will preroll automatically being playback when the MediaElement is assigned valid media source.

Stop 4

用于停止媒体的状态。The state used to stop the media. MediaElement 分配了有效媒体源时,媒体会预播放,但不会播放。Media will preroll but not play when the MediaElement is assigned valid media source. 不释放媒体资源。Media resources are not released.

适用于