// Jump forwards 1000ms public void VideoFastForward() { int Milisegundo = 0; if (Input.GetAxis("joystick1_left_trigger") != 0) { Milisegundo = 60000; } else { Milisegundo = 10000; } if (video.playerState == PS4VideoPlayer.VidState.PLAY) { video.Pause(); video.JumpToTime(video.GetCurrentTime() + (ulong)Milisegundo); video.Resume(); video.Pause(); SincronizarSubtitulo(); video.Resume(); } else { video.JumpToTime(video.GetCurrentTime() + (ulong)Milisegundo); SincronizarSubtitulo(); } }
// Jump forwards 1000ms public void VideoFastForward() { #if UNITY_PS4 video.JumpToTime(video.GetCurrentTime() + 1000); AddToOutputText("Fast-forwarded 1 second"); #endif }