Creators / Worlds
Video players
Play videos and streams in your world.
Add ParelVR Video Player (Add Component > ParelVR > World SDK) to an object that has a Unity Video Player. Set the Video Player's URL and the renderer it draws on as usual; the ParelVR component adds what a world needs on top:
| Field | What it does |
|---|---|
| Player | The Unity Video Player it controls. Empty: the one on the same object. |
| Play On Start | Starts playing when the world loads. |
| Loop | Starts again at the end. |
Its Play, Pause and Stop methods can be wired straight to UI buttons.
YouTube links play as they do in ParelVR. A scene with a video player gets the world runtime it needs, even with no scripts, and the domain of its start address is allowed (YouTube is allowed as youtube.com / youtu.be, whatever the exact host).
Live streams#
Live streams from YouTube, Twitch and Kick play with picture and sound in sync, on PC and in Play Mode. Players can pause and rewind a live stream: the progress bar sits at the end while they watch live, dragging back goes back in the stream (up to two hours), and dragging to the end jumps back to live.
Use the Volt video player for video page addresses (YouTube, Twitch, Kick). Unity's own Video Player cannot open those, and the ParelVR Video Player warns when it is given one.
From a script#
To control playback from VoltCS (play, pause, seek, change the URL for everyone), use VoltVideoPlayer from the Video API. Its events are OnVideoReady, OnVideoStarted, OnVideoPaused, OnVideoEnded and OnVideoError.
