NativeBindings
Inherits from:
MagicLeapNativeBindings
Public Methods
MLResult.Code FreeUnmanagedMemory
Get the Media Format of a track.
public MLResult.Code FreeUnmanagedMemory(
IntPtr mediaStringPtr
)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | mediaStringPtr |
string GetTrackLanguage
public static string GetTrackLanguage(
ulong mediaPlayerHandle,
uint trackIndex
)
Parameters
Type | Name | Description |
---|---|---|
ulong | mediaPlayerHandle | |
uint | trackIndex |
MLResult.Code MLMediaPlayerGetTrackLanguage
Get the language of a track.
public MLResult.Code MLMediaPlayerGetTrackLanguage(
ulong mediaPlayerHandle,
uint trackIndex,
ref IntPtr OutTrackLanguage
)
Parameters
Type | Name | Description |
---|---|---|
ulong | mediaPlayerHandle | |
uint | trackIndex | |
ref IntPtr | OutTrackLanguage |
MLResult.Code MLMediaPlayerGetTrackMediaFormat
Get the Media Format of a track.
public MLResult.Code MLMediaPlayerGetTrackMediaFormat(
ulong mediaPlayerHandle,
uint trackIndex,
out ulong formatHandle
)
Parameters
Type | Name | Description |
---|---|---|
ulong | mediaPlayerHandle | |
uint | trackIndex | |
out ulong | formatHandle |
MLResult.Code MLMediaPlayerGetTrackType
Get the type of a track.
public MLResult.Code MLMediaPlayerGetTrackType(
ulong mediaPlayerHandle,
uint trackIndex,
out Type trackType
)
Parameters
Type | Name | Description |
---|---|---|
ulong | mediaPlayerHandle | |
uint | trackIndex | |
out Type | trackType | Media player track types. |
Public Attributes
MAX_KEY_STRING_SIZE
public const uint MAX_KEY_STRING_SIZE = 64;