Android :: Broken Pipe Exception When Tried To Stream Mp3 Stream From Local Server To Android Mediaplayer
Oct 27, 2010
I am trying to stream mp3 stream from my local http server indeed hosted on my phone to android media player.When local server gets the new socket , it starts writing some http headers followed by mp3 stream. but mediaplayer socket is throwing "Broken pipe" exception.Wat may be the issue causing this.
View 1 Replies
Mar 11, 2009
Is it possible to stream a very large mp3 using MediaPlayer? The mp3 I am interested in is over 270 mb.
View 3 Replies
View Related
Feb 17, 2009
I would like to receive an audio stream from an application running on a PC using the 802.11 connection. I tried the following and received Error (-1, 0) from the MediaPlayer:
mp = new MediaPlayer(); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.setDataSource("http://10.1.201.114:11224");
The MediaPlayer does connect to the application and the application starts sending audio but nothing happens on the G1. Is the setDataSource call above correct? If so, how do I set things like sample rate, etc? If not, any help would be great!
View 2 Replies
View Related
Nov 27, 2009
I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5).
If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming?................
View 5 Replies
View Related
Aug 21, 2010
I'm trying to create a way to adjust volume settings for each of the different streams (media, notification, ringtone, etc) and have a way to preview the output sound level of each stream. I believe I have the correct implementation, but when I set the output stream type, there is no sound that plays.
Here is the code that correctly plays the user's selected alarm sound:
CODE:.................
That commented out line is what is causing me problems. I would like to hear the alarm sound at the volume levels of the different audio streams, but when I include that line for STREAM_ALARM or any other audio stream, no sound at all plays.
View 1 Replies
View Related
Jan 29, 2009
I've been using androids MediaPlayer to stream from an http url and have a question about seeking. Currently, our urls expire after they have been used once or a certain time out has expired to dissuade scraping content. Now, this obviously makes progressive streaming past the buffer impossible with the exact same url as you need to open a new http connection with the same mangled key, which we intentionally don't allow.
However, MediaPlayer seems to do this when seeking before the current position (i.e. seeking from 1:00 in the audio to 0:30). As the file has already been downloaded up to the current position I'm confused as to why MediaPlayer is still trying to initate a new http connection in this case? The only thing I can think of is that MediaPlayer is getting rid of audio its already played up to the current position, and hence needs to restart the connection if you try to seek back on the stream. Is this correct, or is there something else going on?
View 2 Replies
View Related
Jun 29, 2010
is there a PC Server Client and Android app combo I could use?I have 90gigs of music on my home pc, and I'd love an app that could stream that music via my home wi-fi. Not going through any intermediary web services.Basically, Point to local music folders in the PC client, activate the server, browse media on my phone Just like TVersity, but for android devices.I know there is an app in dev called "FIVE" but that's not out yet,
View 4 Replies
View Related
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
Aug 13, 2009
I'm running into a strange problem while reading from an Input Stream on the Android platform. I'm not sure if this is an Android specific issue, or something I'm doing wrong in general. The only thing that is Android specific is this call:
Input Stream is = getResources().openRawResource(R.raw.myfile);
This returns an Input Stream for a file from the Android assets. Anyways, here's where I run into the issue:
bytes[] buffer = new bytes[2];
is.read(buffer);
When the read() executes it throws an IOException. The weird thing is that if I do two sequential single byte reads (or any number of single byte reads), there is no exception. Ie, this works:
byte buffer;
buffer = (byte)buffer.read();
buffer = (byte)buffer.read();
Any idea why two sequential single byte reads work but one call to read both at once throws an exception? The Input Stream seems fine... is.available() returns over a million bytes (as it should).
Stack trace shows these lines just before the Input Stream.read():
java.io.IOException
at android.content.res.AssetManager.readAsset(Native Method)
at android.content.res.AssetManager.access$800(AssetManager.java:36)
at android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:542)
Changing the buffer size to a single byte still throws the error. It looks like the exception is only raised when reading into a byte array.
If I truncate the file to 100,000 bytes (file is: 1,917,408 bytes originally) it works fine. Is there a problem with files over a certain size?
View 3 Replies
View Related
Aug 16, 2010
There does not seem to be any Android manifest permission that needs to be set for file io. Code...
View 2 Replies
View Related
Jun 15, 2010
I find plenty of examples of downstreaming a video from a server to an android, but I actually want to stream live images from my droid to a server.
View 1 Replies
View Related
Sep 15, 2010
How does Helix Server work with android application? In android developers site i found that we can assign the url to MediaPlayer to stream the audio/video. But there is no specification about buffer size.. do i need to do any more coding on server side or in android application to get the streaming work for a specific buffer rate?
View 1 Replies
View Related
Aug 12, 2010
I am trying to get a input stream from something like this.
CODE:.........
And then call parse on the parser instance i Created. SOm how i get nothing . Works fine if I use a server XML....
View 1 Replies
View Related
Apr 1, 2010
I am definitely getting this phone and i was just curious if flash player 10.1 will be ready by the time it comes out and if so whether the phone will support it out of the box. I specifically want to use it with my mycast orb server to stream using flash player. I'm wondering if the quality would be better with flash or rtsp streaming.
View 17 Replies
View Related
Nov 18, 2009
Let's say that I have Microsoft Media Server stream (i.e. mms://[some ip address here]). This stream contains both audio and video. Is it possible to stream this to an Android phone? How would I go about doing this? Preferably with video, but if it is an audio stream only that would also be okay.
View 2 Replies
View Related
Oct 12, 2010
There is an online stream that is 512Kb MPEG4 and total size of 312mb online and if I'm correct after looking over docs in order to play the movie I just simply put:
CODE:..................
It is triggered to play after a button press which after a few seconds after pressing the button it plays the audio BUT doesn't show the video, why not? Do I have to use a surface view or something for visual playback of the stream.
View 2 Replies
View Related
Feb 11, 2009
I am getting the below two errors, can someone help me, why these errors i am getting.
02-11 10:56:12.120: ERROR/dalvikvm(334): pthread_setspecific failed, err=22 02-11 10:56:13.210: ERROR/jdwp(345): Failed sending reply to debugger: Broken pipe
View 2 Replies
View Related
Jan 5, 2014
I have terrabytes of movies on my always on server that I would like to have access to over the internet. I have TV shows, home movies, and ripped movies that I want to be able to view when not at home. Free would be nice, but easy would be best. I don't want to have to setup dynamicDNS or anything complex if possible. I am shocked that this is not something easily possible today. Or maybe it is but I am not searching for it the right way.
View 12 Replies
View Related
Nov 15, 2010
Any suggestion for live stream for android. In my app i need to stream live video from Live Stream..Is there any api or example to do it? If so, please provide it.
I need as like this...
http://www.livestream.com/aplive?utm_source=website-home&utm_medium=promo-header&utm_campaign=aplive
View 1 Replies
View Related
Aug 12, 2010
Is there anyway to stream media from the media server on my PC to the EVO? Samsung Epic is getting this capability out of the box, and why the hell do they get a movie store and we Dont?
View 7 Replies
View Related
Apr 16, 2010
Is it my imagination or did the Google search results recently get useless?It used to be, I would search on my N1, say for "office depot" and it would show me web results with local results included. Then when I clicked on "Show Map" it would go to Google Maps and I would have the option of navigating to that location.Now, I click "Show Map" and it shows me a map with an arrow for the location and I can't do a damn thing.Am I the only one who's seeing this? I updated Google Maps a few weeks ago, and I'm thinking that's when it broke.As a workaround, I've discovered if I do the search from within Google Maps I can still navigate, but it's a headache.
View 3 Replies
View Related
Aug 23, 2009
I used Class MediaRecorder to play mp3 file, the source like this:
CODE:.............
It runs no problem. But I want to get the stream,and write the byte array to the stream, let mick sound the refreing voice.
by use java source I can did that. the source like this:
CODE:.............
You know,Android SDK don't include the class SourceDataLine(package javax.sound.sampled).
View 3 Replies
View Related
Aug 1, 2009
I want to record the audio as aac file. I can able to record raw amr file. In the same I would like to record the aac file. Is it possible to record the audio as aac file? if so how?
View 2 Replies
View Related
Oct 2, 2010
I want to play video file that exists in one of my servers. I am using MediaPlay and VideoView classes and it works fine but the problem is that the video start to play only when it finished downloading the whole file. How can i stream it, meaning play the video while it continues to download?
View 4 Replies
View Related
Oct 31, 2010
pretty self explanatory. Any apps that will stream video directly from a NAS? It's a synology, and I'm aware of DS photo and DS audio. I use them both, but I'm not using the software to convert all my videos just so i can play them on my Eris. Obviously the NAS is standalone, so I won't have a PC on (hence no tversity, twonky, orb, playon, etc).
I wish mVideoPlayer did this, i'd be in heaven.
I guess if such an app doesn't exist... is there anything that can play video from a DLNA/uPnP device over both 3g and wifi? Either way, still looking for a solution to streaming video on android heh.
View 6 Replies
View Related
Aug 1, 2010
Has anyone tried the app VLC Stream and Convert? VLC Stream & Convert v0.4.28 Application for Android | Multimedia. It looks promising as a streaming option but I can't work out how to set it to actually stream videos to the phone. It's working as a remote (so VLC is working correctly) but there are no instruction available on how to configure streaming.
View 49 Replies
View Related
Nov 6, 2009
I just got back from the Verizon store. I was checking out the Droid... I popped open the browser and went to DI.FM.
Digitally Imported - Addictive Electronic Music
I tried all 3 public streams (MP3, Windows Media, AACPlus), and nothing. I asked the data tech guys at the counter and they said there might or will eventually probably be a app that will work with DI.FM.
So anyone checked into this? Anyone gotten DI.FM working? I'm especially interested to see if I can get the premium subscriber channels to work. The phone is pretty damn sweet and right now the only thing holding me back is the fact I can't stream my favorite internet radio station.
According to the specs of the Droid, it supports AACPlus streams. This is big! Currently it's next to impossible to stream AACplus encrypted streams on windows mobile.
View 4 Replies
View Related
Jun 19, 2010
I am trying to find a way to use a TV tuner card to get TV to my PC and then stream the TV to my Droid. I am basically trying to set up a poor man's Slingbox but I also want to avoid of taking control of a TV when I want to change channels.
View 1 Replies
View Related
Sep 26, 2010
I'm using allshare atm to show pictures, mp3's and movies on my ps 3. But, I would like to beable to stream music from pandora or...radiotime. That way I can use my reciever and suround speakers to listen to the music. I was looking for an app...I found imediashare, but it looks to share files just like allshare. I'd rather not go out and buy bluetooth speakers in multiple rooms in the house..does anyone know of an app that will do this ?
View 1 Replies
View Related
Aug 31, 2009
I want to stream a video to Android, preferably over RTP. Session setup would be done with SIP. Any ideas where to start? I looked at sipdroid, but there is only audio.
View 2 Replies
View Related