By macedo
on Tue, 04/30/2013 - 14:47
Hi,
I want to modify the VideoPlayback sample so my video go fullscreen when the target is lost, I added this code on the end of renderFrameQCAR
if([videoPlayerHelper[indexVideo] getStatus] != PLAYING_FULLSCREEN){ [videoPlayerHelper[indexVideo] play:YES fromPosition:VIDEO_PLAYBACK_CURRENT_POSITION]; }
and removed this
for (int i = 0; i < NUM_VIDEO_TARGETS; ++i) { if (nil == trackingLostTimer && NO == videoData[i].isActive && PLAYING == [videoPlayerHelper[i] getStatus]) { [self performSelectorOnMainThread:@selector(createTrackingLostTimer) withObject:nil waitUntilDone:YES]; break; } }
but nothing append, except when I return to the target it appear whint the "busy" icon.
I also noticed the MPMoviePlayerLoadStateDidChangeNotification notification in VIdeoPlayerHelper is never called.
Any help? Thanks!
VideoPlayback - fullscreen when target lost
Hi macedo,
I think it will be more complicated than just changing these lines.
VideoPlayback - fullscreen when target lost
Hi,
Thanks for the clue, It's working fine now, for all the interested I set trackingLostTimerFired to
VideoPlayback - fullscreen when target lost
Awesome!
This is great to hear and many thanks for sharing :)
N