问题描述
我刚刚创建和iPhone的Web应用程序,其中有一些X264(MP4)上的视频文件。当我直接链接到文件上的iPhone和用户点击链接,视频播放器加载并开始播放视频。
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.
使用在Android手机上的应用程序会导致浏览器下载只是玩它的视频吧。有没有办法强制视频播放器刚刚启动并播放视频下载不了呢?
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?
在此先感谢。
推荐答案
您应该知道,Android是相当严格的有关视频流,你可以流。为了能够观看流视频(渐进观看和下载)视频容器必须格式正确无误。
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
我已经成功地创建了一个流化的视频。尝试从浏览器中打开它: http://students.mimuw.edu.pl/ 〜nh209484 / Video000.3gp
I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp
这篇关于自动从浏览器启动视频播放器在Android中像iPhone并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!