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 :: Play RTSP Stream using Media Player or VideoView


Android : Delay In VideoView To Play An RTSP Stream

Feb 18, 2010

I'm using VideoView to play an RTSP video stream. It works fine, however on my Android phone the audio lags the video by about 3 seconds. If I watch it on my computer with VLC both the audio and video are in sync. Has anyone else experienced this audio delay before and how might I go about correcting it on the phone.

View 4 Replies View Related

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.

View 10 Replies View Related

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

View 2 Replies View Related

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?

View 1 Replies View Related

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..

View 2 Replies View Related

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:................

View 3 Replies View Related

Android :: RTSP Streaming Using Media Player

Sep 19, 2009

Recently I just create an app (that is using mediaplayer) to play the RTSP Streaming. At the beginning,I use the SIM card to connect to the internet. I try to let the app play for many times. But it was only success once. Many times the app could not play and the buffer always shows 0%. While I use the WiFi to connect the internet, the rtsp could be played but when I use the another WiFi to connect to the internet, to my surprise it failed. Both the SIM card and WiFi, it all could play the http Streaming. The RTSP Streaming is very strange, I can not understand. I guess there is maybe something wrong with Wireless.

View 4 Replies View Related

Android :: Buffering In Media Player - VideoView Blank For A While

Jun 2, 2010

I am using MediaPlayer to play a video in my app. The video takes a while to buffer and the videoview is blank for that time. Is there a way to start the buffering when the user is in the previous screen, so that when he comes to the video playing screen, the video is ready to play?

View 2 Replies View Related

Android :: Media Player Application - Video Streaming Through RTSP Protocol

Feb 16, 2010

I am writing a media player application in Android when I calling a mp.prepare() it is giving a IllegalStateException. The same RTSP URL working with VLC or quick time Media Player.

View 2 Replies View Related

Media :: Stream From Itunes / Windows Media Player

Mar 1, 2010

I'm looking for an app which will let me listen to music through a shared itunes library, or windows media player library - any suggestions?

View 1 Replies View Related

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

View 2 Replies View Related

Android :: RTSP Streaming With Media Player On Android 1.5 Image?

Sep 16, 2009

Could anyone make mediaplayer play the rtsp streaming work successfully on the standard HTC Android 1.5 image? I have tried a lot, but It always failed.

View 2 Replies View Related

Video Stream For Media Player Android

Jun 23, 2012

I'm developing an application that makes video stream to an internal network, so I need to broadcast to listeners devices (connected to this network), found an application called VPLAYER receiving video stream, but it performs HTTP, which makes the broadcast. So, I wonder if there is any player that receives video stream and run under the UDP or whether it is possible to develop an application that receives the video stream and pass to the player's native android.

View 1 Replies View Related

Media :: Player To Handle MP4 AVC Files With A 5.1 AAC Audio Stream?

Aug 1, 2010

Does anyone know of a player that will handle MP4 AVC files with a 5.1 AAC audio stream? The video plays just fine but none of the players seem capable of "downmixing" to stereo.

I did find one that would play the sound all garbled. I'd hate to have to recode my entire library to stereo to use it on my phone.

View 1 Replies View Related

Media :: Find A Media Player To Play Streaming Videos On Andro?

Sep 1, 2010

Does anyone know where to find a media player that would allow you to play streaming videos on Android Browser?

I want to know if you can play streaming videos on your web browser on your android os phone.

View 1 Replies View Related

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?

View 1 Replies View Related

Media :: No Media Player Will Play Music In Order As CD

Jul 7, 2010

I guess no one cares to listen to their favorite music in the order the artist intended? we now listen to timeless classic Opera in whatever order? makes no difference? Classic Rock albums out of order? Pink Floyd "Dark Side of the Moon"?

View 6 Replies View Related

Media :: Media Player Not Play Downloaded MP3 Files?

Oct 23, 2010

