Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在设备检测到标记时自动播放视频。我怎样才能实现这个功能?我正在使用 Vuforia SDK 和 VideoPlayBack 教程。
是的,我已经完成了,它工作得很好,并根据我的情况改变了事情
在VideoPlayBack示例中:如果您希望视频在开始跟踪后立即开始播放,并在跟踪丢失后立即暂停,您可以通过在方法 onDrawFrame 中注释 VideoPlaybackRenderer.java 中的 for 循环并检查是否isTracking ()值自上一帧以来发生了变化。. 请注意,您需要注意不要触发全屏自动播放,因为这会给您的用户带来不便。