The '''VideoTextureProvider''' component is used to display and play video. This component importantly implements both [[Type:ITexture2D|ITexture2D]] and [[Type:IAudioSource|IAudioSource]] which means it can be used as both a texture and a source of audio like a [[Component:StaticAudioClip|StaticAudioClip]]
|Playback|{{RootFieldType|SyncPlayback}}|TypeAdv0=true| controls the playback of both the audio and visual elements of this component at the same time.
|URL|Uri| The website or file source of the video. Like a youtube video or a file on a machine.
|URL|Uri| The website or file source of the video. Like a youtube video or a file on a machine.
|Stream|Bool| Whether this video should stream the data or cache it
|Stream|Bool| Whether this video should stream the data or cache it
|Volume|Float| The volume of the video when being used as an [[Type:IAudioSource|IAudioSource]]
|Volume|Float| The volume of the video when being used as an [[Type:IAudioSource|IAudioSource]] in an audio player.
|ForcePlaybackEngine|String|
|ForcePlaybackEngine|String| The engine to use for playback like UnityPlaybackEngine or LibVLC.
|ForceVideoStreamingServiceParsing|Bool|
|ForceVideoStreamingServiceParsing|Bool| Whether to force parsing a streaming service like Twitch.
|CurrentClockError|{{RootFieldType|RawOutput`1|[[Type:Float|Float]]}}|TypeAdv8=true| The amount of seconds the player may have in error due to lag or otherwise.
|FilterMode|TextureFilterMode| The filtering that should be applied to the texture part of the video
|FilterMode|TextureFilterMode| The filtering that should be applied to the texture part of the video
|AnisotropicLevel|Int|
|AnisotropicLevel|Int| The levels of anisotropic as the texture is viewed at further levels of distance on anisotropic mode (<code>FilterMode</code>)
|WrapModeU|TextureWrapMode| The wrapping that should be used when tiling the texture on the X axis.
|WrapModeU|TextureWrapMode| The wrapping that should be used when tiling the texture on the X axis.
|WrapModeV|TextureWrapMode| The wrapping that should be used when tiling the texture on the Y axis.
|WrapModeV|TextureWrapMode| The wrapping that should be used when tiling the texture on the Y axis.
|MaxWidth|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Int|Int]]>'''|TypeAdv15=true| The max pixels on the x axis that will be rendered when using this as a texture.
|MaxHeight|'''[[Type:Nullable`1|Nullable`1]]<[[Type:Int|Int]]>'''|TypeAdv16=true| The max pixels on the y axis that will be rendered when using this as a texture.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
This component is often seen with [[Video Player|Video Players]], as they hold an [[Type:ITexture2D|ITexture2D]] and can be used by users in different ways (i.e. Multiple screens sharing one Video Player texture).
This component is often seen with [[Video Player|Video Players]], as they implement [[Type:ITexture2D|ITexture2D]] (meaning they are also a texture) and also implement IAudioSource (Which mean that are also like an audio clip) and can be used by users in different ways (i.e. Multiple screens and speakers sharing one Video Player texture).
Video Texture Provider component as seen in the Scene Inspector
The VideoTextureProvider component is used to display and play video. This component importantly implements both ITexture2D and IAudioSource which means it can be used as both a texture and a source of audio like a StaticAudioClip
The max pixels on the y axis that will be rendered when using this as a texture.
Usage
This component is often seen with Video Players, as they implement ITexture2D (meaning they are also a texture) and also implement IAudioSource (Which mean that are also like an audio clip) and can be used by users in different ways (i.e. Multiple screens and speakers sharing one Video Player texture).
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.