Log in or register to post comments

Starting the video full screen mode from where it stopped

February 7, 2017 - 4:35am #1

Okay, I'd like to see if anyone can help me. I'm using VideoPlayback from vuforia to see some videos through augmented reality. With this demo of VideoPlayback, when I point the camera to the image, the video appears and I click it to start working. When I click twice on the video it goes into full screen mode, but when it enters that mode, it returns the video to the beginning. I want it when I give two clicks it enters the full screen mode but starting from where it was when I gave the two clicks, that is, if it is in 0:30 video, when I click twice I wanted it to enter Full screen starting at 0:30. Does anyone know how to adjust this?

 

Thanks.

Starting the video full screen mode from where it stopped

March 2, 2017 - 8:55am #9

Thank you, I await your assistance.

Starting the video full screen mode from where it stopped

February 14, 2017 - 11:37pm #8

It may be difficult. If I can, I'll help

Starting the video full screen mode from where it stopped

February 9, 2017 - 3:55am #7

As far as I understand, when it goes into full screen mode it opens the video in the tablet player. What if I find a way to cancel the aperture on the tablet and instead have the video zoom in to the screen size? Do you think that would solve it? Could you help me with that?

Starting the video full screen mode from where it stopped

February 9, 2017 - 12:18am #6

Sorry about that, I looked at an older script, but I checked the current version Vufori and unfortunately it did not work as I think it should, as far as I could see that others also had a problem with it. Maybe try a different player to play fullscreen video.

Starting the video full screen mode from where it stopped

February 8, 2017 - 4:52am #5

Hello krzysztofz!

 

It did not work very well. I am using the same template downloaded on the magazine site, I just changed the video for mine and a target image for mine. At the VideoPlaybackTapHandler.cs script. Declare the variable:

Private float someVar;

In that same script I went to the line protected override void OnDoubleTap () and put:

Base.OnDoubleTap ();

         // Get currently playing video, if any,

         // and pause it before the UI menu is opened.

         // This is needed in Unity 5 in order to show the UI menu

         VideoPlaybackBehaviour video = GetPlayingVideo ();

         If (video! = Null && video.VideoPlayer.IsPlayableOnTexture ()) {

             Video.VideoPlayer.Pause ();

SomeVar = video.VideoPlayer.GetCurrentPosition ();

         }

But in this script I did not find the line video.VideoPlayer.Play (true, 0) to do the exchange for the line you told me. How do I do? Do I have to make these changes in other scripts?

Starting the video full screen mode from where it stopped

February 8, 2017 - 12:32am #4

I suppose you use the example script Vuforia VideoPlaybackTapHandler.cs.

This can be done, (for example), in this way:

Adding a variable that stores the value of the start of play, -> someVar

By double-clicking save seek position, after pause -> someVar = video.VideoPlayer.GetCurrentPosition();

Next change video.VideoPlayer.Play(true, 0) to -> video.VideoPlayer.Play(true, someVar);

It shuld be work.

Starting the video full screen mode from where it stopped

February 7, 2017 - 10:04am #3

Unity

Starting the video full screen mode from where it stopped

February 7, 2017 - 6:59am #2

You do this in the Android Studio or Unity?

Log in or register to post comments