Video players: Difference between revisions

From VRChat Wiki
Video compatibility: Added a partially-complete table of video codec and container support.
Fusl (talk | contribs)
updated video codecs and containers matrix for quest 2
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Noticebox/Official}}{{Noticebox/Stub|This page is not yet complete! You can contribute, by expanding and proofreading, in accordance with the [[VRCWiki:Manual of Style|Manual of Style]].}}
{{Noticebox/Official}}
{{Noticebox/Stub|This page is not yet complete! You can contribute, by expanding and proofreading, in accordance with the [[VRCWiki:Manual of Style|Manual of Style]].}}


'''Video players''' are [[Prefabs|prefabs]] in VRChat [[Worlds|worlds]], using [[Udon]], that allow users to share, or stream video content simultaneously. VRChat officially uses two types of video players in their [[VRChat SDK|SDK]], ''VRCAVProVideoPlayer'', and ''VRCUnityVideoPlayer''<ref>[https://creators.vrchat.com/worlds/udon/video-players/ Video Players | VRChat Creation] on ''creators.vrchat.com; retrieved December 7, 2024</ref>. However, there are different [[Community:Video players|community-created]] video player prefabs, with different user interfaces, and preferences. All video players utilize world audio, and most video players have a volume slider on the user interface.
'''Video players''' are [[Prefabs|prefabs]] in VRChat [[Worlds|worlds]], using [[Udon]], that allow users to share, or stream video content simultaneously. VRChat officially uses two types of video players in their [[VRChat SDK|SDK]], ''VRCAVProVideoPlayer'', and ''VRCUnityVideoPlayer''<ref>[https://creators.vrchat.com/worlds/udon/video-players/ Video Players | VRChat Creation] on ''creators.vrchat.com; retrieved December 7, 2024</ref>. However, there are different [[Community:Video players|community-created]] video player prefabs, with different user interfaces, and preferences. All video players utilize world audio, and most video players have a volume slider on the user interface.
Line 6: Line 7:
Using VRChat's default [[Settings|settings]], video players can play videos from their list of [[Trusted URLs|trusted sources]], such as YouTube and Twitch. However, by toggling "Allow Untrusted URLs" in your settings, videos from most sources should be able to play and be watched, and as long as it's a supported video format, or stream codec, by the player.
Using VRChat's default [[Settings|settings]], video players can play videos from their list of [[Trusted URLs|trusted sources]], such as YouTube and Twitch. However, by toggling "Allow Untrusted URLs" in your settings, videos from most sources should be able to play and be watched, and as long as it's a supported video format, or stream codec, by the player.


Playing videos not from the video player allowlist<ref>[https://creators.vrchat.com/worlds/udon/video-players/www-whitelist/ Video Player Allowlist] on ''creators.vrchat.com''; retrieved December 7, 2024.</ref> in Public [[Instances|instances]] may be limited, unless the world creator has that domain or host whitelisted.
Playing videos not from the video player allowlist<ref>[https://creators.vrchat.com/worlds/udon/video-players/www-whitelist/ Video Player Allowlist] on ''creators.vrchat.com''; retrieved December 7, 2024.</ref> in public [[Instances|instances]] may be limited, unless the world creator has that domain or host whitelisted.
 
* '''Note:''' VRChat on Android will not play video if the host is not using HTTPS protocol.


=== Video codecs and containers ===
=== Video codecs and containers ===
If hosting video yourself, VRChat may or may not be able to play various filetypes, depending on the user's platform.  This also varies depending on whether the player is using AVPro or Unity video player.
If hosting video yourself, VRChat may or may not be able to play various filetypes, depending on the user's platform.  This also varies depending on whether the player is using AVPro or Unity video player.


(This table is a work in progress, please fill in other platforms as you're able. Platform compatibility can be tested [https://vrchat.com/home/world/wrld_bcc3fb8b-6bbd-4ea8-991b-7f7da49c1a56/info here].)  
(This table is a work in progress, please fill in other platforms as you're able. Platform compatibility can be tested within this [https://vrchat.com/home/world/wrld_bcc3fb8b-6bbd-4ea8-991b-7f7da49c1a56/info community world].)  
{| class="wikitable"
 
{| class="wikitable sortable"
|+
|+
!
!
!
!
!Win 10
! style="border-right-color:white;" |
!Win 11
! colspan=2 style="border-right-color:white;" |Win 10
!Steam Deck
! colspan=2 style="border-right-color:white;" |Win 11
!Quest 2
! colspan=2 style="border-right-color:white;" |Steam Deck
!Quest 3
! colspan=2 style="border-right-color:white;" |Quest 2
!Android
! colspan=2 style="border-right-color:white;" |Quest 3
!iOS
! colspan=2 style="border-right-color:white;" |Android<ref group="note">URL's must use the <code>https</code> protocol</ref>
! colspan=2 style="border-right-color:white;" |iOS
|-
|-
|Codec
!style="background-color:#777" |Video
|Container
!style="background-color:#777" |Audio
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#777; border-right-color:white;" |Container
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444" |<small>AVPro</small>
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444" |<small>AVPro</small>
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444" |<small>AVPro</small>
| align="center" |<small>AVPro / Unity</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
!style="background-color:#444" |<small>AVPro</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
!style="background-color:#444" |<small>AVPro</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
!style="background-color:#444" |<small>AVPro</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
!style="background-color:#444" |<small>AVPro</small>
!style="background-color:#444; border-right-color:white;" |<small>Unity</small>
|-
|-
!H.264
!H.264
!MP4
!AAC
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |
| align="center" |
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
|-
!H.265
!AAC
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
<ref group="note" name="hevc_video_extentions">Requires [https://apps.microsoft.com/detail/9nmzlz57r3t7 HEVC Video Extensions] to be installed</ref>
| align="center" style="border-right-color:white;" |?
<ref name="hevc_video_extentions" group="note" />
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref group="note" name=":1">Load succeeded with audio, but video did not display</ref>
| align="center" style="border-right-color:white;" |❌
<ref group="note" name=":2">Load succeeded, but video or audio did not display/play</ref>
|-
!VP8
!Vorbis
! style="border-right-color:white;" |WebM
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |✅
|-
!VP9
!Vorbis
! style="border-right-color:white;" |WebM
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
|-
!H.265
!VP9
!MP4
!Vorbis
! style="border-right-color:white;" |MKV
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |
<ref name=":0" group="note">On some hardware, no audio plays</ref>
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
!AV1
!AAC
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
|-
!AV1
!AAC
! style="border-right-color:white;" |MKV
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
!AV1
!Vorbis
! style="border-right-color:white;" |WebM
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
|-
!VP8
!AV1
!WebM
!Vorbis
! style="border-right-color:white;" |MKV
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
<ref name=":0" group="note" />
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
!AV1
!Vorbis
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
<ref group="note" name="videoyessoundno">Load succeeded with video, but audio did not play</ref>
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":3" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
<ref name="videoyessoundno" group="note" />
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name="videoyessoundno" group="note" />
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":2" group="note" />
| align="center" style="border-right-color:white;" |❌
<ref name=":2" group="note" />
|-
!AV1
!Opus
! style="border-right-color:white;" |MKV
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
!AV1
!Opus
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
<ref group="note" name="videoyessoundno"/>
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |✅
| align="center" style="border-right-color:white;" |✅
| align="center" |❌
<ref name=":1" group="note" />
| align="center" style="border-right-color:white;" |❌
<ref name=":2" group="note" />
|-
|-
!VP9
! -
!WebM
!AAC
! style="border-right-color:white;" |M4A
| align="center" |?
| align="center" |?
| align="center" |✔️/
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |
| align="center" style="border-right-color:white;" |
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
! -
!AAC
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
! -
!FLAC
! style="border-right-color:white;" |FLAC
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
! -
!FLAC
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
|-
!VP9
! -
!MKV
!MP3
! style="border-right-color:white;" |MP3
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |
| align="center" |
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
! -
!MP3
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
<ref group="note" name=":3">Loading did not finish</ref>
| align="center" style="border-right-color:white;" |❌
|-
! -
!Vorbis
! style="border-right-color:white;" |OGG
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
<ref group="note">Load succeeded, but audio did not play</ref>
| align="center" style="border-right-color:white;" |❌
|-
! -
!Vorbis
! style="border-right-color:white;" |MKV
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
|-
!AV1
! -
!MP4
!Vorbis
! style="border-right-color:white;" |WEBM
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |
| align="center" |
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
! -
!Opus
! style="border-right-color:white;" |OPUS
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
! -
!Opus
! style="border-right-color:white;" |WebM
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
|-
! -
!Opus
! style="border-right-color:white;" |MP4
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
|-
|-
!AV1
! -
!WebM
!MP3
! style="border-right-color:white;" |PLS
| align="center" |?
| align="center" |?
| align="center" |✔️/
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
|-
! -
!AAC
! style="border-right-color:white;" |PLS
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
|-
|-
!AV1
! -
!MKV
!MP3
! style="border-right-color:white;" |M3U
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✔️/✔️
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
|-
! -
!AAC
! style="border-right-color:white;" |M3U
| align="center" |?
| align="center" |?
| align="center" |✔️/✔️
| align="center" style="border-right-color:white;" |?
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |✅
| align="center" style="border-right-color:white;" |❌
| align="center" |❌
| align="center" style="border-right-color:white;" |❌
| align="center" |?
| align="center" |?
| align="center" style="border-right-color:white;" |?
|}
|}
<references group="note" />


==In the SDK==
==SDK==
You can add video players to your VRChat world with the SDK's VRCAVProVideoPlayer or VRCUnityVideoPlayer. The easiest way to put a Video Player in your Udon world is by using one of the Prefabs, which you can find in: ''Packages/VRChat SDK - Worlds/Samples/UdonExampleScene/Prefabs/VideoPlayers''.
Video players can be added to VRChat worlds with the SDK's <code>VRCAVProVideoPlayer</code> or <code>VRCUnityVideoPlayer</code> prefabs. They can be found in: ''Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VideoPlayers''.
 
Alternatively, there are different community-created video player prefabs that can be used instead.


==Official resources==
==Official resources==
Line 128: Line 587:
* [[Trusted URLs]]
* [[Trusted URLs]]
* [[Udon]]
* [[Udon]]
*
 
==References==
==References==
<references />


[[Category:Video players]]
[[Category:Video players]]
[[Category:Needs images]]
[[Category:Needs images]]

Latest revision as of 17:37, 10 May 2026

V · EThis is an official VRChat information page!
It is reviewed and approved by the VRCWiki Team. Learn how to contribute to this page by reading the Contribution Guide.
V · EThis page is a stub.
You can help the VRChat Wiki by improving it.
[Reason: This page is not yet complete! You can contribute, by expanding and proofreading, in accordance with the Manual of Style.]

Video players are prefabs in VRChat worlds, using Udon, that allow users to share, or stream video content simultaneously. VRChat officially uses two types of video players in their SDK, VRCAVProVideoPlayer, and VRCUnityVideoPlayer[1]. However, there are different community-created video player prefabs, with different user interfaces, and preferences. All video players utilize world audio, and most video players have a volume slider on the user interface.

Video compatibility

Using VRChat's default settings, video players can play videos from their list of trusted sources, such as YouTube and Twitch. However, by toggling "Allow Untrusted URLs" in your settings, videos from most sources should be able to play and be watched, and as long as it's a supported video format, or stream codec, by the player.

Playing videos not from the video player allowlist[2] in public instances may be limited, unless the world creator has that domain or host whitelisted.

Video codecs and containers

If hosting video yourself, VRChat may or may not be able to play various filetypes, depending on the user's platform. This also varies depending on whether the player is using AVPro or Unity video player.

(This table is a work in progress, please fill in other platforms as you're able. Platform compatibility can be tested within this community world.)

Win 10 Win 11 Steam Deck Quest 2 Quest 3 Android[note 1] iOS
Video Audio Container AVPro Unity AVPro Unity AVPro Unity AVPro Unity AVPro Unity AVPro Unity AVPro Unity
H.264 AAC MP4 ? ?
H.265 AAC MP4 ?

[note 2]

?

[note 2]

[note 3]

[note 4]

VP8 Vorbis WebM ? ?
VP9 Vorbis WebM ? ?
VP9 Vorbis MKV ? ?

[note 5]

AV1 AAC MP4 ? ?

[note 3]

AV1 AAC MKV ? ?

[note 3]

AV1 Vorbis WebM ? ?

[note 3]

AV1 Vorbis MKV ? ?

[note 5]

[note 3]

AV1 Vorbis MP4 ? ?

[note 6]

[note 7]

[note 6]

[note 6]

[note 4]

[note 4]

AV1 Opus MKV ? ?

[note 3]

AV1 Opus MP4 ? ?

[note 6]

[note 3]

[note 3]

[note 4]

- AAC M4A ? ?
- AAC MP4 ? ?
- FLAC FLAC ? ?
- FLAC MP4 ? ?
- MP3 MP3 ? ?
- MP3 MP4 ? ?

[note 7]

- Vorbis OGG ? ?

[note 8]

- Vorbis MKV ? ?
- Vorbis WEBM ? ?
- Opus OPUS ? ?
- Opus WebM ? ?
- Opus MP4 ? ?
- MP3 PLS ? ? ? ?
- AAC PLS ? ? ? ?
- MP3 M3U ? ? ? ?
- AAC M3U ? ? ? ?
  1. URL's must use the https protocol
  2. 2.0 2.1 Requires HEVC Video Extensions to be installed
  3. 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 Load succeeded with audio, but video did not display
  4. 4.0 4.1 4.2 4.3 Load succeeded, but video or audio did not display/play
  5. 5.0 5.1 On some hardware, no audio plays
  6. 6.0 6.1 6.2 6.3 Load succeeded with video, but audio did not play
  7. 7.0 7.1 Loading did not finish
  8. Load succeeded, but audio did not play

SDK

Video players can be added to VRChat worlds with the SDK's VRCAVProVideoPlayer or VRCUnityVideoPlayer prefabs. They can be found in: Packages\com.vrchat.worlds\Samples\UdonExampleScene\Prefabs\VideoPlayers.

Alternatively, there are different community-created video player prefabs that can be used instead.

Official resources

See also

References

  1. Video Players | VRChat Creation on creators.vrchat.com; retrieved December 7, 2024
  2. Video Player Allowlist on creators.vrchat.com; retrieved December 7, 2024.