How to get RTSP Links Android

I got my answer ..thanx to this Element rsp = (Element)entry.getElementsByTagName(“media:content”).item(1); String anotherurl=rsp.getAttribute(“url”); In gdata api only we are getting this type of links : rtsp://v3.cache7.c.youtube.com/CiILENy73wIaGQlOCTh0GvUeYRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp These are playing in VideoView.

How to prevent VideoView/MediaPlayer from stopping other apps’ audio?

Copy paste VideoView from Android sources and comment out these lines: AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); You could name the new class MutedVideoView, for example. gist here: https://gist.github.com/vishna/7e9d3466bced8502fcdd

VideoView onResume loses buffered portion of the video

I’ve spent several hours trying to hack the original VideoView source code and Now I can confirm VideoView can be hacked to behavior what you want – retain buffering after surface destroyed. I’ve tested on my Samsung Galaxy S2, which works as expected, in my case, the video buffering (streaming m4v video from remote http … Read more

Android VideoView black screen

I meet the same problem, and solve it with the accepted solution above plus this: @Override public void onPrepared(MediaPlayer mp) { mp.setOnInfoListener(new MediaPlayer.OnInfoListener() { @Override public boolean onInfo(MediaPlayer mp, int what, int extra) { Log.d(TAG, “onInfo, what = ” + what); if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) { // video started; hide the placeholder. placeholder.setVisibility(View.GONE); return true; … Read more

How to play multiple video files simultaneously in one layout side by side in different view in Android

You are not giving an awful lot of specifics on what exactly you have tried and what the problematic areas are, so I just made a small test to see if I could reproduce any of what you’re describing. I do not have any conclusive findings, but can at least confirm that my Galaxy Nexus … Read more