Android系统中使用Console命令播放视频文件
2014-12-17 08:59
861 查看
When streaming, if you want to play a streaming URL, it can be inconvenient if the browser cannot recognize
the URL as a media stream and downloads the content rather than using Gallery to play it.
To create this kind of media streaming, you need to write an apk to use VideoView to play the URL/media
stream from the console.
Here is the command of how to play a media file or network stream from console.
Gingerbread
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "<URL>"
The URL can be file position or network stream URL, such as:
you can play a local file by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "/mnt/sdcard/test.mp4"
You can also play a http stream by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "http://v.iask.com/v_play_ipad.php?vid=76710932"
Or play a rtsp stream by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "rtsp://10.0.2.1:554/stream"
ICS
am start -n com.android.gallery3d/com.android.gallery3d.app.MovieActivity -d "<URL>"
The URL has the same definition of Gingerbread.
the URL as a media stream and downloads the content rather than using Gallery to play it.
To create this kind of media streaming, you need to write an apk to use VideoView to play the URL/media
stream from the console.
Here is the command of how to play a media file or network stream from console.
Gingerbread
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "<URL>"
The URL can be file position or network stream URL, such as:
you can play a local file by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "/mnt/sdcard/test.mp4"
You can also play a http stream by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "http://v.iask.com/v_play_ipad.php?vid=76710932"
Or play a rtsp stream by:
am start -n com.cooliris.media/com.cooliris.media.MovieView -d "rtsp://10.0.2.1:554/stream"
ICS
am start -n com.android.gallery3d/com.android.gallery3d.app.MovieActivity -d "<URL>"
The URL has the same definition of Gingerbread.
相关文章推荐
- android使用mount命令挂载远程视频文件大于10G,播放时出现卡顿的解决办法
- 使用命令行ls命令的Android文件浏览控件,适合于root过的设备,可以读取系统文件
- 【多媒体】Android使用MediaCodec硬解码播放H264格式视频文件
- 使用adb pull命令从android系统中读取文件失败。显示:Permission denied
- Android使用MediaCodec硬解码播放H264格式视频文件
- 使用adb命令删除Android系统data目录下文件及文件夹
- android 源码的m、mm、mmm编译命令的使用与重新打包android系统镜像文件。
- Android使用VideoView播放当前工程中的视频文件
- [置顶] Android使用MediaCodec硬解码播放H264格式视频文件
- Android 使用系统的Activity播放音频文件 intent
- 使用php文件读取视频stream并用flowplayer播放
- D3D下使用VMR9播放视频文件
- Ffmpeg快速命令使用 Ffmpeg选项详解 Ffmepg格式详解 常见视频文件格式详解
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- 使用ext3grep恢复ext3文件系统中误删除文件(使用rm命令误删的)
- 使用ext3grep恢复ext3文件系统中误删除文件(使用rm命令误删的)
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- Linux 查看磁盘分区、文件系统、磁盘的使用情况相关的命令和工具介绍
- 如何计算 一个音视频文件 (.ts)文件 (包含pcr信息). 播放所使用的带宽
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