Class VideoHelper
Inheritance
MonoBehaviour
VideoHelper
Assembly: cs.temp.dll.dll
Syntax
public class VideoHelper : MonoBehaviour, IPauseable
Fields
autoOpen
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
autoPlay
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
mesh
Declaration
Field Value
| Type |
Description |
| MeshRenderer |
|
posterTimeCode
Declaration
public float posterTimeCode
Field Value
| Type |
Description |
| System.Single |
|
videoName
Declaration
Field Value
| Type |
Description |
| System.String |
|
Properties
CurrentTime
Declaration
public float CurrentTime { get; }
Property Value
| Type |
Description |
| System.Single |
|
IsPlaying
Declaration
public bool IsPlaying { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
IsPauseable()
Declaration
public bool IsPauseable()
Returns
| Type |
Description |
| System.Boolean |
|
Mute(Boolean)
Declaration
public void Mute(bool mute)
Parameters
| Type |
Name |
Description |
| System.Boolean |
mute |
|
Pause(Boolean)
Declaration
public void Pause(bool pause)
Parameters
| Type |
Name |
Description |
| System.Boolean |
pause |
|
Play()
Declaration
PlayChunk(Single, Single)
Declaration
public void PlayChunk(float startTime, float stopTime)
Parameters
| Type |
Name |
Description |
| System.Single |
startTime |
|
| System.Single |
stopTime |
|
PlayChunk(VideoChunkTime)
Declaration
public void PlayChunk(VideoChunkTime chunkTime)
Parameters
| Type |
Name |
Description |
| VideoChunkTime |
chunkTime |
|
PlayFromTimeCode(Single)
Declaration
public void PlayFromTimeCode(float timeCode)
Parameters
| Type |
Name |
Description |
| System.Single |
timeCode |
|
Seek(Single)
Declaration
public void Seek(float timeSeconds)
Parameters
| Type |
Name |
Description |
| System.Single |
timeSeconds |
|
SetAudioVolume(Single)
Declaration
public void SetAudioVolume(float volume)
Parameters
| Type |
Name |
Description |
| System.Single |
volume |
|
SetVideoClip(ParameterList)
Declaration
public void SetVideoClip(ParameterList parameterList)
Parameters
SetVideoClip(String)
Declaration
public void SetVideoClip(string clipName)
Parameters
| Type |
Name |
Description |
| System.String |
clipName |
|
ShowPosterFrame()
Declaration
public void ShowPosterFrame()
Stop()
Declaration
Events
OnVideoEnded
Declaration
public event Action OnVideoEnded
Event Type
OnVideoPaused
Declaration
public event Action OnVideoPaused
Event Type
OnVideoStarted
Declaration
public event Action OnVideoStarted
Event Type
Implements
IPauseable