Android :: Getting Streaming Audio To Play With Media Player Class?

Jul 21, 2010

I am currently new to android development I been working on the examples in the Dev Guide in the android website. I want to get a stream from a server I have to play in the emulator when I insert the url it doesn't seam to want to play. My question is there a way to get the emulator to play audio or is it all enabled also does MediaPlayer require a special kind of format like mp3 or ogg? his is the code i am running on my 'onCreate()' method.
MediaPlayer mp - new MediaPlayer();
mp.setDataSource(MY_URL_);
mp.prepare();
mp.start()

Android :: Getting streaming audio to play with Media Player class?


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

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

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 :: Audio Track Class Streaming Mode

May 18, 2010

I am trying to playback voice data which is received in form of RTP packets in my application. The class
Receiver.java extends thread is playing back the audio. The question is
1. For real time streaming operation how to configure the write(byte[], int offsetInBytes, int sizeInBytes) methods?
2. What is the function and purpose of getPlaybackHeadPosition() What is playback head position kindly explain! Note: The RTP packets I am receiving are not from a traditional Datagram Socket but rather then from Ad Hoc Network so there is unknow delay for receiving the RTP packets. I need to design the Receiver class to play back the voice as soon as packets are recieved. Kindly help me in this regard You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+ unsubscribe@ google groups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 3 Replies View Related

Android :: How To Play Streaming Audio / Video From URL

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

HTC EVO 4G :: Can't Play Streaming Audio From Web

Sep 19, 2010

My favorite TV and FM stations all have links on there websites for live streaming vidoe/audio. They all have Quicktime or Windows Media links but my Evo will not plahy them. I've tried several Radio apps on the Market but no luck with them either. Is this a planned fix or do I have to go back to to a I-phone or a windows based phone?

View 7 Replies View Related

Android :: Mediaplayer To Play Live Streaming Audio

Nov 8, 2010

In my music app, i would like to play live streaming like radio broadcasting with mediaplayer as Mediaplayer mp = new Mediaplayer(); mp.setDataSource(LiveStreamingURL); mp.prepare(); mp.start(); but after playing for few seconds it is stopped. I dont know how to overcome it. Give me your suggestions for this.

View 3 Replies View Related

Android :: Application - Play Streaming Audio And Video?

Apr 16, 2010

I want to develop a player on Android, which can play streaming audio and video.how should i start about?

View 1 Replies View Related

HTC EVO 4G :: STREAMING Music Player - Audio Formats

Jul 20, 2010

Any music player that can stream audio formats aac+,pls,m3u.asx,.ram?

View 6 Replies View Related

Motorola CLIQ :: Looking For .m3u Streaming Audio Player

Jan 5, 2010

I'm looking for an audio player that will automatically launch when I click on a .m3u file/link from within my browser. So far I've had no luck finding one.

View 1 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 :: How To Use Media Player In Library Class?

Feb 25, 2009

I have successfully implemented the Media Player for my apps, but when I tried to use some of the callback methods I ran into a problem.What I'm trying to do is use Media Player in a reusable (library) class.This MediaPlayer is created by passing the Activity Context to it's constructor.I then use getApplicationContext to avoid any potential memory leaks.This works well and I'm quite happy with it.My problem is trying to use callbacks.When I implement MediaPlayer.OnPreparedListener in my class.I believe this is due to the class itself not being an Activity.When I implemented the callbacks in a separate test project, the mp.prepare () works fine. I cannot use a passed context to my library class, as that would require the Activity to implement the listener and not my library class. How can I create a library class that creates/uses MediaPlayer and it's callbacks without making it extend Activity?Is this not possible?

View 3 Replies View Related

Media :: Player Url Streaming

Nov 16, 2010

I've got my HTC Desire and i got to listen to my favorite radio station. To do that i got to have an media player that can use url's like win amp or windows media player from windows for example. I've tried most of the e-radio software like tune wiki last. FM etc but it does not help.

View 6 Replies View Related

HTC EVO 4G :: Streaming Media Player

Sep 17, 2010

