Video::​VideoPlayer
Behaviour
Video::​VideoPlayer

class:/TYPE/UnityEngine.Video.VideoPlayer//, can be loaded from an assetbundle using Video::VideoPlayer::createfromassetbundle(bundlename,prefabname) /

Parent

Behaviour

Variables
aspectratio
UnityEngine.Video.VideoAspectRatio aspectratio
audiooutputmode
UnityEngine.Video.VideoAudioOutputMode audiooutputmode
audiotrackcount
readonly System.UInt16 audiotrackcount
cansetdirectaudiovolume
readonly System.Boolean cansetdirectaudiovolume
cansetplaybackspeed
readonly System.Boolean cansetplaybackspeed
cansetskipondrop
readonly System.Boolean cansetskipondrop
cansettime
readonly System.Boolean cansettime
cansettimesource
readonly System.Boolean cansettimesource
canstep
readonly System.Boolean canstep
clip
UnityEngine.Video.VideoClip clip
clocktime
readonly System.Double clocktime
controlledaudiotrackcount
System.UInt16 controlledaudiotrackcount
externalreferencetime
System.Double externalreferencetime
frame
System.Int64 frame
framecount
readonly System.UInt64 framecount
framerate
readonly System.Single framerate
height
readonly System.UInt32 height
islooping
System.Boolean islooping
ispaused
readonly System.Boolean ispaused
isplaying
readonly System.Boolean isplaying
isprepared
readonly System.Boolean isprepared
length
readonly System.Double length
pixelaspectratiodenominator
readonly System.UInt32 pixelaspectratiodenominator
pixelaspectrationumerator
readonly System.UInt32 pixelaspectrationumerator
playbackspeed
System.Single playbackspeed
playonawake
System.Boolean playonawake
rendermode
UnityEngine.Video.VideoRenderMode rendermode
sendframereadyevents
System.Boolean sendframereadyevents
skipondrop
System.Boolean skipondrop
source
UnityEngine.Video.VideoSource source
targetcamera
UnityEngine.Camera targetcamera
targetcamera3dlayout
UnityEngine.Video.Video3DLayout targetcamera3dlayout
targetcameraalpha
System.Single targetcameraalpha
targetmaterialproperty
System.String targetmaterialproperty
targetmaterialrenderer
UnityEngine.Renderer targetmaterialrenderer
targettexture
UnityEngine.RenderTexture targettexture
texture
readonly UnityEngine.Texture texture
time
System.Double time
timereference
UnityEngine.Video.VideoTimeReference timereference
timesource
UnityEngine.Video.VideoTimeSource timesource
url
System.String url
video::​videoplayer::​controlledaudiotrackmaxcount
static readonly System.UInt16 video::videoplayer::controlledaudiotrackmaxcount
waitforfirstframe
System.Boolean waitforfirstframe
width
readonly System.UInt32 width
Functions
enableaudiotrack
System.Void EnableAudioTrack(
System.UInt16 trackIndex,
System.Boolean enabled
)

System.UInt16 trackIndex-no documentation

Parameters
trackIndex
System.UInt16

no documentation enabled -

Returns

System.Void

getaudiochannelcount
System.UInt16 GetAudioChannelCount(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.UInt16

getaudiolanguagecode
System.String GetAudioLanguageCode(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.String

getaudiosamplerate
System.UInt32 GetAudioSampleRate(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.UInt32

getdirectaudiomute
System.Boolean GetDirectAudioMute(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.Boolean

getdirectaudiovolume
System.Single GetDirectAudioVolume(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.Single

gettargetaudiosource
UnityEngine.AudioSource GetTargetAudioSource(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

UnityEngine.AudioSource

isaudiotrackenabled
System.Boolean IsAudioTrackEnabled(
System.UInt16 trackIndex
)

System.UInt16 trackIndex-no documentation

Parameters

trackIndex -

Returns

System.Boolean

pause
System.Void Pause()
Returns

System.Void

play
System.Void Play()
Returns

System.Void

prepare
System.Void Prepare()
Returns

System.Void

setdirectaudiomute
System.Void SetDirectAudioMute(
System.UInt16 trackIndex,
System.Boolean mute
)

System.UInt16 trackIndex-no documentation

Parameters
trackIndex
System.UInt16

no documentation mute -

Returns

System.Void

setdirectaudiovolume
System.Void SetDirectAudioVolume(
System.UInt16 trackIndex,
System.Single volume
)

System.UInt16 trackIndex-no documentation

Parameters
trackIndex
System.UInt16

no documentation volume -

Returns

System.Void

settargetaudiosource
System.Void SetTargetAudioSource(
System.UInt16 trackIndex,
UnityEngine.AudioSource source
)

System.UInt16 trackIndex-no documentation

Parameters
trackIndex
System.UInt16

no documentation source -

Returns

System.Void

stepforward
System.Void StepForward()
Returns

System.Void

stop
System.Void Stop()
Returns

System.Void

video::​videoplayer::​create
static UnityEngine.Video.VideoPlayer Create ()

Constructor replaces new;

Returns

UnityEngine.Video.VideoPlayer

video::​videoplayer::​fromassetbundle
static UnityEngine.Video.VideoPlayer CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

UnityEngine.Video.VideoPlayer