HPV_Manager - ImmersiveStorytelling/DocumentationMasterclass GitHub Wiki

With this class, its possible to control all current active videos.
As you can see, all public function implementations can be used to play, pause, resume, set the speed...

Let's take a look at an example.
If I'd like to start my video at a certain point, make it play in reverse, double the speed and pause it in the middle of the video, I should take following steps.

HPV_Manager mgr = new HPV_Manager();

mgr.PauseVideo(0);

mgr.SetPlayDirection(0, false);
mgr.SetSpeed(0, 2.0);
mgr.SeekToPos(0, mgr.GetNumberOfFrames(0));

mgr.ResumeVideo(0);

if(mgr.GetPosition(0) <= mgr.GetNumberOfFrames(0)/2) 
{ 
   mgr.PauseVideo(0); 
}