Auto video play in Augmented Reality in Android [closed]

▼魔方 西西 提交于 2019-12-08 06:23:57

问题


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



来源:https://stackoverflow.com/questions/12968459/auto-video-play-in-augmented-reality-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!