Class VideoPlayer
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class VideoPlayer : Behaviour
Properties
aspectRatio
Declaration
public VideoAspectRatio aspectRatio { get; set; }
Property Value
audioOutputMode
Declaration
public VideoAudioOutputMode audioOutputMode { get; set; }
Property Value
audioTrackCount
Declaration
public ushort audioTrackCount { get; }
Property Value
canSetDirectAudioVolume
Declaration
public bool canSetDirectAudioVolume { get; }
Property Value
canSetPlaybackSpeed
Declaration
public bool canSetPlaybackSpeed { get; }
Property Value
canSetSkipOnDrop
Declaration
public bool canSetSkipOnDrop { get; }
Property Value
canSetTime
Declaration
public bool canSetTime { get; }
Property Value
canSetTimeSource
Declaration
public bool canSetTimeSource { get; }
Property Value
canStep
Declaration
public bool canStep { get; }
Property Value
clip
Declaration
public VideoClip clip { get; set; }
Property Value
clockTime
Declaration
public double clockTime { get; }
Property Value
|
Improve this Doc
View Source
controlledAudioTrackCount
Declaration
public ushort controlledAudioTrackCount { get; set; }
Property Value
controlledAudioTrackMaxCount
Declaration
public static ushort controlledAudioTrackMaxCount { get; }
Property Value
externalReferenceTime
Declaration
public double externalReferenceTime { get; set; }
Property Value
frame
Declaration
public long frame { get; set; }
Property Value
frameCount
Declaration
public ulong frameCount { get; }
Property Value
frameRate
Declaration
public float frameRate { get; }
Property Value
height
Declaration
public uint height { get; }
Property Value
isLooping
Declaration
public bool isLooping { get; set; }
Property Value
isPaused
Declaration
public bool isPaused { get; }
Property Value
isPlaying
Declaration
public bool isPlaying { get; }
Property Value
isPrepared
Declaration
public bool isPrepared { get; }
Property Value
length
Declaration
public double length { get; }
Property Value
pixelAspectRatioDenominator
Declaration
public uint pixelAspectRatioDenominator { get; }
Property Value
pixelAspectRatioNumerator
Declaration
public uint pixelAspectRatioNumerator { get; }
Property Value
playbackSpeed
Declaration
public float playbackSpeed { get; set; }
Property Value
playOnAwake
Declaration
public bool playOnAwake { get; set; }
Property Value
renderMode
Declaration
public VideoRenderMode renderMode { get; set; }
Property Value
sendFrameReadyEvents
Declaration
public bool sendFrameReadyEvents { get; set; }
Property Value
skipOnDrop
Declaration
public bool skipOnDrop { get; set; }
Property Value
source
Declaration
public VideoSource source { get; set; }
Property Value
targetCamera
Declaration
public Camera targetCamera { get; set; }
Property Value
targetCamera3DLayout
Declaration
public Video3DLayout targetCamera3DLayout { get; set; }
Property Value
targetCameraAlpha
Declaration
public float targetCameraAlpha { get; set; }
Property Value
targetMaterialProperty
Declaration
public string targetMaterialProperty { get; set; }
Property Value
targetMaterialRenderer
Declaration
public Renderer targetMaterialRenderer { get; set; }
Property Value
targetTexture
Declaration
public RenderTexture targetTexture { get; set; }
Property Value
texture
Declaration
public Texture texture { get; }
Property Value
time
Declaration
public double time { get; set; }
Property Value
timeReference
Declaration
public VideoTimeReference timeReference { get; set; }
Property Value
timeSource
Declaration
public VideoTimeSource timeSource { get; set; }
Property Value
url
Declaration
public string url { get; set; }
Property Value
waitForFirstFrame
Declaration
public bool waitForFirstFrame { get; set; }
Property Value
width
Declaration
public uint width { get; }
Property Value
Methods
EnableAudioTrack(UInt16, Boolean)
Declaration
public void EnableAudioTrack(ushort trackIndex, bool enabled)
Parameters
GetAudioChannelCount(UInt16)
Declaration
public ushort GetAudioChannelCount(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
GetAudioLanguageCode(UInt16)
Declaration
public string GetAudioLanguageCode(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
GetAudioSampleRate(UInt16)
Declaration
public uint GetAudioSampleRate(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
GetDirectAudioMute(UInt16)
Declaration
public bool GetDirectAudioMute(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
GetDirectAudioVolume(UInt16)
Declaration
public float GetDirectAudioVolume(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
GetTargetAudioSource(UInt16)
Declaration
public AudioSource GetTargetAudioSource(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
IsAudioTrackEnabled(UInt16)
Declaration
public bool IsAudioTrackEnabled(ushort trackIndex)
Parameters
Type |
Name |
Description |
UInt16 |
trackIndex |
|
Returns
Pause()
Declaration
Play()
Declaration
Prepare()
Declaration
SetDirectAudioMute(UInt16, Boolean)
Declaration
public void SetDirectAudioMute(ushort trackIndex, bool mute)
Parameters
SetDirectAudioVolume(UInt16, Single)
Declaration
public void SetDirectAudioVolume(ushort trackIndex, float volume)
Parameters
SetTargetAudioSource(UInt16, AudioSource)
Declaration
public void SetTargetAudioSource(ushort trackIndex, AudioSource source)
Parameters
StepForward()
Declaration
public void StepForward()
Stop()
Declaration
Events
|
Improve this Doc
View Source
clockResyncOccurred
Declaration
public event VideoPlayer.TimeEventHandler clockResyncOccurred
Event Type
|
Improve this Doc
View Source
errorReceived
Declaration
public event VideoPlayer.ErrorEventHandler errorReceived
Event Type
|
Improve this Doc
View Source
frameDropped
Declaration
public event VideoPlayer.EventHandler frameDropped
Event Type
|
Improve this Doc
View Source
frameReady
Declaration
public event VideoPlayer.FrameReadyEventHandler frameReady
Event Type
|
Improve this Doc
View Source
loopPointReached
Declaration
public event VideoPlayer.EventHandler loopPointReached
Event Type
|
Improve this Doc
View Source
prepareCompleted
Declaration
public event VideoPlayer.EventHandler prepareCompleted
Event Type
|
Improve this Doc
View Source
seekCompleted
Declaration
public event VideoPlayer.EventHandler seekCompleted
Event Type
|
Improve this Doc
View Source
started
Declaration
public event VideoPlayer.EventHandler started
Event Type
Extension Methods