I want to play video automatically when device detects a marker. How can I achieve this functionality? I'm using Vuforia SDK and VideoPlayBack tutorial.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In VideoPlayBack sample : If you would like the video to start playing as soon as it starts tracking and pause as soon as tracking is lost you can do that by commenting the for-loop in VideoPlaybackRenderer.java in method onDrawFrame and instead checking whether the isTracking() value has changed since the last frame. . Notice that you need to be careful not to trigger automatic playback for fullscreen since that will be inconvenient for your users.
回答2:
Yes i`ve done it already and its working perfectly fine and change the things according to my scenario