Android Videoview Rtsp

Complete

A example of using VideoView to play RTSP stream. Contribute to iamcxa/android-play-rtsp-by-videoview development by creating an account on GitHub.

  1. All it needs to do is open an RTSP stream from a webcam and play it until the app is turned off without interruptions. It doesn't need any fancy controls or specific GUI, the RTSP address can be hardcoded into the app so long as the app opens the stream upon launch and plays the stream.
  2. I am trying to develop an Android based application, which can play video from a live stream. This live stream is produced using Wowza Media Server. The URL is: rtsp://tv.hindiworldtv.com:1935/live/.

I am creating video playing app from Youtube. I have extracted Video Data using gdata API and got 3gp url for format 1,6. This i got extracted from Media:Group - Media:content element. My Device Info Android 4.0.3 and Model Micromax P350. These video is working in VLC Player but not in VideoView in my app. Here is my code. Android VideoViewでRTPストリームを再生したいと考えています。私はLinuxマシン上でgstreamerを使ってストリームを作成し、rtpストリームをudpシンクに送ります。 RTSPサーバーを使用せずにAndroid VideoViewでこのストリームを使用することはできますか?.

Tutorial how to play Youtube videos in Android Studio 1.5 with VideoView. Create New Project with Application name: Play Youtube; Minimum SDK: API9 – Android 2.3 (Gingerbread). In app->res->layout->activity_main.xml add the VideoView with code: In app->java->MainActivity complete the code (in onCreate): In manifest->AndroidManifest.xml add the permissions: Run your app in Emulator or better in Mobile device and see the Youtube video.How to get 3gp link of Youtube video: For example we have the link www.youtube.com/watch?v=Xprog0HC3aQ1) open new tab in your browser and write: m.youtube.com/watch?v=VIDEO_ID&app=m 2) now change VIDEO_ID from above with your video id code (Xprog0HC3aQ) and the result should be: m.youtube.com/watch?v=Xprog0HC3aQ&app=m and press enter. 3) right click on your video and Copy Link Location. 4) the result: rtsp://r7—sn-4g57kue6.googlevideo.com/Ck0LENy73wIaRAmk3cJBg-iaXhMYDSANFC0k8JRWMOCoAUIJbXYtZ29vZ2xlSARSBXdhdGNoYKK205Ti2LaNVooBC2lZYlRtN201YTlRDA/9EFB79E36D6A4191F3BF60D01A0AE429B5C9AA32.B774C6D2C0948C3A49A088F9F5CCCFBE34864B29/yt6/1/video.3gp This is what you use on Uri.parse. Watchthe video tutorial how to play Youtube videos in Android with VideoView with Android Studio version 1.5:Download free slideshow app from here and install it on your device to see an youtube video. For furtherquestionsleave a message.

Similar Messages:

Android :: Play RTSP Stream Using Media Player Or VideoView

Jul 2, 2010

