Log in or register to post comments

Video loading problems

December 2, 2014 - 7:23am #1

I am finding that when I background my app and then open again without the app being killed sometimes I get the loading icon on the video and other times I get the error x icon.

If I kill the app and start from fresh it works perfect.  In fact works perfect up until it is backgrounded then seems not to load the videos again?

Video loading problems

December 8, 2014 - 2:18pm #5

You might want to compare your project to our VideoPlayback sample app. You may want to try waiting about 3-5 seconds after you background the app before restoring from the background when using Unity-compiled versions. Unity may be doing additional suspending tasks that might not complete if immediate suspend/restore is performed.

Video loading problems

December 5, 2014 - 1:08am #4

anyone.....?......?

Video loading problems

December 3, 2014 - 11:54pm #3

Anybody else suffer this experience?

Still cannot get this to stop and seeems like I need to find how to get the vidoe assest to simply reload on the app becoming active again...but where?

Video loading problems

December 3, 2014 - 1:04am #2

I'm thinking that as a fix given I have in this app a single scene that it might be simple to just get the scene to reload using application loadlevel upon returning from background.

Could someone advise how to do this in the XCode project please?  I know OBj-C sure enough but the project build via Unity uses mostly C++ so not overly familiar

Is it correct to change this method to not  test _unityAppReady and just always load as if for the very first time?

 

 

- (void)applicationDidBecomeActive:(UIApplication*)application
{
	printf_console("-> applicationDidBecomeActive()\n");

	if(_unityAppReady)
	{
		if(_didResignActive)
			UnityPause(false);
	}
	else
	{
	NSString* orientation = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"UIInterfaceOrientation"];

	QCARUnityPlayer::getInstance().QCARInit([orientation UTF8String]);
	QCARUnityPlayer::getInstance().QCARSetOrientation([_unityView contentOrientation]);
		[self performSelector:@selector(startUnity:) withObject:application afterDelay:0];
	}

	_didResignActive = false;
}

 

Log in or register to post comments