像 iPhone 一样从浏览器自动启动 Android 中的视频播放器

发布于 2024-08-28 08:14:49 字数 190 浏览 5 评论 0原文

我刚刚创建了 iPhone Web 应用程序,其中包含一些 x264 (mp4) 视频文件。当我直接链接到 iPhone 上的文件并且用户点击该链接时,视频播放器将被加载并开始播放视频。

在 Android 手机上使用该应用程序会导致浏览器下载视频,而不仅仅是播放视频。有没有办法强制视频播放器启动并播放视频而不下载视频?

提前致谢。

I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing.

Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there a way to force a video player to just boot up and play the video not download it?

Thanks in advance.

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

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

发布评论

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

评论(1

南冥有猫 2024-09-04 08:14:49

您应该知道 Android 对于您可以传输的视频流非常严格。为了能够观看视频流(逐步观看和下载),视频容器的格式必须正确。

有很多方法可以创建适合渐进式流式传输的容器。您可以在这里查找:http://groups .google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1

我已成功创建可流式传输的视频。尝试从浏览器打开它: http://students.mimuw.edu.pl /~nh209484/Video000.3gp

You should know that Android is quite strict regarding the video streams that you can stream. To be able to watch a stream a video (progressively watch and download) the video container must be correctly formatted.

There are many ways to create a container suitable for progressive streaming. You can look it up here: http://groups.google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1

I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp

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