Topic locked

Rendering Stops While Audio Continues When Playin Videos

February 11, 2015 - 5:29pm #6

Hi All,

I have been experiencing weird behavior when trying to play video on top of a target.

On my own app, which runs on iOS and has been working fine (and has been published in the App Store) for almost a year, video plays immediately when the marker is detected. Recently, I've been trying to make some updates and the video is no longer working. As soon as it starts to play, the screen freezes, but the audio continues to play. If I let the video play out, the screen will update and work with my other, video-free markers.

To make sure it wasn't something in my code, I created a fresh project, imported only vuforia 3.0.9 and the video playback sample 3.1.0. Even in this case, the behavior persists. When I view the markers via the sample project app, I get the overlay with the vuforia logo and the play icon, as expected. When I tap the play icon, I see just a black frame where the video should be playing (on top of the marker) and audio continues to play as expected and the background continues to move (I.e. video is not playing, audio is playing, and the live background continues to render.  However, if I tap on the black frame/video render texture plane a second time while it's playing, the screen freezes and the audio continues to play (just like my app does). So now, I am convinced it's not just my app.  

I am running Unity 4.6.2, vuforia 3.0.9, Xcode 6.1.1 and an iPhone 4s running 7.1.2. 

I have been working on this for couple of weeks and need to get my app updated asap, so any help is greatly appreciated.

Rendering Stops While Audio Continues When Playin Videos

February 13, 2015 - 5:07am #5

As far as I can tell, the Videoplayback sample (3.0.10 with Vuforia 3.0.9) should not exhibit this behaviour on the iPhone 4S (as this is a widely tested device).

 Is this happening when using a specific custom video file ? (i.e. using the sample "as is ", but replacing the video files ) ?


Rendering Stops While Audio Continues When Playin Videos

February 13, 2015 - 12:10pm #4

Thanks for getting back to me AlessandroB

Nope.  I'm just using the sample as-is, so the videos is the vuforia sizzle reels (1 and 2 - happens with both).  I just created a new project, imported vuforia and imported the sample.  No changes.

Rendering Stops While Audio Continues When Playin Videos

February 14, 2015 - 12:18pm #3

I've tried building and running the VP sample (3.0.10) with a freshly installed Unity 4.6.2 and with Xcode 6.1.1,  on an iPhone4S with the same OS version (iOS 7.1.2) as your device, but I could not reproduce the issue;

the only thing I can say is that occasionally (but not all the times) I could occasionally see a black frame appearing for a very short time (kind of instantaneous, for the duration of a small fraction of a second) and then immediately disappearing; after that, the Video plays fine without any issue (both video and audio track).

Tried multiple times, but could not reproduce your issue.


The thing that sounds a bit weird is that you mention that your App has been woring fine for almost a year, and then suddenly revealed the issue after some upgrade you made; did you start seeing the issue after upgrading the Unity and or the Xcode version ? If so, might be worth trying to see if you can reproduce the same issue using a previous Unity version (for example 4.5)...


EDIT: or you may want to consider upgrading to Vuforia 4.0 (currently in beta), as this has been very extensively tested with Unity 4.6.1 and 4.6.2 on the range of supported iOS devices.


Rendering Stops While Audio Continues When Playin Videos

February 15, 2015 - 6:13pm #2

Thank you for confirming that all the pieces I am using will work on a 4s, AlessandroB. I went back to my 4s and deleted a bunch of apps and photos and powered it off overnight (suggested by Apple - maybe it resets memory and other settings?).  Anyway, it is now working on my device!  Thank you for helping me figure this out.  I'm sorry for the false alarm.

I hope you had a nice weekend.

Rendering Stops While Audio Continues When Playin Videos

February 16, 2015 - 12:10am #1

Glad to hear it is solved ;-)

Topic locked