I wanted to stream A/V from my machine to Android over HTTP
(http://lists.mplayerhq.hu/pipermail/libav-user/2010-July/004944.html).
But that does not seem feasible using FFMpeg. I am planning to try FFMpeg streaming over RTSP. But I am not sure whether MediaPlayer or VideoView classes on Android support RTSP playback. Is playing RTSP stream possible in simple application?

Android :: Receive And Play MMS Or RTSP Audio Stream?

Jul 2, 2009

does android can recieve and play MMS or RTSP audio stream? or just can address for HTTP stream?? i try for MMS stream,but there is nothing to hear..

Android :: Unable To Play Rtsp Video (H.264) Stream In Froyo Using MediaPlayer

Oct 3, 2010

I have an app that worked fine on Android 2.1 (Eclair) but is no longer working in 2.2.1 (Froyo). I think this may have to do with the shift from OpenCore to StageFright for video encoding and decoding, but am unsure.
The debug logs show two things I'm not sure about:
Does this mean H.264 baseline is not supported? WARN/QCvdec(59): Parsing Error unsupported profile or level No idea about: ERROR/PVOMXVidDecNode(59): Ln 1373 OMX_EventError nData1 -2147479542 nData2 0
Play the following url (it works fine in VLC, for example): rtsp://nexus3.dropcam.com/6821ec44e37846428850ec195d69969a
The code:.........
The debug result:
CODE:................

RTSP Streaming Not Working In VideoView

May 22, 2013

I am creating video playing app from Youtube. I have extracted Video Data using gdata API and got 3gp url for format 1,6. This i got extracted from Media:Group --> Media:content element. My Device Info Android Version 4.0.3.
These video is working in VLC Player but not in VideoView in my app. Here is my code:
Code:
android:id='@+id/LinearLayout01'
android:layout_height='fill_parent'
android:paddingLeft='2px'
android:paddingRight='2px'
[Code]...
I removed // from link as forum was not permitting me to put links

Android :: RTSP Live Streaming With Low Delay

Android Videoview Rtsp

Jan 21, 2010

Our team has been working on a live video application for Android and we'd like to get to a very low end-to-end delay. We use H.264 coded video, RTP packetization, and RTSP to reach the player. We have been experimenting with CIF resolution on Android 2.0. We have been experiencing about 3 seconds of delay on the player side. Any tips on how we could reduce it?

Android :: Rtsp Client For Stream Video?

Jun 28, 2010

say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible

Android :: Playing RTSP Stream For Mobile Youtube Website?

Jan 18, 2010

I was tried for RTSP stream for a long time, finally I could success to play the RTSP stream from mobile Youtube website:
http://m.youtube.com/
My approach is to copy the stream link and paste it in my code, then, there are sometimes success to work(play) on Android and sometimes will not. I can't figure out why? Is something wrong about Youtube server? Because my code is just the same, and only change is the stream link URL. I used VideoView widget and my Android platform is sdk 1.5 and under x86-based, so I really want to know why and how can I solved for this. This is the logcat when I can't work for the video stream.
W/PlayerDriver( 2116): Using generic video MIO
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
E/PlayerDriver( 2116): Invalid percentage buffer size 8 (expected 4)
I/ServiceManager( 2112): service 'media.audio_flinger' died
W/MediaPlayer( 3344): MediaPlayer server died!
E/MediaPlayer( 3344): error (100, 0)
E/MediaPlayer( 3344): Error (100,0)
I/ServiceManager( 2112): service 'media.camera' died
D/VideoView( 3344): Error: 100,0

Android :: Possible To Display Video Information From An Rtsp Stream In Droid App UI?

Mar 23, 2010
Android Videoview Rtsp

I have managed to get a working video player that can stream rtsp links, however m not sure how to display the videos current time position in the UI, i have used the getDuration and getCurrentPosition calls, stored this information in a string and tried to display it in the UI but it doesn't seem to work code...

Android : Streaming Audio/video Can't Stream A Rtsp File

Android Videoview Rtsp Can't Play This Video

Aug 25, 2009

I want to stream a media file on web, and android developer website has said that MediaPlayer.setDataSource() can set the data source (file-path or http/rtsp URL) to use. But I got an error in both G1 device and emulator when streaming a rtsp url file: Command PLAYER_PREPARE completed with an error or info PVMFailure error(1, -1). Does anyone know what is this error, or anyone knows where can I get the error description (1, -1) means? the code can work successfully when playing a audio/video file or streaming a http protocal sudio/video file, but can't stream rtsp protocal file. Is android not supported rtsp streaming?

Android :: Videoview Can't Play Mp4 Smoothly / Fix It?

Jul 23, 2009

I have used videoview to play mp4 formate movie, but when start to play it, the videoview can't play smoothly, that means there have a little lag,
but in the: http://developer.android.com/guide/appendix/media-formats.html the android support media formate have mp4..
the code is very simple,just like in the sample code...

Android :: How To Stream Audio / Video Files Using RTSP In Android?

Aug 9, 2010

Would someone post an example of how to stream audio/video files using rtsp in android........

Android :: Cannot Play Video - VideoView Broken?

Feb 11, 2009

VideoView video_view = new VideoView(context); video_view.setVideoPath('res/raw/movie.mp4'); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start();
Seems simple, but even with video files that I've seen work in other video players on the phone, I keep getting the 'Sorry, this video cannot be played' message. And this associated debug info: INFO/MediaPlayer-JNI(234): prepareAsync: surface=0x1a3ff0 (id=1) ERROR/MediaPlayer(234): Error (-4,0) DEBUG/VideoView(234): Error: -4,0
what those errors mean or how I can fix this? If this is not how I should be using VideoView please let me know. I'd appreciate being sent in the right direction for how to get a local video file playing within a view.

Android :: VideoView Continues To Play / Stop It?

Jun 9, 2010

I have a ListView with information about videos. Once a row is selected, I use a ViewFlipper to show the VideoView. If I go back to the listview (I have a button), the videoview keeps playing. How can I stop the video and hide the videoview when I go back to the listview?

Android : How To Play A Video In VideoView In Droid?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK?

Android : Can't Play Video In VideoView In Droid / How To Fix?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment.

Android : Way To Play Multiple Videos Using VideoView?

Nov 19, 2010

I have kept a list of videos in vector {http://a/video1.mp4, http://a/video2.mp4, http://a/video3.mp4, http://a/video4.mp4, http://a/video5.mp4, http://a/video6.mp4} I want to play all the videos one after the another using the Android native player VideoView.

Android :: How To Link To RTSP Stream On Android Phone?

Jul 18, 2010

I need to play an RTSP audio stream on an Android phone, linked to from a web-page. What's the simplest way to achieve this? I hope this will be very simple but unfortunately I don't have a phone on which to test.

Android :: Media Player Could Not Play RTSP?

Sep 9, 2009

I create a 'mplayer' to play the rtsp on the emulator. When the 'mplayer' play the http ,it is ok.
MediaPlayer mplayer = new MediaPlayer();
mplayer.setDataSource('rtsp://test.intra.3g.sina.com.cn/streaming/ 20090313/wenjiabao1.mp4');
mplayer.prepare(); mplayer.start(); but when it play the rtsp, it doesn't work. The Wireshark shows UDP Checksum Incorrect.

Android :: VideoView Cannot Play Long Path Video

May 28, 2010

VideoView cannot play long path video issue: Bug#8699
enviroment: Platform 2.0 simulator and G2 H/W.
If setVideoPath('/data/data/com.abc.android.abcd/Transformers.mp4');
It can play well.
While, If setVideoPath('/data/data/com.abc.android.abcd/content/ Transformers.mp4');
It cannot play.
Btw: familiar things occured when I display the jpeg file
bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit);
If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display
While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well.

Android :: No Update Buffering When Media Player Play RTSP?

Sep 13, 2009

Why Update buffering is always 0% when mediaplayer play the rtsp? I try to play this both on the emulator and on the device. But eveytime it shows that the Update buffering is always 0%. Could anyone give me a reason?
At last it always shows the log
E/MediaPlayer( 1455): stop called in state 4
E/MediaPlayer( 1455): error (-38, 0)
E/PlayerDriver( 1088): Command (7) was canceled

Android Rtsp Client

Android Videoview Rtsp

Android :: How To Play Media Player With Non-file And Non-rtsp Source

Feb 15, 2010

We've a mpeg4 source that we would like to play in the media player. Our source is not in a file or on an rtsp server. It is hand coded to generate mpeg4 source on the fly. Imagine the data is coming from an unix pipe stream instead of rtsp or a file. How can I use that stream in media player?

Android :: RTSP Coding / Surefire Way To Make Rtsp Work?

Apr 24, 2010

I have Googled my butt off trying to find where if there is a surefire way to make rtsp work. I have a radio station that I listen to that streams via rtsp. Of course by default Android doesn't want to play it. If I pop the URL into yourmuze.fm and create a station there it lets me stream it to my phone. After checking how it works I come to find that it streams to the phone via rtsp! So obviously there is something amiss. What makes one stream work and one not? This is the stream I am attempting : rtsp://wms2.christiannetcast.com/yes-fm
It is an audio stream so I would be thrilled with most peoples problem of 'it only does audio and not video.' When yourmuze.fm streams, DDMS states it brings up MovieView to play the audio if that helps at all.

Android :: RTSP Streams Play Only Sound - While Local Does Video And Sound

Jul 10, 2010

In my application, RTSP streams play only sound without video, but if i specify the video path as a local file, it plays the video and audio.
How would i get the RTSP streams to show video?
CODE:.................

Android :: Play Audio From Stream?

Feb 10, 2010

How to play audio from a stream in android? I will get input stream from an online link( like continuous FM). I need to cache the stream and play it. I searched a lot in sites,but didnt get.They show option of playing from a stored file. There is no option to play from a stream.

Android : Youtube.com Direct Stream - Will Not Play

Aug 8, 2010

Rtsp Port Android

htc desire froyo. When I go to youtube.com from the stock browser I can load the page but when I click to any of videos it looks like it starts to load (loading circle in the middle is rotating) and then I get the message 'An error occured, please try again later.' at the center of the clip.
I was able to play them but now I can't. Can anyone provide a solution?
And please thank you anyway but do not offer solutions such as: use another browser, go to mobile site, use youtube app (which works by the way).
Main reason for me to switch to android is option to enjoy desktop view of the web on mobile device.

Android :: Unable To Play MPEG4 Video Stream On SDK 1.6

Jul 16, 2010

Android Play Rtsp

I am sending a MPEG4 video stream in RTP format over RTSP to my android emulator using ffmpeg and ffserver. I use the Android VideoView to play the RTSP stream. I do not see the video. The error in LogCat is pasted below. Is there some specific that I need to do? If I use the Android 2.2 to run the same code, the video plays fine.
I also tried coding video using H263, but that stream does not play in 1.6/2.2 emulator ­ 07-16 15:50:46.073: DEBUG/PlayerDriver(554): buffering (6) 07-16 15:50:46.273: DEBUG/PlayerDriver(554): buffering (6) 07-16 15:50:46.474: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:46.683: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:46.884: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.092: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.293: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.492: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.703: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:47.902: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:48.113: DEBUG/PlayerDriver(554): buffering (73) 07-16 15:50:48.123: DEBUG/PlayerDriver(554): buffering (100) 07-16 15:50:48.162: ERROR/SW_DEC(554): PV SW DECODER is used for MPEG4 07-16 15:50:48.223: INFO/MP(807): onPrepared called 07-16 15:50:48.223: INFO/MP(807): vv start 07-16 15:50:48.252: INFO/mediaDuration3(807): -1 07-16 15:50:48.384: ERROR/PlayerDriver(554): HandleErrorEvent: PVMFErrCorrupt 07-16 15:50:48.652: WARN/PlayerDriver(554): PVMFInfoErrorHandlingComplete 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (1, -10) 07-16 15:50:48.652: ERROR/MediaPlayer(807): Attempt to call getDuration without a valid mediaplayer 07-16 15:50:48.652: ERROR/MediaPlayer(807): error (-38, 0) 07-16 15:50:48.794: ERROR/MediaPlayer(807): Error (1,-10) 07-16 15:50:48.794: DEBUG/VideoView(807): Error: 1,-10 07-16 15:50:48.794: INFO/MP(807): onError called 07-16 15:50:49.063: ERROR/MediaPlayer(807): Error (-38,0) 07-16 15:50:49.072: DEBUG/VideoView(807): Error: -38,0 07-16 15:50:49.072: INFO/MP(807): onError called ­

Android :: Play Audio From Stream / Stored Cache File

Feb 10, 2010

How to play audio from a stream in android? I will get input stream from an online link( like continuous FM). I need to cache the stream and play it. I searched a lot in sites,but didnt get.They show option of playing from a stored file. There is no option to play from a stream.

Android Videoview Rtsp Stream

Media :: Way To Play A WMP DRM'd Video Stream On Droid

Nov 24, 2010

I want to subscribe to tennistv.com so I can watch tennis and would love to watch it on my Samsung Galaxy S phone too.
It uses a WMP DRM'd stream for live matches, is there any media players on android that I can use or maybe a 3rd party service which can transcode the stream in a format the phone can understand?

HTC Desire :: Need App To Play Live Internet Radio Stream

Android Videoview Rtsp

Android Videoview Center

May 19, 2010

Are there any free apps out there that play live streams I.E audio or video when clicking on a link while surfing the Internet on the htc desire? I'm trying to listen to an Internet radio stream that isn't listed in all those android apps that you can download like XiiaLive Lite. On the PC you would go to the radio station website and click on the listen now link and windows media player or realplayer would pop up and play the stream. Is there anything similar on android that just plays the link?