Click or drag to resize

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)

Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          frame8.MediaPlayer8ExampleControlPanel

Namespace:  frame8.MediaPlayer8Example
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class ControlPanel : MonoBehaviour

The ControlPanel type exposes the following members.

Constructors
  NameDescription
Public methodControlPanel
Top
Methods
  NameDescription
Public methodLoadNext
Loads the next media source from the provided array
Public methodOnBeginPotentialSeek
Callback from a Slider or a similar component when a seeking event may occur
Public methodOnCancelAnyUIEvent
Currently, used only as a callback from a Slider or a similar component when a seeking event that might have occured, was cancelled
Public methodOnEndPotentialSeek
Callback from a Slider or a similar component when a seeking event that might have occured, ended
Public methodOnVolumeValueChanged
Callback from a Slider or a similar component to change the volume Notifies the player to change the volume
Public methodPause
Pauses playback and sets Screen.sleepTimeOut to SleepTimeout.SystemSetting
Public methodPlay
Notifies the player to start/resume playback when ready and sets Screen.sleepTimeOut to SleepTimeout.NeverSleep
Public methodStopLoad
Notifies the player to stop any loading (downloading, buffering, disk writing etc.)
Public methodStopLoadWithReturnValue
Same as StopLoad(), but tells you if the command is accepted or not
Top
See Also