ControllerProxy Class |
Namespace: frame8.Logic.Media.MediaPlayer
public abstract class ControllerProxy : AndroidJavaProxy, IDisposable
The ControllerProxy type exposes the following members.
| Name | Description | |
|---|---|---|
| ControllerProxy |
| Name | Description | |
|---|---|---|
| Events |
Used to subscribe to common events from the native side
| |
| Initialized | If ready to load media a source | |
| MediaPath | The currently played media's location |
| Name | Description | |
|---|---|---|
| CastAJO | ||
| Dispose |
Releases native components and hooks
| |
| GetBufferLevel01RelativeToDuration |
Get's the normalized buffer level as "the last contiguously cached nanosecond from the current position / total duration in nanoseconds".
TL;DR: use it as the normalizedValue for a Slider to display the currently buffered amount in seconds | |
| GetDebugInfo |
Gets the debug info into the specified string
| |
| GetDurationSeconds | ||
| GetNormalizedBufferHealth |
values >=1 mean a low probability of interrruptions. the closer to 0, the bigger the chance of interruptions
| |
| GetPlayWhenReady | ||
| GetProgress01 |
Get's the normalized progress
| |
| GetProgressSeconds |
The currenttly played position
| |
| GetVolume | ||
| Load_SkipChecks | ||
| onDestroyView | ||
| onInitializationError | ||
| onInitialized |
Called from the native side when the native controller is initialized
| |
| onRelease | ||
| RequestSeek01 |
Requests a seek
| |
| RequestSeek01_SkipChecks | ||
| RequestSetVolume |
Requesting to set the volume
| |
| SetCollectDebugInfo |
If to collect debug info. May slow down the framerate a little bit
| |
| SetPlayWhenReady |
Sets if to play the media after it's loaded (in case it's loading or will load). OR sets if to play/pause the media in case it's ready for playback or already playing
| |
| StopPlaybackAndLoading |
Stops everything. Useful when shutting down the player.
A new Load() call should be done in order to re-use the player, in case disposal was not intended | |
| StopPlaybackAndLoading_SkipChecks |
| Name | Description | |
|---|---|---|
| _CurrentInitErrorCallback | ||
| _CurrentInitSuccessCallback | ||
| _MediaPlayerFragment | ||
| _UnityBridgeAJC |