[GearVR] Video only playing on first launch on some devices
I'm currently working on a GearVR experience which involves playing some video, and I'm having a problem with the playback on Note 4 and Note 5 devices, after uploading the app to Oculus Home.
I've been trying to play back the video with both the AVPro plugin from the asset store, as well as the media player in Google VR for Unity, both have the same problem.
The issue is that the video only plays back on the first launch of the app on these devices. That is, first time after install, and the first time after rebooting the device. On the next launches, the app seems to work fine otherwise, but no video is played.
It works as expected if I just build a launchable apk from Unity, then I can re-start it as many times as I want, but as soon as I upload it to Oculus Home as a preview (alpha/beta) app and start it from there, the video only works the first time, and only on Note 4 and 5 devices, on the S6 and S7 it works fine.
Because the device has to be connected to the HMD to start it from Oculus Home, I don't know of any way to debug the app, as adb for example needs a USB connection to the device, and it is already connected to the Gear VR.
Has anyone else had any similar problems? Or have an idea how to debug this?
I'm guessing the app doesn't clean up all it's resources somehow when it's terminated by Oculus Home, is there any way to make sure everything gets cleaned up?
I've been trying to play back the video with both the AVPro plugin from the asset store, as well as the media player in Google VR for Unity, both have the same problem.
The issue is that the video only plays back on the first launch of the app on these devices. That is, first time after install, and the first time after rebooting the device. On the next launches, the app seems to work fine otherwise, but no video is played.
It works as expected if I just build a launchable apk from Unity, then I can re-start it as many times as I want, but as soon as I upload it to Oculus Home as a preview (alpha/beta) app and start it from there, the video only works the first time, and only on Note 4 and 5 devices, on the S6 and S7 it works fine.
Because the device has to be connected to the HMD to start it from Oculus Home, I don't know of any way to debug the app, as adb for example needs a USB connection to the device, and it is already connected to the Gear VR.
Has anyone else had any similar problems? Or have an idea how to debug this?
I'm guessing the app doesn't clean up all it's resources somehow when it's terminated by Oculus Home, is there any way to make sure everything gets cleaned up?
