Having an issue with Auto (onTexture) Playback. Is there anyone who can provide advice on how to enable Auto Play on Texture, a workaround?
[Issue/ Procedure to reproduce]
(1) Have TargetA with Video1 associated to it, and TargetB with Video2
(2) Recognize Target A and play Video 1 (auto play)
(3) Recognize Target B and play Video 2 (auto play)
(4) Repeat (2) and (3) for several times, and may exit/reenter AR mode
(5) Will see: a target is recognized and the associated video's audio playback is OK, while the texture is black, or remains the texture from the previous video
[Dev Environment]
- Using VideoPlayback Sample (5.0.5)
- Independent on iOS versions/ iOS devices
[Code change to the sample]
In the "VideoPlaybackEAGLView.mm",
(Line434:) Added 1 line:
[videoPlayerHelper[playerIndex] play:playVideoFullScreen fromPostition:VIDEO_PLAYBACK_CURRENT_POSITION];