Topic locked

videoplayback TAP

February 6, 2015 - 8:11am #1

hi,

 

ive been using the vuforia videplayback sample for sometime now.While double tapping on the video it goes fullscreen coz of the modified script as below(playvideo.cs).This is the only part ive modified.It works fine going to fullscreen and coming back to the camera view.But after coming back i couldnt control the video playback.Even if i try to single tap on the (play icon)playable on texture video..nothing happens....i couldnt pause or play the video.But it plays automatically on image recognition.But on double tapping again it goes to fullscreen mode.I think there is some problem in handling the single tap after coming back from the fullscren mode.Please help me to resolve this issue.

private void HandleDoubleTap ()
    {
       
            Screen.orientation = ScreenOrientation.Portrait;
      

        VideoPlaybackUIEventHandler handler = FindObjectOfType (typeof(VideoPlaybackUIEventHandler)) as VideoPlaybackUIEventHandler;

        handler.mFullScreenMode = true;

        //==================

        currentVideo = PickVideo (Input.mousePosition);

        if (currentVideo != null) {
            if (IsFullScreenModeEnabled ()) {
            
                Debug.Log ("double tapez");

                // Pause the video if it is currently playing
                currentVideo.VideoPlayer.Pause ();

                // Seek the video to the beginning();
                currentVideo.VideoPlayer.SeekTo (0.0f);

                // Display the busy icon
                currentVideo.ShowBusyIcon ();

                // Play the video full screen
                currentVideo.VideoPlayer.Play (true0);

                UpdateFlashSettingsInUIView();
                //}
            }
        }
    }

videoplayback TAP

February 16, 2015 - 1:26am #4

alryt solved it myself.

videoplayback TAP

February 11, 2015 - 5:48am #3

.

videoplayback TAP

February 11, 2015 - 5:09am #2

Alessandro,

 

Any solution for this issue ?

Topic locked