Hello,
We are experimenting on playing videos in AR and run successful build on Android, everything works fine. Our application is auto-playing video when succesfully find the target. Also double-tap controller is opens video on full screen. We dont think doing any mistake on following codes on VideoPlayerHelper.cs
/// <summary> /// Request a movie to be played either full screen or on texture and at a given position /// </summary> public bool Play(bool fullScreen, float seekPosition) { // On Android we use Unity's built-in full screen movie player // On iOS we overlay a native full screen player as a new subview of the main window // (note that the Unity engine is not paused in this case) if (fullScreen && (Application.platform == RuntimePlatform.Android )) { if (mFilename == null) { return false; } Handheld.PlayFullScreenMovie(mFullScreenFilename, Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFit); return true; } else { return videoPlayerPlay(fullScreen, seekPosition); } }
It works fine on Android. When we run application on iOS, application starts, we show target to application,we can see augmention object but the video which is inside this object is not playing. Double tab works fine(fullscreen) but when we go back from the fullscreen video stops.
Is there any any code changes when we build application on iOS? Or any of you have an idea about the problem ?
Development Enviroment : Unity Pro, Android Pro, iOS ProTest device : iPhone 5 A1428
VideoPlayer problem on iOS
-> applicationDidEnterBackground()
-> applicationWillEnterForeground()
-> applicationDidBecomeActive()
StartQCAR
VideoPlayer problem on iOS
Is this problem reproduceable using the VideoPlayback sample?
N
VideoPlayer problem on iOS
Basicly yes. We tried implement videoplaybackbehaviour to the books sample.
VideoPlayer problem on iOS
No, that is not what I asked.
When you run the videoplayback sample out of the box, with no modifications, does it work correctly?
N
VideoPlayer problem on iOS
Sorry for misunderstood NalinS.
Yes. VideoPlayback sample works fine. (Autoplay and double tap for fullscreen works)
VideoPlayer problem on iOS
Then you need to compare your code and find out what is different, then debug it ;)
N
VideoPlayer problem on iOS
It seems not possible to play video in texture automatically using video URL. Putting it in to wish-list.
VideoPlayer problem on iOS
Hi ,
I am facing the same problem describe in this topic ,
any workaround , or update to solve it ?
thanks
mauro