Apologies if this is covered somewhere else, but I can't find a solution for this.
I'm using Vuforia 4.2.3, Unity 4.6.5f1 and Xcode 6.3.2 and have migrated a Vuforia 3 app over to Vuforia 4 without any problems except for an issue with video playback.
After adding in the new 4.2.3 video prefab and setting up the video, I can get the video to trigger and play automatically without any problems, but what I can't get it to do is pause, play (if not set to auto play) or go full screen on tap like the videos used to do in Vuforia 3.
The play icon will show over the video for example, but when tapping on it I cannot get the video to start playing. Likewise, when the video is playing, tapping on it will not pause the video.
I'm aware that VideoPlaybackController is not part of the 4.2.3 files and I thought this was the part that controlled playback features, but is it because I am using Unity 4.6.5 rather than Unity 5 that the playback controls are not working? We are using some 3rd party assets which do not support Unity 5 so we cannot upgrade at present.
I've seen https://developer.vuforia.com/forum/faq/unity-how-do-i-create-simple-videoplayback-app that provides the code for VideoPlaybackController, but this generates errors because it is for use with an older version of Vuforia.
How can I enable playback controls? Is there an updated version of VideoPlaybackController that I can utilise? Or modify the old one in a way that doesn't generate errors?
Any help you can provide would be much appreciated.
Regards,
Matthew.
Are you using the code from the Vuforia 3.x VideoPlayback sample or have you replaced it with the VideoPlayback 4.2.3 source? The VideoPlayerHelper.cs in Unity calls methods in the respective native plug-in (iOS or Android) that is included with the sample. You can find the iOS native source for that here:
Assets/Plugins/iOS/VuforiaMediaSource/src/VuforiaMedia.xcodeproj
You can use the VideoPlayback 4.2.3 sample app as a comparitive reference to your upgraded app.