I am trying to figure out how to set the default player for streaming video on my EVO. I know there is a player on it from HTC called "Streaming Media Player" but it doesn't seem to be the default and I would like it to be. When I am using the Engadget app, and the article has a button to click for a video they have created, my phone seems to use the You Tube player and on occasion it just errors, but if I go to the actual article on the engadget web site and click the video, it opens in the HTC player and works fine. I don't get an option to choose which player I want to use when I click on videos, can I change any of this?

View 1 Replies View Related

Media :: Streaming Audio Via Bluetooth Stereo

Jul 8, 2009

I'm wondering what the current state of streaming online audio through bluetooth stereo is, post cupcake. I think the consensus is that it's not currently possible, but I feel like it should be. In fact, it does ALMOST work. Using StreamFurious or Dizzler, it will start to play and stutter a few seconds, then cut out totally. I can hear a song begin to play, but the audio is choppy and then goes out. So, bluetooth seems to be making, but not maintaining a connection to the audio stream. How to remedy this? I want my streaming SOMAFM.COM.

View 2 Replies View Related

Android :: Java Io Exception In Streaming Media Player

Nov 5, 2009

i have a very simple test app (see below), that simply tries to play a streamed audio file below over and over. after running for about half an hour (the file itself is only like 3.5 minutes or so), I get the following error:

11-05 12:16:07.625: DEBUG/PlayerDriver(554): buffering (15) 11-05 12:16:07.635: DEBUG/PlayerDriver(554): buffering (16) 11-05 12:16:07.644: DEBUG/PlayerDriver(554): buffering (17) 11-05 12:16:07.654: DEBUG/PlayerDriver(554): buffering (18) 11-05 12:16:07.654: DEBUG/PlayerDriver(554): buffering (19) 11-05 12:16:07.724: ERROR/PlayerDriver(554): Command PLAYER_PREPARE completed with an error or info PVMFErrResource 11-05 12:16:07.724: ERROR/MediaPlayer(897): error (1, -17) 11-05 12:16:07.734: WARN/System.err(897): java.io.IOException: Prepare failed.: status=0x1 11-05 12:16:07.744: WARN/PlayerDriver(554): PVMFInfoErrorHandlingComplete 11-05 12:16:07.744: WARN/System.err(897): at android.media.MediaPlayer.prepare(Native Method) 11-05 12:16:07.744: WARN/System.err(897):at com.test.TestPlayer.onCompletion(TestPlayer.java:61) 11-05 12:16:07.754: WARN/System.err(897):.......

View 2 Replies View Related

Android :: Media Recorder Class To Record Audio / Permission Denied

Jun 4, 2010

I'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official ://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initializes and configure the Media Recorder object in order to start recording. Here you have the code:
//initializes audio recorder
//configure the input sources
mrecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
//set the output format
mrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
//set the audio encoding
mrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT)

View 1 Replies View Related

Media :: Vodafone Audio/video Streaming Issue

Aug 15, 2010

I am on the brink of buying my first Android phone (HTC Desire) and have just stumbled across some postings about Vodafone's restrictions on streaming audio and video. I have read a few articles on this now, but I really don't understand exactly what the blocks apply to. It seems to apply to "RTSP" streaming, but I'm not clear about what this is and whether this just applies to live streaming, or also to recorded video such as clips on the BBC News site.Does this apply only to Vodafone, or also to other networks? I was thinking of getting a new contract with Vodafone because the coverage with my current provider Orange in my area is very poor, and because Vodafone have the best price for the Desire. However if this streaming problem applies to all video on Vodafone, I may well pay a little more and go for O2. I don't know whether this would make any difference, but I will be going for an unbranded and unlocked phone through CPW.

View 2 Replies View Related

Media :: How To Get Streaming Audio Browser Links To Work

Sep 18, 2010

