Question by
unity_eaKm_7FNf4Uaww · Jul 30, 2019 at 06:50 AM ·
androidplayertimerdrag
slider for video player
I am developing a non-vr/gyroscope/without cardboard app where I am playing video. In the app, I am using slider for showing video status. I have used gyroscope so that we can swipe a 360 video in all the directions, whats happening is when i drag the slider to fast forward the video, the swipe for video is also working. So I tried to put an empty game object as parent of slider so that it doesn't reflect the video swipe, but this is not working. plus i am trying to show the total time and current time of video, i tried
void SetCurrentTimeUI(){
string minutes = Mathf.Floor((int)vimeoPlayer.controller.videoPlayer.time / 60).ToString("00");
string seconds = ((int)vimeoPlayer.controller.videoPlayer.time % 60).ToString("00");
currentMinutes.text = minutes;
currentSeconds.text = seconds;
}
void SetTotalTimeUI(){
string minutes = Mathf.Floor((int)vimeoPlayer.controller.videoPlayer.url.Length / 60).ToString("00");
string seconds = ((int)vimeoPlayer.controller.videoPlayer.url.Length % 60).ToString("00");
totalMinutes.text = minutes;
totalSeconds.text = seconds;
}
the total time is not displaying the correct time. These are two issues, I am working from one month but I couldn't find solution for this.
Comment