Player
Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file.
Inherits from:
IMLMediaPlayer
Public Fields
AudioDRM
public Track.DRM AudioDRM { get; set; }
Type | Description |
---|---|
Track.DRM | MediaDRM to obtain the content keys for decrypting protected media streams. |
IsPlaying
Indicates if the media player is currently playing.
public bool IsPlaying { get; set; }
IsPrepared
Indicates if the media player has been prepared.
public bool IsPrepared { get; set; }
Source
The uri/path that the media player is currently set with.
public string Source { get; set; }
VideoDRM
public Track.DRM VideoDRM { get; set; }
Type | Description |
---|---|
Track.DRM | MediaDRM to obtain the content keys for decrypting protected media streams. |
VideoRenderer
Media player video renderer
public MLNativeSurfaceYcbcrRenderer VideoRenderer { get; set; }
Public Methods
void CreateVideoRenderer
public void CreateVideoRenderer(
uint width,
uint height
)
Parameters
Type | Name | Description |
---|---|---|
uint | width | |
uint | height |
void Destroy
public void Destroy()
MLResult GetDurationMS
public MLResult GetDurationMS(
out int duration
)
Parameters
Type | Name | Description |
---|---|---|
out int | duration |
int GetDurationMilliseconds
Gets the duration of the video in milliseconds
public int GetDurationMilliseconds()
Returns: Duration of the video, -1 on failure.
Reimplements: GetDurationMilliseconds
ulong GetFrameDropThresholdMs
public ulong GetFrameDropThresholdMs()
int GetHeight
Get the height of the video in pixels
public int GetHeight()
Returns: The height of the video, -1 on failure.
Reimplements: GetHeight
MLResult GetPositionMS
public MLResult GetPositionMS(
out int position
)
Parameters
Type | Name | Description |
---|---|---|
out int | position |
int GetPositionMilliseconds
Gets the current position of the video in milliseconds
public int GetPositionMilliseconds()
Returns: Position of the playback of the video, -1 on failure.
Reimplements: GetPositionMilliseconds
MLResult GetSpatialAudioChannelPosition
public MLResult GetSpatialAudioChannelPosition(
uint channel,
out Vector3 position
)
Parameters
Type | Name | Description |
---|---|---|
uint | channel | |
out Vector3 | position |
MLResult GetSpatialAudioEnable
public MLResult GetSpatialAudioEnable(
out bool enabled
)
Parameters
Type | Name | Description |
---|---|---|
out bool | enabled |
bool GetState
public bool GetState(
PollingStateFlags stateFlags
)
Parameters
Type | Name | Description |
---|---|---|
PollingStateFlags | stateFlags | Comment Needed! |
int GetVideoBitrate
public int GetVideoBitrate()
MLResult GetVideoSize
public MLResult GetVideoSize(
out int width,
out int height
)
Parameters
Type | Name | Description |
---|---|---|
out int | width | |
out int | height |
int GetWidth
Get the width of the video in pixels
public int GetWidth()
Returns: The width of the video, -1 on failure.
Reimplements: GetWidth
delegate void OnBufferingUpdateDelegate
Delegate for the the OnBufferingUpdate event.
public delegate void OnBufferingUpdateDelegate(
MLMedia.Player mediaPlayer,
float percent
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | percent | The percent of buffering completed for the set source. |
float | percent |
delegate void OnCaptionsTextDelegate
Delegate for the any OnCaptionsText event.
public delegate void OnCaptionsTextDelegate(
MLMedia.Player mediaPlayer,
string text
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
string | text |
delegate void OnDRMTrackInfoDelegate
Delegate for the any OnDRMTrackInfo event.
public delegate void OnDRMTrackInfoDelegate(
MLMedia.Player mediaPlayer,
MLMedia.Player.Track.DRM.Info trackDRMInfo
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
MLMedia.Player.Track.DRM.Info | trackDRMInfo | MediaPlayer DRMInfo for a Media Track. |
delegate void OnErrorDelegate
Delegate for the any OnError event.
public delegate void OnErrorDelegate(
MLMedia.Player mediaPlayer,
MLResult.Code errorCode
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
MLResult.Code | errorCode | Identifier of Magic Leap API results |
delegate void OnInfoDelegate
Delegate for the the OnInfo event.
public delegate void OnInfoDelegate(
MLMedia.Player mediaPlayer,
MLMedia.Player.Info info
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | info | The info event that has occured. |
MLMedia.Player.Info | info | Indicates various trigger various media player actions. MLMediaPlayerInfo from ml_media_player.h . |
delegate void OnMediaPlayerGeneralDelegate
Delegate for the any OnMediaPlayerGeneral events (events that only return the mediaPlayer reference)
public delegate void OnMediaPlayerGeneralDelegate(
MLMedia.Player mediaPlayer
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
delegate void OnTimedTextUpdateDelegate
Delegate for the the OnTimedTextUpdate event.
public delegate void OnTimedTextUpdateDelegate(
MLMedia.Player mediaPlayer,
ulong timedText
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
ulong | timedText |
delegate void OnTrackFoundDelegate
Delegate for the any OnTrackFound event.
public delegate void OnTrackFoundDelegate(
MLMedia.Player mediaPlayer,
Track track
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
Track | track | Track from the prepared source that can be selected by the media player. |
delegate void OnTrackSelectedDelegate
Delegate for the any OnTrackSelected event.
public delegate void OnTrackSelectedDelegate(
MLMedia.Player mediaPlayer,
Track selectedTrack
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
Track | selectedTrack | Track from the prepared source that can be selected by the media player. |
delegate void OnVideoSizeChangedDelegate
Delegate for the any OnVideoSizeChanged event.
public delegate void OnVideoSizeChangedDelegate(
MLMedia.Player mediaPlayer,
int width,
int height
)
Parameters
Type | Name | Description |
---|---|---|
MLMedia.Player | mediaPlayer | Media player script that allows playback of a streaming video (either from file or web URL) This script will update the main texture parameter of the Renderer attached as a sibling with the video frame from playback. Audio is also handled through this class and will playback audio from the file. |
int | width | |
int | height |
MLResult Pause
Pauses the video.
public MLResult Pause()
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: Pause
MLResult Play
Plays the video.
public MLResult Play()
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: Play
Player
Constructor for the media player object.
public Player(
out MLResult result
)
Parameters
Type | Name | Description |
---|---|---|
out MLResult | result | The native result for creating the media player. |
Returns: An initialized media player object.
void PollForMetaData
public void PollForMetaData()
MLResult PollState
public MLResult PollState(
PollingStateFlags stateFlags,
out PollingStateFlags state
)
Parameters
Type | Name | Description |
---|---|---|
PollingStateFlags | stateFlags | Comment Needed! |
out PollingStateFlags | state | Comment Needed! |
MLResult PollStates
public MLResult PollStates(
out PollingStateFlags states
)
Parameters
Type | Name | Description |
---|---|---|
out PollingStateFlags | states | Comment Needed! |
MLResult PreparePlayer
public MLResult PreparePlayer()
MLResult PreparePlayerAsync
public MLResult PreparePlayerAsync()
MLResult Reset
public MLResult Reset()
MLResult ResetAsync
public MLResult ResetAsync()
MLResult Resume
Resume the video.
public MLResult Resume()
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: Resume
MLResult Seek
Seeks the specified time in the video.
public MLResult Seek(
int positionSeconds,
SeekMode seekMode
)
Parameters
Type | Name | Description |
---|---|---|
int | positionSeconds | Absolute time to seek to. |
SeekMode | seekMode | Mode indicating where exactly to seek to. |
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: Seek
MLResult SelectTrack
public MLResult SelectTrack(
int index
)
Parameters
Type | Name | Description |
---|---|---|
int | index |
MLResult SelectTrack
public MLResult SelectTrack(
Track track
)
Parameters
Type | Name | Description |
---|---|---|
Track | track | Track from the prepared source that can be selected by the media player. |
void SetFrameDropThresholdMs
public void SetFrameDropThresholdMs(
ulong threshold
)
Parameters
Type | Name | Description |
---|---|---|
ulong | threshold |
MLResult SetLooping
Sets the loop flag for the video.
public MLResult SetLooping(
bool loop
)
Parameters
Type | Name | Description |
---|---|---|
bool | loop | Flag to loop |
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: SetLooping
MLResult SetSourcePath
Sets the source path that the media player will play content from.
public MLResult SetSourcePath(
string source
)
Parameters
Type | Name | Description |
---|---|---|
string | source | Path of the media that's on the device. |
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded. MLResult.Result will be MLResult.Code.InvalidParam if failed due to an invalid input parameter. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to internal error. MLResult.Result will be MLResult.Code.MediaGenericNoInit if media player was not properly built or initialized. MLResult.Result will be MLResult.Code.PermissionDenied if attempting to access web content without appropriate network permissions
Reimplements: SetSourcePath
MLResult SetSourceURI
Sets the source path that the media player will play content from.
public MLResult SetSourceURI(
string source
)
Parameters
Type | Name | Description |
---|---|---|
string | source | URI of the media. |
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded. MLResult.Result will be MLResult.Code.InvalidParam if failed due to an invalid input parameter. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to internal error. MLResult.Result will be MLResult.Code.MediaGenericNoInit if media player was not properly built or initialized. MLResult.Result will be MLResult.Code.PermissionDenied if attempting to access web content without appropriate network permissions
Reimplements: SetSourceURI
MLResult SetSpatialAudioChannelPosition
public MLResult SetSpatialAudioChannelPosition(
uint channel,
Vector3 position
)
Parameters
Type | Name | Description |
---|---|---|
uint | channel | |
Vector3 | position |
MLResult SetSpatialAudioEnable
public MLResult SetSpatialAudioEnable(
bool enable
)
Parameters
Type | Name | Description |
---|---|---|
bool | enable |
MLResult SetStreamingSourcePath
public MLResult SetStreamingSourcePath(
string path
)
Parameters
Type | Name | Description |
---|---|---|
string | path |
MLResult SetVolume
Sets the volume of the video.
public MLResult SetVolume(
float vol
)
Parameters
Type | Name | Description |
---|---|---|
float | vol | Volume between 0 and 1. |
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: SetVolume
MLResult Stop
Stops the video in the editor.
public MLResult Stop()
Returns: MLResult.Result will be MLResult.Code.Ok if operation succeeded.
Reimplements: Stop
void UnlinkDataSource
public void UnlinkDataSource()
MLResult UnselectTrack
public MLResult UnselectTrack(
Track track
)
Parameters
Type | Name | Description |
---|---|---|
Track | track | Track from the prepared source that can be selected by the media player. |
Public Attributes
TTMLMime
public const string TTMLMime = "application/ttml+xml";
VTTMime
public const string VTTMime = "text/vtt";
Public Events
OnBufferingUpdate
Event used to listen for when the media player is buffering.
public OnBufferingUpdateDelegate OnBufferingUpdate()
OnCEA608
public OnCaptionsTextDelegate OnCEA608()
OnCEA708
public OnCaptionsTextDelegate OnCEA708()
OnCompletion
Event used to listen for the media player has completed playing it's source.
public OnMediaPlayerGeneralDelegate OnCompletion()
OnDRMTrackInfo
public OnDRMTrackInfoDelegate OnDRMTrackInfo()
OnError
Event used to listen for when the media player has an error.
public OnErrorDelegate OnError()
OnFrameAvailable
Event used to listen for when the media player frame is available (used for rendering purposes).
public OnMediaPlayerGeneralDelegate OnFrameAvailable()
OnFramePacking
Event used to listen for when the frames are packed.
public OnMediaPlayerGeneralDelegate OnFramePacking()
OnInfo
Event used to listen for when information about the media player, see the MLMedia.Player.Info enum for the types of information given.
public OnInfoDelegate OnInfo()
OnMediaSubtitleUpdate
Event used to listen for when subtitles are updated.
public OnMediaPlayerGeneralDelegate OnMediaSubtitleUpdate()
OnPause
Event used to listen for when Pause() has been called.
public OnMediaPlayerGeneralDelegate OnPause()
OnPlay
Event used to listen for when Play() has been called.
public OnMediaPlayerGeneralDelegate OnPlay()
OnPrepared
Event used to listen for when the media player has finished preparing.
public OnMediaPlayerGeneralDelegate OnPrepared()
OnResetComplete
Event used to listen for when the media player resets.
public OnMediaPlayerGeneralDelegate OnResetComplete()
OnSeekComplete
Event used to listen for when the media player has finished seeking.
public OnMediaPlayerGeneralDelegate OnSeekComplete()
OnStop
Event used to listen for when Stop() has been called.
public OnMediaPlayerGeneralDelegate OnStop()
OnTimedText
Event used to listen for when timed text apppears.
public OnCaptionsTextDelegate OnTimedText()
OnTrackFound
public OnTrackFoundDelegate OnTrackFound()
OnTrackSelected
public OnTrackSelectedDelegate OnTrackSelected()
OnVideoSizeChanged
Event used to listen for when the video size changes.
public OnVideoSizeChangedDelegate OnVideoSizeChanged()
Public Enums
AudioChannel
Enumeration of the available audio channel indices in 5.1 SMPTE order.
Enumerator | Value | Description |
---|---|---|
FrontLeft | 0 | Front left channel index. |
FrontRight | 1 | Front right channel index. |
FrontCenter | 2 | Front center channel index. |
LowFrequencyEffects | 3 | Low frequency effects channel index. |
SurroundLeft | 4 | Surround left channel index. |
SurroundRight | 5 | Surround right channel index. |
BufferingMode
Comment Needed!
Enumerator | Value | Description |
---|---|---|
None | Do not support buffering. | |
TimeOnly | Support only time based buffering. | |
SizeOnly | Support only size based buffering. | |
TimeThenSize | Support both time and size based buffering, time based calculation precedes size based. Size based calculation will be used only when time information is not available for the stream. |
Cea608CaptionColor
CEA608 caption color code. MLCea608CaptionColor from ml_media_cea608_caption.h .
Enumerator | Value | Description |
---|---|---|
White | 0 | CEA608 caption color is white. |
Green | 1 | CEA608 caption color is green. |
Blue | 2 | CEA608 caption color is blue. |
Cyan | 3 | CEA608 caption color is cyan. > |
Red | 4 | CEA608 caption color is red. |
Yellow | 5 | CEA608 caption color is yellow. |
Magenta | 6 | CEA608 caption color is magenta. |
Invalid | 7 | CEA608 caption color is invalid. |
Cea608CaptionDimension
CEA608 caption Dimension constants. MLCea608CaptionDimension from ml_media_cea608_caption.h .
Enumerator | Value | Description |
---|---|---|
MaxRows | 15 | Max number of rows. |
MaxCols | 32 | Max number of columns. |
MaxRowsPlus2 | 17 | Max number of plus 2. |
MaxColsPlus2 | 34 | Max number of columns plus 2. |
Cea608CaptionStyle
CEA608 caption style code. MLCea608CaptionStyle from ml_media_cea608_caption.h .
Enumerator | Value | Description |
---|---|---|
Normal | 0x00000000 | CEA608 caption style code is normal. |
Italics | 0x00000001 | CEA608 caption style code is italics. |
Underline | 0x00000002 | CEA608 caption style code is underline. |
Cea708CaptionColorOpacity
CEA708 Caption Color Opacity constants. MLCea708CaptionColorOpacity from ml_media_cea708_caption.h .
Enumerator | Value | Description |
---|---|---|
Solid | 0 | Solid opacity. |
Flash | 1 | Flashing opacity. |
Translucent | 2 | Translucent opacity. |
Transparent | 3 | Transparent opacity. |
Cea708CaptionEmitCommand
CEA708 Caption Emit Commands constants. MLCea708CaptionEmitCommand from ml_media_cea708_caption.h .
Enumerator | Value | Description |
---|---|---|
Buffer | 1 | Buffer command. |
Control | 2 | Control command. |
CWX | 3 | SetCurrentWindow tells the caption decoder which window the following commands describe: |
- SetWindowAttributes
- SetPenAttributes
- SetPenColor
- SetPenLocation. If the window specified has not already been created with a DefineWindow command then, SetCurrentWindow and the window property commands can be safely ignored. | | CLW | 4| ClearWindows clears all the windows specified in the 8 bit window bitmap. | | DSW | 5| DisplayWindows displays all the windows specified in the 8 bit window bitmap. | | HDW | 6| HideWindows hides all the windows specified in the 8 bit window bitmap. | | TGW | 7| ToggleWindows hides all displayed windows, and displays all hidden windows specified in the 8 bit window bitmap. | | DLW | 8| DeleteWindows deletes all the windows specified in the 8 bit window bitmap. If the current window, as specified by the last SetCurrentWindow command, is deleted then the current window becomes undefined and the window attribute commands should have no effect until after the next SetCurrentWindow or DefineWindow command. | | DLY | 9| Delay suspends all processing of the current service, except for DelayCancel and Reset scanning. | | DLC | 10| DelayCancel terminates any active delay and resumes normal command processing. DelayCancel should be scanned for during a Delay. | | RST | 11| Reset deletes all windows, cancels any active delay, and clears the buffer before the Reset command. Reset should be scanned for during a Delay. | | SPA | 12| The SetPenAttributes command specifies how certain attributes of subsequent characters are to be rendered in the current window, until the next SetPenAttributes command. | | SPC | 13| SetPenColor sets the foreground, background, and edge color for the subsequent characters. | | SPL | 14| SetPenLocation sets the location of for the next bit of appended text in the current window. It has two parameters, row and column. | | SWA | 15| SetWindowAttributes Sets the window attributes of the current window. | | DFX | 16| DefineWindow0-7 creates one of the eight windows used by a caption decoder. |
Cea708CaptionEmitCommandControl
CEA708 Caption Emit Command Control constants. MLCea708CaptionEmitCommandControl from ml_media_cea708_caption.h .
Enumerator | Value | Description |
---|---|---|
ETX | 0x03 | End of text. |
BS | 0x08 | Back space. |
FF | 0x0c | This code is equivalent to CEA708 CLW command |
HCR | 0x0e | Carriage return. |
Cea708CaptionPenOffset
CEA708 Caption Pen Offset constants. MLCea708CaptionPenOffset from ml_media_cea708_caption.h .
Enumerator | Value | Description |
---|---|---|
Subscript | 0 | Subscript offset. |
Normal | 1 | Normal offset. |
Superscript | 2 | Superscript offset. |
Cea708CaptionPenSize
CEA708 Caption Pen Size constants. MLCea708CaptionPenSize from ml_media_cea708_caption.h .
Enumerator | Value | Description |
---|---|---|
Small | 0 | Small pen size. |
Standard | 1 | Standard pen size. |
Large | 2 | Large pen size. |
FramePackingFlags
Frame Packing Arrangement flags for stereoscopic videos.
Enumerator | Value | Description |
---|---|---|
None | 0 | No flags. |
RightViewFirst | 1 | Right view first. |
LeftFlipped | 2 | Left view flipped. |
RightFlipped | 4 | Right view flipped. |
Anaglyph_RedCyan | 8 | Anaglyph red/cyan. |
AnaglyphGreenMagenta | 16 | Anaglyph green/magenta. |
FramePackingMode
Frame Packing Arrangement for stereoscopic videos.
Enumerator | Value | Description |
---|---|---|
None | 0 | Not a stereoscopic video. |
Checkboard | Checkboard. | |
ColumnInterleaved | Column interleaved. | |
RowInterleaved | Row interleaved. | |
SideBySideQuincunx | Side by side quincunx. | |
SideBySide | Side by side. | |
TopBottom | Top bottom. | |
MultiviewFrameByFrame | Multiview frame by frame. | |
FrameByFrame | Frame by frame. | |
Anaglyph | Anaglyph. |
Info
Indicates various trigger various media player actions. MLMediaPlayerInfo from ml_media_player.h .
Enumerator | Value | Description |
---|---|---|
Unknown | 1 | Unknown status |
StartedAsNext | 2 | The player was started because it was used as the next player. |
RenderingStart | 3 | The player just pushed the very first video frame for rendering. |
Looping | 4 | The player just reached EOS and started from beginning loop. |
Started | 5 | The player acknowledgement that it has started playing. |
Paused | 6 | The player acknowledgement that it has paused. |
Stopped | 7 | The player acknowledgement that it has stopped playing. |
StartedBySharedPlayer | 8 | The player acknowledgement that it has started playing as result of shared player's request. |
PausedBySharedPlayer | 9 | The player acknowledgement that it has paused playing as result of shared player's request. |
SeekBySharedPlayer | 10 | The player acknowledgement that it is seeking as result of shared player's request. |
StoppedBySharedPlayer | 11 | The player acknowledgement that it has stopped playing as result of shared player's request. |
SyncStart | 12 | The Media player has started sync'ing with other shared players. |
SyncComplete | 13 | The Media player has completed sync'ing with other shared players. |
VideoTrackLagging | 700 | The video is too complex for the decoder: it can't decode frames fast enough. |
BufferingStart | 701 | Media player is temporarily pausing playback. |
BufferingEnd | 702 | Media player is resuming playback after filling buffers. |
NetworkBandwidth | 703 | Network bandwidth info. |
BehindLiveWindow | 704 | The player is Behind Live Window. |
PowerStatePause | 705 | Media player is paused because device is in sleep or standby state. |
PowerStateResume | 706 | Media player has resumed playback because device has returned from sleep or standby state. |
BufferedDuration | 707 | Duration in milliseconds of buffered content. |
BadInterleaving | 800 | Bad interleaving means that a media has been improperly interleaved. |
NotSeekable | 801 | The media is not seekable e.g live stream. |
MetadataUpdate | 802 | New media metadata is available. |
PlayAudioError | 804 | Audio can not be played. |
PlayVideoError | 805 | Video can not be played. |
TimedTextError | 900 | Media timed text error. |
PollingStateFlags
Comment Needed!
Enumerator | Value | Description |
---|---|---|
IsPlaying | 1 << 0 | Playing. |
IsLooping | 1 << 1 | Looping. |
HasBeenPrepared | 1 << 2 | Prepared. |
HasPlaybackCompleted | 1 << 3 | Playback completed. |
HasSeekCompleted | 1 << 4 | Seek completed. |
HasSizeChanged | 1 << 5 | Size changed. |
HasBufferingUpdated | 1 << 6 | Buffering updated. |
HasReceivedInfo | 1 << 7 | Received info. |
HasReceivedError | 1 << 8 | Recieved error. |
HasTimedTextUpdated | 1 << 9 | Timed text updated. |
HasSubtitleUpdated | 1 << 10 | Subtitle updated. |
HasMetadataUpdated | 1 << 11 | Metadata updated. |
HasDrmInfoUpdated | 1 << 12 | DRM info updated. |
HasResetCompleted | 1 << 13 | Async Reset completed. |
All | ~0u | All states. |
SeekMode
Mode indicating where exactly to seek to.
Enumerator | Value | Description |
---|---|---|
PreviousSync | 0 | Seek to the previous key frame. |
NextSync | Seek to the next key frame. | |
ClosestSync | Seek to the closest key frame. | |
Closest | Seek to the closest frame, more accurate but slower. |
VideoScalingMode
VideoScalingMode.
Enumerator | Value | Description |
---|---|---|
ScaleToFit | 1 | Scale to fit. |
ScaleToFitWithCropping | 2 | Scale to fit with cropping. |