Android :: Streaming Video Files Endless Buffering
Dec 14, 2009
I have a problem streaming live video files. When I stream a file say of duration 5 minutes, it stops after streaming 2 to 3 minutes and enters in to endless buffering state. The VideoViews's OnBufferingListener is endlessly executed, however it shows that the buffering is not progressing anymore : MediaPlayer's buffer says it has buffered for example 90% whereas when I call videoView.getBufferPercentage(), I get something very low, like 1% or 5% ... After a while in the buffering state, the application crashes. It seems like the buffering is taking all the memory.
View 2 Replies
Apr 11, 2010
When I use the VideoView to play the RTSP streaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code:
String VideoUri = "rtsp://192.168.5.121:6666/live/h264"; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start();
View 5 Replies
View Related
Jul 10, 2010
I've Set up wowza streaming server in my ubuntu box for RTSP streaming video files. The video gets stream perfectly when I've Totem video player at client side. The same URL or video is failing to work on android device and the application that tries to access that RTSP URL breaks with Mediaplayer error (1,-1).
View 1 Replies
View Related
Aug 6, 2010
Is there a way to change the buffer size in the media player on Android? I'm trying to stream video to mobile devices over rtsp. It works fine, but on android v1.6+ the buffer overflows leading to degraded video quality. Is there any way to configure the media player to use a bigger buffer, or take any other measures to prevent overflow?
View 3 Replies
View Related
Oct 14, 2010
I'm playing video on Android using media player via RTSP. The player takes about 12s to buffer before it starts playing. Anyone know how I can convince the player to buffer less? I have full control over the RTSP server and the SDP it returns.
View 1 Replies
View Related
Jun 4, 2010
I have an app that displays a video using VideoView. The layout consists of a Clock and a VideoView laid out in a simple vertical LinearLayout. Here's my code snippet that I use:
VideoView mVideoView = new VideoView(this);
mVideoView.setVideoPath(myVideoURL);
mVideoView.requestFocus();
mVideoView.start();
Since the buffering of the video takes about 8-10 seconds, the layout comes up with the Clock, but the VideoView stays blank. What I want to achieve is this:
- Display an ImageView for the 10s while the video is buffering
- Detect when the video is ready to be played (onPrepared?)
- Show the Clock and VideoView and start the Video
View 1 Replies
View Related
Oct 13, 2010
I'm developing an application on Android 2.2. This application have to read some h264 videos using HTTP protocol. To read a video, I'm using following methods :
// INIT PART mMediaPlayer = new MediaPlayer(); mMediaPlayer.reset();
mMediaPlayer.setOnErrorListener(this); mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnSeekCompleteListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
// SET DATASOURCE mMediaPlayer.reset(); mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
In prepareAsync callback : public void onPrepared(MediaPlayer mediaplayer) { mMediaPlayer.start();
}
View 2 Replies
View Related
Apr 1, 2013
I can start streaming a video perefectly. However, if i pause it to go do something, or to let it pre-buffer, and i play it again, it will play for a little then stop. I look at the seekbar and it says its fully buffered. However, its not and it doesnt play anything and just sits their saying its buffering.
My guessing, well first attempt and finding the culprit, is that the service that is processing the video gets prematurely terminated and restarted thus returning that the buffer is complete.
View 3 Replies
View Related
Jun 6, 2013
I know the zeiki TB782B is cheap decent tablet but the video buffering from streaming websites is just a killer some sites are better than others Its not my internet speed that's good,but is there anyway I can improve this issue by downloading an app or some kind of hack or update?
View 1 Replies
View Related
Sep 21, 2010
I am trying to develop an android application which will be able to record a video and send it in real time to a remote computer. The computer then will play it live. I have managed to establish a connection between the android and the computer, and to record a video on the android phone. My problem is, how will I be able to send this video to the computer? Does anyone have an idea?
View 5 Replies
View Related
Aug 15, 2010
Kindly provide me the code/steps for Android application which will provide the Video Streaming & Video playing functionalities by accesssing the Videos from various video websites available on Internet.
View 1 Replies
View Related
Nov 14, 2010
Are there any apps to help stream movies/music from my networked attached storage drive. I can do this with my Iphone but the files need to be of a certain format?
View 4 Replies
View Related
Oct 25, 2009
No apps exist yet that can play streaming .asx files? Sort of surprised by this.
View 1 Replies
View Related
Apr 6, 2009
Can anyone tell me how video streaming can done.
View 2 Replies
View Related
Aug 17, 2010
The default player gets out of sync with the audio/video. Is there a replacement for the stock player for streaming video? Im on the htc inc.
View 1 Replies
View Related
Apr 24, 2009
Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
View 2 Replies
View Related
Jul 31, 2009
For a research project we need to capture video on the HTC magic and transmit this video over a network to other devices, both HTC magic's and desktop pc's (which have their own implementations of the codecs).For the transmission over the network we are using some of our own native libraries, which have all compiled fine and work. These libraries work via the RTP (Real time transfer) protocol. This poses a significant problem because RTP expects detailed information about the contents of each packet (exact timestamp, sampling rate, which part of which frame is in each packet etc.) So we tried the method described at http://www.mattakis.com /blog/kisg/20090708/broadcasting-video-with-an This appears the only way to get the MediaRecorder to send it's data to our native application. So we run a server-socket on the native side, send MediaRecorder output to a FileDescriptor of a javasocket. The native side does receive data. 2 problems however :
1. Like said in the blogpost : header information etc. is not filled in, so if we write the data to file from the native-side, it's not playable.
2. The socket we write to is TCP, so a stream implementation. So there is no clear way to know where each frame begins and ends (because the data comes in continuously). And that's the main problem : we can't package the data in good RTP packets for transmission! Nor can we get good information about the timing etc. So we looked into OpenCore a little bit, hoping to be able to do it through JNI-interfaces ourselves (or maybe even directly with the native implementations from our native code). This has proven a daunting task, because so little documentation can be found on these things. So the question is : Is it possible to get the encoded video (and audio) data with clear frame-separation and good timing-information for RTP transmission? (It is not an option to use anything but RTP, as the research is partly about RTP possibilities)
View 7 Replies
View Related
Nov 14, 2009
I need help on live video streaming. I want to do the following things in live video streaming.
1. I want to broadcast the live video which is recording by camera from one android mobile directly to a particular ip address.
2. now i want to play that video to another android mobile from that ip address without storing that video.
View 4 Replies
View Related
May 7, 2009
I tried for video streaming in sdk 1.5. The video format .mp4.But it gives error like "This video is not valid for streaming to this video". But in http://developer.android.com/sdk/android-1.5-highlights.html .mp4 is supported for streaming.
View 7 Replies
View Related
Nov 29, 2009
Is their either a trick or an application that would let a video that is being streamed to loads in the background and allow you to move to another application or back to the browser while the video loads? As soon as I get off screen from the video player, all is lost.
View 1 Replies
View Related
Sep 21, 2010
I have a simple question "*Is Video Streaming possible in Android Emulator*",I am using the example in Android SDK but it give me message "*Sorry Can't play this Video*".I am using Youtube Video to stream in android Emulator.
View 5 Replies
View Related
May 18, 2010
I 'm developing a video streaming android application on HTC Tattoo. I 've Lighttpd server at my server side which i use to stream videos to a web site. On Android , Do I need to enable any module in Lighttpd server?
View 2 Replies
View Related
Jan 16, 2012
How to get videos from android to the wii (hacked of course). I have tried to just plug in a usb cord in the back like I do for my psp but every time I go into an app for watching movies it wont show my phone. I know I can just take the sd card out but its a real pain to take the back off my phone and the case I have on it too.
View 3 Replies
View Related
Feb 28, 2009
I am trying to stream mp4 file and play through programming. I got the following error:
E/PlayerDriver( 25): HandleErrorEvent: type=-11 E/PlayerDriver( 25): Content is truncated. E/MediaPlayer( 908): Error (-11,0)
and played for 10 seconds, and nothing has happened.....
View 2 Replies
View Related
Apr 5, 2010
Our application needs streaming of audio files.I have done with streaming of mp3 files by calling the native player and passing the url to it. Whereas the default player is not able to play the wav format files from remote server. The following code worked for mp3 files...............
View 2 Replies
View Related
Nov 25, 2009
Is it possible to stream live video from android to a server? If yes, can somebody give me some hints in how to do it?
View 3 Replies
View Related
Nov 8, 2010
I've just recently released a first Beta version of AndroidVideo.mobi app, wich allows you to play tv shows and episodes on your phone. I'd be glad if anyone had time to test it and let me know of any quirks and bugs in it.
View 6 Replies
View Related
Nov 1, 2010
I am new in Android. I am using android os 2.2. I am trying to play streaming audio and video from url. I don't know what to do for that. after 3 days og googling i come to know that I have to use mediaPlayer and MediaController classes.I had use different differend combination of codes found on internet but not succeed.Can anybody guide me what to do for streaming audio/video playing. What about the UI if we use MediaPlayer or Controller class. is there any thing to related these in xml file of layout.if not then even please tell me what may be the code for that.please help me.
View 2 Replies
View Related
Jan 15, 2010
I am new to Android. Can any one please tell me the phone models which support RTSP video(H.264) streaming?
View 1 Replies
View Related
Aug 24, 2010
I have created an application that displays XML data information on the top section of my Linear layout. Below that I have a video that is streaming and takes a while to start playing. How would I set a dialogue to display until the video appears?
View 1 Replies
View Related