My application gets playlist from a XML file, requests URL of mp3 file from server, downloads and plays it. It was able to download mp3 file but unable to play it. When I used emulator with Android 2.1, it was displayed in LogCat:

[Quote]

View 5 Replies View Related

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

View 8 Replies View Related

Android :: Phone Play Video In Media Player From Given URL?

Oct 24, 2009

Can anyone please tell me if Android Media Player is able to play a video that is placed in a remote server, in a supported format?

View 5 Replies View Related

Android :: Can Media Player Play .wav Fomat Audio?

Feb 16, 2009

I tried to play a piec of 16-bit .wav audio file, no sound came out from my earphone, but .mp3 file would be OK. Do any one else have this kind of experience? This is the code: player = MediaPlayer.create(this, R.raw.test); // I put test.wav in /res/raw player.start();

View 4 Replies View Related

Android :: Media Player - Play Video From Sdcard

Sep 13, 2010

I am new to android.I am trying to play a video from sdcard. this is the sample code I have used..

public class videoa extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.main);

VideoView videoView = (VideoView)this.findViewById(R.id.videoView);
MediaController mc = new MediaController(this);
videoView.setMediaController(mc);
// (1) Web
//videoView.setVideoURI(Uri.parse(
//"http://www.bogotobogo.com/Video/sample.3gp"));
//"http://www.bogotobogo.com/Video/sample.mp4"));................Please help me out.

View 1 Replies View Related

Android :: Media Player Sluggish To Play Sounds

Mar 31, 2009

I have an Activity that plays a brief OGG "pop" sound effect when bubbles pop. To keep it fast and to ensure I can play several pops, I create four MediaPlayer instances. I synchronize access to a pool of instances, so I can play up to four pops at once. Once a sound completes, I call seekTo(0) and return the MediaPlayer instance to my pool.

Here is a rough sketch of the code:
// when the activity resumes... for (int i=0; i<4; i++) {
MediaPlayer mp = MediaPlayer.create(context, R.raw.pop);
mp.setOnCompletionListener(this);
mp.setVolume(1f, 1f); players.add(mp); // put into a pool of available players }

View 4 Replies View Related

Android :: Possible To Use Media Player To Play Streaming Audio?

Mar 21, 2010

The dev guide suggests this
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(this, Uri.parse("http://wamu-1.streamguys.com:80"));
mp.prepare(); mp.start();
I can't seem to get it working though.
I'm getting "java.io.IOException: Prepare failed.: status=0x1"

View 6 Replies View Related

Android :: Media Player To Play AVI And Other File Formats?

Feb 12, 2009

Is there any support for avi and other media formats except mp4 and 3gpp? If there is no support may I develop a support through correct the program? Will that be too difficult ?I don't know where to put my hands into first, should I correct programs in opencore first or should I just correct programs in directory frameworks/base/include/ media . I want to have a clear mind how I can achieve my goal, I need a roadmap to guide me how to do it.

I am trying to get familiar with the SDK 1.0 now. another question, my chip is from freescale and it supports hardware codecs of mpeg4, h.263 and h.264, I don't know whether I can change the program or the architecture of mediaplayer to utilize my hardware codecs instead of software codecs provided by android opencore. I once implement an mplayer to my platform, there is problems about sync of audio and video due to the quality of my chips(CPU can support software codecs but is not fast enough to make sure sync of audio and video), So I am worried about when the android is implemented, there would also be the same problem, and for this reason, I am thinking whether I can utilize my hardware codecs for mediaplayer.

View 3 Replies View Related

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

View 2 Replies View Related

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

Mar 23, 2010

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...

View 6 Replies View Related

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

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?

View 4 Replies View Related

Android :: Media Player Cant Play From Program Data Folder

Sep 22, 2010

When i record my audio from MIC and store file in /data/data/. why Media Player can't play this file ? If i change destination to / sd card/..... - all works great. I do something wrong ? I not found limitation for Media Player. Device - Samsung T959 (Galaxy S).

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved