Log in or register to post comments

Video Playback integration

September 19, 2014 - 12:07am #1

Hi,

I am attempting to copy the functionality of the Video Playback sample into my own iOS app, and am stuck at a point...

I have the SDK linked properly, have copied over the class files and assets from the sample, set the arc flags, etc... 

 

Where I am having issues is in launching the VideoPlaybackViewController ... 

I know in the sample the sample app menu is triggered in the App Delegate, then the playback screen is launched from there... 

I believe the relevant code is here : 


- (IBAction)startButtonTapped:(id)sender {
    Class vcClass = NSClassFromString(self.appViewControllerClassName);
    id vc = [[vcClass alloc]  initWithNibName:nil bundle:nil];
    
    SampleAppSlidingMenuController *slidingMenuController = [[SampleAppSlidingMenuController alloc] initWithRootViewController:vc];
    [slidingMenuController shouldIgnoreDoubleTap];
    
    [self.navigationController pushViewController:slidingMenuController animated:NO];
    [slidingMenuController release];
    [vc release]; // don't leak memory
}

 

What I am trying to do is to launch the VideoPlaybackViewController from a segue in my storyboard... but it get stuck on the EaglView progress indicator... 

I've set breakpoints on both the sample and the custom project, and can see the chain of method calls pretty clearly on both... and they seem to match, so I'm not sure that I am doing anything wrong... 

Can someone - either a Mod or someone who has successfully implemented a custom version of the VideoPlayback sample in an ARC project - please give me an idea about what I am missing ?

 

Thanks in advance...

 

~ Jesse

Video Playback integration

November 16, 2014 - 7:34pm #11

rohith19 wrote:

I have downloaded the ideoplayback sample code for IOS. I face issues in orientation. Whn is set orientation as PORTRAIT i don see any issues in any of the devices.

When i run in Landscape , the Black Bar appears in Ipadmini Retina . Can you please let me know the issues and also if anythin is missed in part of SDK

 

This should really be opened as a separate post.

Video Playback integration

November 6, 2014 - 10:38am #10

I have the same problem, so far the only thing i came to figure out is that the only example that can manage screen orientation without issues is Books, there are some differences in the SampleAppSession in Books compare to VideoPlayback, also the Books sample opens the BooksViewController to display the AR, where the VideoPlayback sample opens a VideoPlaybackViewController inside the class SampleAppSlidingMenu. But i currently dont have time to find the answer to this issue, if you find it please share.

I think the "easiest" way to fix this issue is to start from the Books sample.

 

Video Playback integration

November 4, 2014 - 3:19am #9

I have downloaded the ideoplayback sample code for IOS. I face issues in orientation. Whn is set orientation as PORTRAIT i don see any issues in any of the devices.

When i run in Landscape , the Black Bar appears in Ipadmini Retina . Can you please let me know the issues and also if anythin is missed in part of SDK

Video Playback integration

October 9, 2014 - 8:09pm #8

BOOM

That works... and makes sense, even better!

Thanks!

Video Playback integration

October 6, 2014 - 3:13am #7

This also happened to me.

I just move the initialization code in the method initWithNibName to the method loadView, this problem happens because you are no longer initializing your nib file, this is now manage by the storyboard, which means any initialization on this method (initWithNibName) is never called.

Also i linked the VideoPlaybackViewController to the view on the storyboard, I do not call EAGLViewController directly from the storyboard.

Edit: I also moved code from loadView to viewDidLoad so now initWithNibName is empty and its code is in loadView, and the code that was in loadView is at the beginning of viewDidLoad

 

hope this helps. initWithNibName:

Video Playback integration

October 3, 2014 - 7:48am #6

I just get hung eternally on the Progress Indicator while loading the EAGL View.

Will try to verify that / what I am doing it all correctly, but I've converted XIB code to Storybaord code before... 

Thanks for the reply.

Video Playback integration

October 3, 2014 - 7:38am #5

I'm confused... my viewer is inside a storyboard in a navigation controller. All I did was make a new view and bind its controller to EAGLView(Controller?) and it worked fine.

Video Playback integration

October 3, 2014 - 7:00am #4

Cheers, hadn't seen this one... will dig.

Though I wish the SDK would just support the modality that Apple themselves have now been following for 4 subsequent releases of iOS ... :/

Video Playback integration

October 2, 2014 - 6:50pm #3

The VideoPlayback sample app for iOS doesn't use a Storyboard, so you might need to search for some tutorials on how to integrate OpenGL ES 2.0 and Storyboards in order to make your modifications work.

You might find some tips that other users have posted in this thread:

https://developer.vuforia.com/forum/ios/qcar-inside-uinavigationcontroller

 

Video Playback integration

September 28, 2014 - 2:37pm #2

So... 29 views and no help ? 

I know that people have been able to do this, and the moderators should be able to answer this... 

Would appreciate any help ... pls + thx

Log in or register to post comments