像 iPhone 一样从浏览器自动启动 Android 中的视频播放器
我刚刚创建了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该知道 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