Component:LegacyVideoPlayer: Difference between revisions

From Resonite Wiki
add sync delegate desc
add info
 
Line 3: Line 3:
|Name=Legacy Video Player
|Name=Legacy Video Player
}}
}}
{{stub}}
The '''Legacy Video Player''' component is used to construct and control legacy video players.


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|StereoLayout|StereoLayout|
|StereoLayout|StereoLayout| The layout of the stereo audio for the video player.
|SizeCompensation|Float2|
|SizeCompensation|Float2| How to compensate for video size.
|videoProvider|{{RootFieldType|AssetRef`1|[[Type:VideoTexture|VideoTexture]]}}|TypeAdv2=true|
|videoProvider|{{RootFieldType|AssetRef`1|[[Type:VideoTexture|VideoTexture]]}}|TypeAdv2=true| The video provider component giving the audio and visual data for the video.
|_style|'''[[Component:LegacyUIStyle|LegacyUIStyle]]'''|TypeAdv3=true|
|_style|'''[[Component:LegacyUIStyle|LegacyUIStyle]]'''|TypeAdv3=true| The legacy ui style component being used for this video player.
|_indicatorTextureUrl|{{RootFieldType|FieldDrive`1|[[Type:Uri|Uri]]}}|TypeAdv4=true|
|_indicatorTextureUrl|{{RootFieldType|FieldDrive`1|[[Type:Uri|Uri]]}}|TypeAdv4=true| The field to drive to control the video player's texture url
|_indicatorTint|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv5=true|
|_indicatorTint|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv5=true| The field to drive to control the video player's indictor's tint
|_colliderSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv6=true|
|_colliderSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv6=true| The field to drive to control the video player's collider size
|_frameWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv7=true|
|_frameWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv7=true| The field to drive to control the video player's border frame width
|_frameHeight|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv8=true|
|_frameHeight|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv8=true| The field to drive to control the video player's border frame height
|_frameMaterial|{{RootFieldType|DriveRef`1|[[PBS_RimMetallic|PBS_RimMetallic]]}}|TypeAdv9=true|
|_frameMaterial|{{RootFieldType|DriveRef`1|[[PBS_RimMetallic|PBS_RimMetallic]]}}|TypeAdv9=true| The field to drive to control the video player's frame material
|_displayMaterial|'''[[Component:UnlitMaterial|UnlitMaterial]]'''|TypeAdv10=true|
|_displayMaterial|'''[[Component:UnlitMaterial|UnlitMaterial]]'''|TypeAdv10=true| This stores the video player's display material.
|_displayMaterialTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<[[Type:ITexture2D|ITexture2D]]>}}|TypeAdv11=true|
|_displayMaterialTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<[[Type:ITexture2D|ITexture2D]]>}}|TypeAdv11=true| The field to drive to control the video player's display material texture.
|_displaySize|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv12=true|
|_displaySize|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv12=true| The field to drive to control the video player's display section size.
|_mainAudioOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv13=true|
|_mainAudioOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv13=true| This stores the video player's main audio output.
|_timelineSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv14=true|
|_timelineSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv14=true| This stores the video player's timeline slider.
|_timelinePosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv15=true|
|_timelinePosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv15=true| The field to drive to control the video player's timeline playhead position.
|_timelineWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv16=true|
|_timelineWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv16=true| The field to drive to control the video player's timeline ui width.
|_positionDrive|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv17=true|
|_positionDrive|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv17=true| The field to drive to control the video player's ui position.
|_volumeSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv18=true|
|_volumeSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv18=true| This stores the video player's volume slider.
|_volumePosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv19=true|
|_volumePosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv19=true| The field to drive to control the video player's volume amount.
|_volumeWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv20=true|
|_volumeWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv20=true| The field to drive to control the video player's volume ui width.
|_volumeDrive|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv21=true|
|_volumeDrive|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv21=true| The field to drive to control the video player's volume for the audio output component.
|_buttonsWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv22=true|
|_buttonsWidth|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv22=true| The field to drive to control the video player's button container widths.
|_buttonsHeight|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv23=true|
|_buttonsHeight|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv23=true| The field to drive to control the video player's button container height.
|_buttonsPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv24=true|
|_buttonsPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv24=true| The field to drive to control the video player's button container position.
|_playButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv25=true|
|_playButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv25=true| The field to drive to control the video player's play button color.
|_pauseButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv26=true|
|_pauseButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv26=true| The field to drive to control the video player's pause button color.
|_stopButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv27=true|
|_stopButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv27=true| The field to drive to control the video player's stop button color.
|_loopButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv28=true|
|_loopButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv28=true| The field to drive to control the video player's loop button color.
|_audio3DButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv29=true|
|_audio3DButtonColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv29=true| The field to drive to control the video player's 3d audio button.
|_exportable|'''[[Component:VideoExportable|VideoExportable]]'''|TypeAdv30=true|
|_exportable|'''[[Component:VideoExportable|VideoExportable]]'''|TypeAdv30=true| The component that is used to make this video player exportable.
|_assetProxy|'''[[Component:AssetProxy`1|AssetProxy`1]]<[[Type:VideoTexture|VideoTexture]]>'''|TypeAdv31=true|
|_assetProxy|'''[[Component:AssetProxy`1|AssetProxy`1]]<[[Type:VideoTexture|VideoTexture]]>'''|TypeAdv31=true| The component that is used to allow this video to be dropped into asset fields for videos.
|_referenceProxy|'''[[Component:ReferenceProxy|ReferenceProxy]]'''|TypeAdv32=true|
|_referenceProxy|'''[[Component:ReferenceProxy|ReferenceProxy]]'''|TypeAdv32=true| The component that allows this video to be dropped into texture and audio fields or receivers.
}}
}}


