GvrVideoPlayerTexture
Plays video using Exoplayer rendering it on the main texture.
Summary
Inheritance
Inherits from: MonoBehaviour
Public types |
|
---|---|
StereoMode
|
enum |
VideoEvents
|
enum |
VideoPlayerState
|
enum Video player state. |
VideoResolution
|
enum |
VideoType
|
enum Video type. |
Public attributes |
|
---|---|
adjustAspectRatio
|
bool
True for adjusting the aspect ratio of the renderer.
|
initialResolution = VideoResolution.Highest
|
VideoResolution
|
statusText
|
Text
|
useSecurePath
|
bool
The use secure path for DRM protected video.
|
videoContentID
|
string
|
videoProviderId
|
string
|
videoType
|
The type of the video.
|
videoURL
|
string
|
Properties |
|
---|---|
AspectRatio
|
float
|
BufferedPercentage
|
int
|
BufferedPosition
|
long
|
CurrentFrameTexture
|
Texture
|
CurrentPosition
|
long
|
CurrentStereoMode
|
StereoMode
|
CurrentVolume
|
int
|
HasProjection
|
bool
|
Height
|
int
|
IsPaused
|
bool
|
MaxVolume
|
int
|
PlayerState
|
|
Screen
|
Renderer
|
VideoDuration
|
long
|
VideoReady
|
bool
|
Width
|
int
|
Public functions |
|
---|---|
CleanupVideo()
|
void
|
Init()
|
bool
Initialize the video player.
|
Pause()
|
bool
|
Play()
|
bool
|
ReInitializeVideo()
|
void
|
RemoveOnVideoEventCallback(Action< int > callback)
|
void
|
RestartVideo()
|
void
Resets the video player.
|
SetCurrentVolume(int val)
|
void
|
SetDisplayTexture(Texture texture)
|
void
Sets the display texture.
|
SetOnExceptionCallback(Action< string, string > callback)
|
void
|
SetOnVideoEventCallback(Action< int > callback)
|
void
|
Public static functions |
|
---|---|
CreateVideoPlayer()
|
IntPtr
|
DestroyVideoPlayer(IntPtr videoPlayerPtr)
|
void
|
Public types
StereoMode
StereoMode
VideoEvents
VideoEvents
VideoPlayerState
VideoPlayerState
Video player state.
VideoResolution
VideoResolution
VideoType
VideoType
Video type.
Public attributes
adjustAspectRatio
bool adjustAspectRatio
True for adjusting the aspect ratio of the renderer.
initialResolution
VideoResolution initialResolution = VideoResolution.Highest
statusText
Text statusText
useSecurePath
bool useSecurePath
The use secure path for DRM protected video.
videoContentID
string videoContentID
videoProviderId
string videoProviderId
videoURL
string videoURL
Properties
AspectRatio
float AspectRatio
BufferedPercentage
int BufferedPercentage
BufferedPosition
long BufferedPosition
CurrentFrameTexture
Texture CurrentFrameTexture
CurrentPosition
long CurrentPosition
CurrentStereoMode
StereoMode CurrentStereoMode
CurrentVolume
int CurrentVolume
HasProjection
bool HasProjection
Height
int Height
IsPaused
bool IsPaused
MaxVolume
int MaxVolume
PlayerState
VideoPlayerState PlayerState
Screen
Renderer Screen
VideoDuration
long VideoDuration
VideoReady
bool VideoReady
Width
int Width
Public functions
CleanupVideo
void CleanupVideo()
Init
bool Init()
Initialize the video player.
Details | |
---|---|
Returns |
true if successful
|
Pause
bool Pause()
Play
bool Play()
ReInitializeVideo
void ReInitializeVideo()
RemoveOnVideoEventCallback
void RemoveOnVideoEventCallback( Action< int > callback )
RestartVideo
void RestartVideo()
Resets the video player.
SetCurrentVolume
void SetCurrentVolume( int val )
SetDisplayTexture
void SetDisplayTexture( Texture texture )
Sets the display texture.
Details | |||
---|---|---|---|
Parameters |
|
SetOnExceptionCallback
void SetOnExceptionCallback( Action< string, string > callback )
SetOnVideoEventCallback
void SetOnVideoEventCallback( Action< int > callback )
Public static functions
CreateVideoPlayer
IntPtr CreateVideoPlayer()
DestroyVideoPlayer
void DestroyVideoPlayer( IntPtr videoPlayerPtr )