In the Sample "VideoPlayback", I tried changing the video playback to Auto, based on the the commented information.
The Single click & the double click to pause and full screen makes the Iphone/Ipad hangs.
Without Auto playback, the sample is working fine.
What I did is
In the EAGLView.mm file
//based on information added by uthaman for automatic playback
[videoPlayerHelper[playerIndex] play:NO fromPosition:VIDEO_PLAYBACK_CURRENT_POSITION];
// --- INFORMATION ---
// One could trigger automatic playback of a video at this point. This
// could be achieved by calling the play method of the VideoPlayerHelper
// object if currentStatus is not PLAYING. You should also call
// getStatus again after making the call to play, in order to update the
// value held in currentStatus.
// --- END INFORMATION ---
//based on information added by uthaman once again get the status and pass
currentStatus = [videoPlayerHelper[playerIndex] getStatus];
and
// --- INFORMATION ---
// One could pause automatic playback of a video at this point. Simply call
// the pause method of the VideoPlayerHelper object without setting the
// timer (as below).
// --- END INFORMATION ---
// If a video is playing on texture and we have lost tracking, create a
// timer on the main thread that will pause video playback after
// TRACKING_LOST_TIMEOUT seconds
for (int i = 0; i < NUM_VIDEO_TARGETS; ++i) {
if (nil == trackingLostTimer && NO == videoData[i].isActive && PLAYING == [videoPlayerHelper[i]getStatus]) {
// based on information commented below 1 row and add [videoPlayerHelper[i] pause]; row by uthaman
// [self performSelectorOnMainThread:@selector(createTrackingLostTimer) withObject:nil waitUntilDone:YES];
[videoPlayerHelper[i] pause];
break;
}
}
Please correct me if i need to change more.
Please suggest how to rectify this.
The device I am using is Iphone 4s and Ipad2
Thanks,
Chandrasekaran K
Auto play enable Video playback hangs
Did anybody find this? I need it too, did you find an answer to this?
Thanks!
Auto play enable Video playback hangs
Hi, i just post on answer with my code that works for Autoplay in this post https://developer.vuforia.com/forum/ios/play-video-automatically-scaning-image-without-pressing-play-button#comment-2028636
Auto play enable Video playback hangs
Hi, I have resolved this question.
if you what achieve these results bellow: