Video Player
Functional video player app which supports essential player features, including playback, streaming, loop, seeking and so on.
Workflow
Video Player app depends on its manager and scriptable objects. You can add new clips by using Tools > DreamOS > Show Video Library. You can also stream videos by enabling ‘Play From URL’ and setting a proper url. All of the playlist items will be generated at runtime. Items can be edited by selecting and opening the main prefab from Managers > Video Player > Resources tab.
API / Scripting
using Michsky.DreamOS; // namespace
public VideoPlayer videoPlayer;
void YourFunction()
{
videoPlayer.Play(); // Play the current clip
videoPlayer.Pause(); // Pause the current clip
videoPlayer.SeekForward(); // Seek forward depending on seekTime
videoPlayer.SeekBackward(); // Seek backward depending on seekTime
videoPlayer.seekTime = 10f; // Change the seek time value
videoPlayer.loop = true; // Enable or disable looping
videoPlayer.IncreasePlaybackSpeed(); // Increase playback speed by double
videoPlayer.DecreasePlaybackSpeed(); // Decrease playback speed by double
videoPlayer.PlayVideoClip(videoClipVariable, "title"); // Play specific video
videoPlayer.PlayCustomVideo(index); // Play specific video from the library
videoPlayer.PlayVideoURL("url address"); // Stream specific video from URL
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.