如何将提示插入到我想要在 Android 应用程序中播放的视频中?
我注意到 Flash 允许您将提示插入视频文件 (flv)。 Android 上可以实现这样的功能吗?我有一个在 Android 应用程序中本地运行的视频,我想在视频中插入提示,以便在到达视频的特定部分时给我回调。如果这是不可能的,是否还有其他方法可以做类似的事情?我必须非常精确地知道提示的位置。
谢谢
注意:
我刚刚在 stackoverflow 上发现了同样的问题。谁能证实情况仍然如此? (这是不可能的,只能通过不断轮询视频)。我确实知道这种方法,但如果您需要将动态视频片段精确且无缝地拼接在一起,那么这不是最准确的方法。
I noticed that Flash allows you to insert cue's into a video file (flv). Is something like this possible on Android? I have a video that runs locally in my Android app and I would like to insert cues into the video which will give me callbacks when a certain portion of the video has been reached. If this is not possible, are there any other methods to do something similar? I have to be pretty precise with where the cue is located.
Thanks
Note:
I just found this same question on stackoverflow. Can anyone verify that this is still the case? (That it is not possible, only by polling the video continually). I did know of this way, but it's not the most accurate way if you need to be precise and stich dynamic pieces of video together seamlessly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也在研究这个以及一种提示/动作脚本。对于教程、指导视频,我需要跟踪当前位置,以提供适合该时间点的例如问题和导航菜单。当足以响应用户输入时很容易,但否则会启动一个线程以某个合适的时间间隔进行轮询。精度可能是可以接受的,并且可以通过感测实际位置来校准。
I´m working on this as well and a kind of cue/action scripts. For tutorials, instruction video I need to keep track of current position to serve for example questions and navigation menus appropriate for that point in time. Easy when it´s sufficient to act in response to user input but otherwise firing up a thread to poll at some decent interval is the thing. Accuracy might be acceptable and can be calibrated by sensing actual position.