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. 執行個體時提供 SQL Server 登入。. 當指派有效媒體來源給 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.

適用於