I'm a subscriber to a show which I listen to on the PC while I work. I'd like to be able to listen to it on my new Droid X.There are three links on the site. The first one streams to windows media player. The second link streams to real audio. The third link downloads a podcast in mp3 format. So far I haven't figured out how to get any of them to work.The windows media link brings up a video player that says the file can not be displayed or played.The RA link downloads an .ra file. Selecting the file brings up the stock music player, which says it can't play the file. (I do have the RA beta installed but it doesn't appear to be associated with .ra files and I don't know how to fix that. Are there mime types in android?)The mp3 link gives the error "Cannot download. The content is not supported on this phone." Now that's just wrong. It's an MP3 file. The stock player should be able to play it.I'm not greedy -- I'd be happy if any one of these three possibilities worked.

View 2 Replies View Related

Android :: Media Recorder Class Setting Audio Source / Unsupported Parameter

Jun 9, 2010

I'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official site:
http://developer.android.com/reference/android/media/MediaRecorder.html

So I have a method that initializes and configure the MediaRecorder object in order to start recording. Here you have the code:
this.mr = new MediaRecorder();
this.mr.setAudioSource(MediaRecorder.AudioSource.MIC);
this.mr.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
this.mr.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
this.mr.setOutputFile(this.path + this.fileName);
try { this.mr.prepare();
} catch (IllegalStateException e) { Log.d("Syso", e.toString());
e.printStackTrace();
} catch (IOException e) { Log.d("Syso", e.toString());
e.printStackTrace();
}

When I execute this code in the simulator, thanks to logcat, I can see that the method setAudioSource(MediaRecorder.AudioSource.MIC) gives the next error (with the tag audio_ipunt) when it is called:
ERROR/audio_input(34): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
ERROR/audio_input(34): VerifyAndSetParameter failed

And then when the method prepare() is called, I get the another error again:
ERROR/PVOMXEncNode(34): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle

If I start to record by calling the method start(). I get lots of messages saying:
AudioFlinger(34):RecordThread: buffer overflow
Then after stop and release, I can see that a file has been created, but it doesn't seem that it been well recorded. Anyway, if I try this in a real device I can record with no problems, but I CAN'T play what I just recorded. I guess that the key is in these errors that I've mentioned before.

View 5 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 :: Streaming Windows Player To Droid X

Jul 17, 2010

Within Windows Media Player 12 (Win 7 x64), I have checked "Stream > Automatically allow devices to play my media" Unfortunately, when I open up Media Share on the Droid X, and continue to the music folder, it doesn't show anything - instead it lists "no files found" Open Media Share -> Computer -> Play -> Next -> Next (DLNA) -> Next (allow remote playback stuff) -> Next (confirming we're connected to the same network) -> Then I go tot he All Music folder, and the Droid X says "No files to display"

View 8 Replies View Related

Android :: Play Remote Audio File In Android Audio Player

Nov 12, 2010

I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!

View 2 Replies View Related

HTC Incredible :: Streaming Video That Requires Media Player

May 5, 2010

I was wondering if there is a good app like TCPMP for windows based smart phones that can be used for streaming video that launch video in MediaPlayer.

Also, for some reason I have trouble watching HULU on my droid, even in the Skyfire2.0.

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

General :: Find And Use Windows Streaming Media Player For DROIDX?

May 25, 2012

How do you find and open the Windows Streaming Media Player for DROIDX

View 1 Replies View Related

Android :: Media Player Minimizes & Still Playing Audio

Jul 5, 2010

I would like to find an media player that plays videos but when I minimize or multitask to another app I want the videos audio to keep playing like pandora does. The reason for this is bcuz I rip videos off of youtube to mainly listen to the music.

View 2 Replies View Related

HTC Incredible :: Best Audio / Media Player

May 7, 2010

I am looking for a media player - to play all kind of music formats, mp3, wav, etc. Also it would be good to have a player that have a simple search through folders capability to go to navigate to phone's internal memory. The player that comes with Incredible has the capability to search through folders in the internal memory, but I don't think it plays all formats. On the other hand I see that "market" place is full of different players, but all that I downloaded only search on SD card and does not have capability to navigate to internal storage. I know one of the simplest solutions would be to put all music on SD card, but heck we have 8Gb of internal storage why not to use it?

View 4 Replies View Related







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