播放视频,而在Android上下载 [英] play video while downloading on Android

查看:141
本文介绍了播放视频,而在Android上下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能同时在Android的使用安全asp.net应用程序下载视频的视频流?

Is it possible to stream video while downloading video on ‘Android’ using secure asp.net application?

我有一个HTTPS安全asp.net web应用程序。这个应用程序是专为传召在otherwords摩比网络的移动设备(如iPhone,BB,机器人等)制成,我有一个asp.net网站,用户将浏览移动设备上。我装上这个网站的一些视频文件。这些视频可以通过点击对应的各视频超级链接播放。当我点击来自iPhone或iPad这些超链接,这些视频流得到在屏幕上,并得到正常播放。直到这一点,所有的作品光滑细腻。

I have a https secure asp.net web application. This application is exclusively made for mobile devices (e.g Iphone, BB, Android etc...) called as Mobi web in otherwords, I have an asp.net web site that user will browse on a mobile device. I have some video files loaded on this site. These videos can be played by clicking on corresponding hyperlink of respective video. When I click on these hyperlinks from Iphone or Ipad , these videos get streamed on screen and gets played properly. Till this point all works smooth and fine.

现在当我测试的Android的我的视频文件相同的功能被下载的设备,但没有得到发挥它自己的。最初人们认为,这些文件转换为本土设备兼容的视频文件类型将有助于视频文件来获得自动流。因此,我用一个转换器,所有类型的视频文件转换为Android的和测试3GP',但发现,在这种情况下,视频文件被下载并没有得到自己的发挥。我尝试了各种方法来下载视频文件,像我用的Response.Redirect,然后我用二进制读卡器,然后将3GP处理程序。毫无效果。

Now when I test the same functionality on ‘Android’ my video file gets downloaded on device but don’t get played of its own. Initially it was concluded that converting these files to indigenous device compatible video file types will help video files to get auto streamed. Hence I used a converter to convert all type of video files to ‘3gp’ for ‘Android’ and tested but found that in this case also, the video files gets downloaded and do not get played on their own. I tried various approaches to download video files like I used Response.Redirect, then I used binary reader and then the 3gp handler. Nothing worked.

是否有人知道如何播放视频,而在Android上下载?非常感谢你!

Does anybody know how to play video while downloading on Android? Thank you very much!

推荐答案

Android的可逐步播放MP4视频,如果MOOV'原子在视频的开头。该MOOV原子是保存用于整个文件索引信息的文件的一部分。转换你可以用QT-的fastStart从ffmpeg的视频后(http://www.ffmpeg.org)移动开头的MOOV原子。您也可以尝试使用MP4Box(http://www.videohelp.com/tool​​s/mp4box)暗示后,他们打3GP文件。我以前试过这种适用于Android 3GP文件和为我工作。

Android can play MP4 video progressively if the 'moov' atom is at the beginning of the video. The moov atom is a part of the file that holds index information for the whole file. After converting the video you can use qt-faststart from ffmpeg(http://www.ffmpeg.org) to move the 'moov atom' at the beginning. You can also try playing 3gp files after 'hinting' them by using MP4Box (http://www.videohelp.com/tools/mp4box). I tried this before for 3gp files for android and that worked for me.

这篇关于播放视频,而在Android上下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