如何将提示插入到我想要在 Android 应用程序中播放的视频中?

发布于 2024-09-14 04:30:51 字数 454 浏览 3 评论 0原文

我注意到 Flash 允许您将提示插入视频文件 (flv)。 Android 上可以实现这样的功能吗?我有一个在 Android 应用程序中本地运行的视频,我想在视频中插入提示,以便在到达视频的特定部分时给我回调。如果这是不可能的,是否还有其他方法可以做类似的事情?我必须非常精确地知道提示的位置。

谢谢

注意:
我刚刚在 stackoverflow 上发现了同样的问题。谁能证实情况仍然如此? (这是不可能的,只能通过不断轮询视频)。我确实知道这种方法,但如果您需要将动态视频片段精确且无缝地拼接在一起,那么这不是最准确的方法。

Android VideoView - 检测视频中的时间点

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.

Android VideoView - Detect point of time in video

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巨坚强 2024-09-21 04:30:51

我也在研究这个以及一种提示/动作脚本。对于教程、指导视频,我需要跟踪当前位置,以提供适合该时间点的例如问题和导航菜单。当足以响应用户输入时很容易,但否则会启动一个线程以某个合适的时间间隔进行轮询。精度可能是可以接受的,并且可以通过感测实际位置来校准。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文