Line 57: Line 57:


== Usage ==
== Usage ==
Used in legacy content. do not use in new content.


== Examples ==
== Examples ==
used in legacy content.


== See Also ==
== See Also ==
* [[Video Player]]


[[Category:Components:Uncategorized{{#translation:}}|Legacy Video Player]]
[[Category:Components:Uncategorized{{#translation:}}|Legacy Video Player]]
[[Category:Components{{#translation:}}|Legacy Video Player]]
[[Category:Components{{#translation:}}|Legacy Video Player]]
[[Category:ComponentStubs]]

Latest revision as of 16:51, 1 June 2025

This article describes a feature marked as legacy—this usually means there's a newer, better alternative. Legacy features might not be removed but they will not be updated, and the team will not provide any support for them.
Component image 
Legacy Video Player component as seen in the Scene Inspector

The Legacy Video Player component is used to construct and control legacy video players.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
StereoLayout StereoLayout The layout of the stereo audio for the video player.
SizeCompensation Float2 How to compensate for video size.
videoProvider VideoTexture The video provider component giving the audio and visual data for the video.
_style LegacyUIStyle The legacy ui style component being used for this video player.
_indicatorTextureUrl field drive of Uri The field to drive to control the video player's texture url
_indicatorTint field drive of ColorX The field to drive to control the video player's indictor's tint
_colliderSize field drive of Float3 The field to drive to control the video player's collider size
_frameWidth field drive of Float The field to drive to control the video player's border frame width
_frameHeight field drive of Float The field to drive to control the video player's border frame height
_frameMaterial reference drive of PBS_RimMetallic The field to drive to control the video player's frame material
_displayMaterial UnlitMaterial This stores the video player's display material.
_displayMaterialTexture reference drive of AssetRef`1<ITexture2D> The field to drive to control the video player's display material texture.
_displaySize field drive of Float2 The field to drive to control the video player's display section size.
_mainAudioOutput AudioOutput This stores the video player's main audio output.
_timelineSlider LegacySlider This stores the video player's timeline slider.
_timelinePosition field drive of Float3 The field to drive to control the video player's timeline playhead position.
_timelineWidth field drive of Float The field to drive to control the video player's timeline ui width.
_positionDrive field drive of Float The field to drive to control the video player's ui position.
_volumeSlider LegacySlider This stores the video player's volume slider.
_volumePosition field drive of Float3 The field to drive to control the video player's volume amount.
_volumeWidth field drive of Float The field to drive to control the video player's volume ui width.
_volumeDrive field drive of Float The field to drive to control the video player's volume for the audio output component.
_buttonsWidth field drive of Float The field to drive to control the video player's button container widths.
_buttonsHeight field drive of Float The field to drive to control the video player's button container height.
_buttonsPosition field drive of Float3 The field to drive to control the video player's button container position.
_playButtonColor field drive of ColorX The field to drive to control the video player's play button color.
_pauseButtonColor field drive of ColorX The field to drive to control the video player's pause button color.
_stopButtonColor field drive of ColorX The field to drive to control the video player's stop button color.
_loopButtonColor field drive of ColorX The field to drive to control the video player's loop button color.
_audio3DButtonColor field drive of ColorX The field to drive to control the video player's 3d audio button.
_exportable VideoExportable The component that is used to make this video player exportable.
_assetProxy AssetProxy`1<VideoTexture> The component that is used to allow this video to be dropped into asset fields for videos.
_referenceProxy ReferenceProxy The component that allows this video to be dropped into texture and audio fields or receivers.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnIndicatorTouched:TouchEvent TouchEvent Called when the indicator button is touched.
OnPlayTouched:TouchEvent TouchEvent Called when the play button is touched.
OnPauseTouched:TouchEvent TouchEvent Called when the pause button is touched.
OnStopTouched:TouchEvent TouchEvent Called when the stop button is touched.
OnLoopTouched:TouchEvent TouchEvent Called when the loop button is touched.
OnAudio3DTouched:TouchEvent TouchEvent Called when the spatialize audio button is touched.
VolumeUp:Action`1<LegacySlider> Action`1<LegacySlider> Called when the volume up button is touched.
VolumeDown:Action`1<LegacySlider> Action`1<LegacySlider> Called when the volume down button is touched.
FastForward:Action`1<LegacySlider> Action`1<LegacySlider> Called when the fast forward button is touched.
FastBackward:Action`1<LegacySlider> Action`1<LegacySlider> Called when the fast backwards button is touched.

Usage

Used in legacy content. do not use in new content.

Examples

used in legacy content.

See Also