开发者

video streaming and displaying simultaneously in android

开发者 https://www.devze.com 2023-03-06 21:41 出处:网络
Please 开发者_运维技巧provide some url related to some documentation about video streaming in android. I got many document on this site but all are getting total content of video from url and then pla

Please 开发者_运维技巧provide some url related to some documentation about video streaming in android. I got many document on this site but all are getting total content of video from url and then playing the video but i want to stream and play video simultaneously so that i can play without consuming a lot of time. thank you


There are two techniques:

  1. Using MediaPlayer: If you are using streaming server to fetch video then just provide your URL in MediaPlayer source. MediaPlayer will manage everything.

  2. Manually: If you are not using streaming server for video then you need to download and play video. Use following link as example. In following link author explain audio streaming. You can use same technique for video.

http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/

0

精彩评论

暂无评论...
验证码 换一张
取 消