ControlPanel Class |
Used to ease the demonstration of the package in the example scenes
Contains conveniently-formatted methods to be used as targets for Unity's Buttons' onClick events
that can be assigned with no coding (using the inspector)
Namespace: frame8.MediaPlayer8Example
public class ControlPanel : MonoBehaviour
The ControlPanel type exposes the following members.
| Name | Description | |
|---|---|---|
| ControlPanel |
| Name | Description | |
|---|---|---|
| LoadNext |
Loads the next media source from the provided array
| |
| OnBeginPotentialSeek |
Callback from a Slider or a similar component when a seeking event may occur
| |
| OnCancelAnyUIEvent |
Currently, used only as a callback from a Slider or a similar component when a seeking event that might have occured, was cancelled
| |
| OnEndPotentialSeek |
Callback from a Slider or a similar component when a seeking event that might have occured, ended
| |
| OnVolumeValueChanged |
Callback from a Slider or a similar component to change the volume
Notifies the player to change the volume
| |
| Pause |
Pauses playback and sets Screen.sleepTimeOut to SleepTimeout.SystemSetting
| |
| Play |
Notifies the player to start/resume playback when ready and sets Screen.sleepTimeOut to SleepTimeout.NeverSleep
| |
| StopLoad |
Notifies the player to stop any loading (downloading, buffering, disk writing etc.)
| |
| StopLoadWithReturnValue |
Same as StopLoad(), but tells you if the command is accepted or not
|