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

Android :: java io exception in streaming media player


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

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

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 :: 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()

View 1 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

Media :: Transfer Instant Video Streaming To Computer Using Java

Mar 16, 2010

I want to transfer my instant video streaming from my android phone to my computer using java. I have to watch it on my computer as instantly.

View 1 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

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 :: Sqlite Exception:java.lang.Illegal Argument Exception Column Id Does Not Exist

Jul 14, 2010

I created a sql lite database with the following columns:
static final String dbName="demoDB";
static final String tableName="Employees";
static final String colID="EmployeeID";
public void onCreate(SQLiteDatabase db) {
// TODO Auto-generated method stub
db.execSQL("CREATE TABLE "+tableName+" ("+colID+" INTEGER PRIMARY KEY AUTOINCREMENT, "+
colName+" TEXT, "+colAge+" Integer);");
I want to select all the records in the database like this and display them in a gridview:SQLiteDatabase db=this.getWritableDatabase();Cursor cur= db.rawQuery("Select "+colName+", "+colAge+" from "+tableName, new String [] {});String [] from=new String []{DatabaseHelper.colName,DatabaseHelper.colAge};
int [] to=new int [] {R.id.colName,R.id.colAge};
SimpleCursorAdapter sca=new SimpleCursorAdapter(this,R.layout.gridrow,c,from,to);
GridView grid=(GridView)findViewById(R.id.grid);
grid.setAdapter(sca);but i receive the following exception:java.lang.IllegalArgumentException: column '_id' does not exist.the db table does not have a column with name '_id'so what is wrong with this code

View 3 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

Android :: Java Socket IO Exception - Permission Denied

Nov 2, 2010

i am trying to connect to a server on my network running a tcp listener using the following java code. I am getting am IOException - Permission Denied. It is from an android 2.2 emulator.Does anyone know why?Socket socket = new Socket("1.1.1.1", 1111);PrintWriter out = new PrintWriter( socket.getOutputStream(), true);Out.println("test");socket.close();

View 2 Replies View Related

Game :: Android Java.net.Unknown Host Exception

Jul 20, 2010

I have android code that uses a background process to routinely (e.g. hourly) connect to a content source on the web to check for updated content. As new users download the app and run it for the first time, it seems (and this is just a "seems at the moment) that in this first-run situation, because the DNS for our servers are not cached already on the device, those first series of connections fail with dreaded UnknownHostException: Host is unresolved. And of course, the application tries again later and (again, "it seems like") it is all working -- perhaps because the OS has had time to actually resolve the address. So, my question(s) are: (1) Do other Android developers see this behavior with their deployed applications as well? First time, a series of "host unresolved" issues that work themselves out later. (2) Does anyone have a better strategy for "warming up the DNS" so-to-speak so that the first real connections work? or perhaps do you just re-try with some back-off looping when you encounter this exception? I was contemplating having a separate thread that tries to fetch a small text file from our server and have it just loop until it gets it and maybe (not sure about this part) block the other outgoing network connections until it succeeds.

View 1 Replies View Related

Android :: Java Model Exception When Cleaning Project

Sep 30, 2009

I keep getting this error under several projects. 10 minutes ago I exported an android .apk, then changed the AndroidManifest.xml and now can't export. I reverted back to the original AndroidManifest.xml but still it doesn't work. I guess the plugin is broken. Is there a set of Ant tasks that can be used to build Android apps?

.............

View 2 Replies View Related

Android :: Could Not Parse Java.lang.NumberFormat Exception

Jul 31, 2010

CODE:............

And i got the following Exception

CODE:......................

View 2 Replies View Related

Android :: How To Handle Throws Clause In Java Exception Handling

Sep 4, 2010

I have class A in which I have a method openfileConnec().

It was written like the below:

CODE:...............

Now I come to class B where I will call this method like the below:

CODE:.............

I was asked a question in an interview as follows:

Why does the method have a throws Exception in its declaration? Is it that on of the methods called in the implementation throws the base class exception? Also If we get a exception during calling the method (fileConnect( )) control goes to catch block. After executing catch where should the control go, what should be sent to base case?

View 2 Replies View Related

Android :: Media Player On HTC Hero Misbehaving And Intercepting Bluetooth Media Buttons

Jan 10, 2010

Even registering the broadcast receiver at the highest priority still fails to receive the Bluetooth media button events on the HTC Hero phone. The Bluetooth media button registration code works fine on the other Android phones that I have tested. Apparently this isn't the first time HTC has done something like this, as I also found a report of a similar problem on one of the HTC Microsoft Mobile Devices reported here

It seems extremely short sighted of HTC to code their media player so that it grabs the Bluetooth AVRCP media button events in such a way that other applications are unable to work with the Bluetooth head phone buttons and Bluetooth in car stereo systems.................

View 2 Replies View Related

Media :: How To Sync Android To Windows Media Player (including Playlists)

Nov 10, 2010

I use Windows Media Player to manage all my mp3s and playlists. I want my Samsung Galaxy S to be synchronized with my PC. I can connect my Galaxy S using "Media Player" mode and use the built-in sync with WMP, but there are issues:
1) Some mp3s get "corrupted" - how do I force WMP to "re-sync" them without losing my playlist association (if I manually add it as a file to sync, it is no longer associated with the playlist)

2) If I delete an mp3 from the device, WMP doesn't realize and won't re-sync the file again... is there a way to re-sync?

3) Sometimes WMP will re-sync playlists and each song shows up 3-4+ times when I load up a playlist on my device. I then have to wipe the Music and Playlist folder and re-sync from scratch any way around this?

4) Where are android playlists stored? The Playlists folder on the sd card can be wiped, but the playlists still show up in the music player?

5) If I make a change to a playlist on my PC, WMP will freeze and start skipping random files the playlists get corrupt and I see problem #3 occur. Essentially, if I change a playlist, I have to wipe the Music and Playlist folder and re-sync from scratch.

View 7 Replies View Related

Android :: Java Rare And Impossible Exception Causing Force Close

Apr 19, 2010

I have an interesting problem being reported to me from an android application I have published. I have a two-dimensional array that I am iterating through using two for loops like so:

for (int i = 0; i < arr.length; ++i)
{
for (int j = 0; j < arr[i].length; ++j)
{
if (arr[i][j] != 0)
// does stuff
}
}

The problem is, somehow arr[i][j] != 0 is throwing an ArrayIndexOutOfBoundsException. But very rarely. I have thousands of people use the app on a daily basis and get maybe twenty force close reports. Is this something I can't avoid, maybe a problem with the phones memory, etc. or is there something I can do that I haven't thought of yet?

View 1 Replies View Related

Android : Development Java Null Pointer Exception When Trying To Get String Extra()

Nov 6, 2010

In my main activity, I have the following code that calls my FileBrowser activity: What's wrong? Can I not use putExtra with startActivityForResult? Can putExtra only be used with startActivity? Code...

View 1 Replies View Related

Android :: Davlik Bug - UNEXPECTED TOP-LEVEL EXCEPTION: Java.lang.IllegalArgumentExcep­tion

May 10, 2009

I am attempting to integrate some previous libraries that we have within my new android project.

I have made several attempts including:

Importing the code as sub-projects (that are built using the android.jar)

Importing the code as jar files (from the built code)

Adding the files directly as part of my project

Reordering the dependencies

However for each one of these scenarios I keep getting the following exception thrown by the davlik compiler.

It is always picking the first class in the package (ie if I remove that class, it picks the next and so on).

It would appear to me that this is a compiler bug - somehow it's getting it's dependencies in a twist.

Anyone else experienced this? And/or have any ideas on how to get around this one?

UNEXPECTED TOP-LEVEL EXCEPTION:

CODE:................................

View 3 Replies View Related

Android :: Streaming Music Player?

Jun 23, 2010

Is there an application which alllows you to search for songs and stream them for play? Sorta like Slacker or Pandora, but they don't letter you choose your songs.

View 2 Replies View Related

Media :: How To Listen Streaming Media

Jan 25, 2010

I'm trying to figure how to listen to some streaming media on my Droid with 2.01 Firmware. I've tried the following files and default media player won't recognize them. I tried downloading a couple of apps from the app market, but they didn't seem to associate themselves with these files.

.asx
.ram
.m3u
.pls

The site that I'm finding all of these different formats is Orthodox Christian Network | The Premier Source for Orthodox Podcasts, Internet Radio, Video, Blogging, and News. Any help from the forum gods?

View 2 Replies View Related

Android :: Streaming Of Wav Files Using Native Player

Apr 5, 2010

Our application needs streaming of audio files.I have done with streaming of mp3 files by calling the native player and passing the url to it. Whereas the default player is not able to play the wav format files from remote server. The following code worked for mp3 files...............

View 2 Replies View Related

Media :: Converting Videos Recorded With MT3G For Use In Windows Media Player / Movie Maker

Apr 8, 2010

I want to be able to use/view the video's I record with my phone on my computer. (open from an email or use in window's movie maker)I have a new computer with Windows seven at work and a Vista laptop at home. I can send the video to myself and try to open in from my email or tether to the computer and transfer the file manually. Either way I can't open with windows media player. Video's taken with default "Camcorder" app on a myTough 3G running Android 1.6.I know it has something to do with the codec's the phone uses but wonder why they wouldn't use codec's that are compatible with the most commonly used pc's?Is there any way around this? Some kind of converter for the computer or for the phone?Is there another camcorder app that can record video with a different codec or is it phone hardware specific?So far have been able to use these forum's to sort out most of my Android problems but I'm stumped on this one. It doesn't seem like it should be this hard to do. Should be more user friendly.

View 5 Replies View Related

Media :: Sync Music With Itunes And Windows Media Player

Jun 7, 2010

Sync Music to Nexus One using itunes and Windows Media Player. This process automatically creates a Music folder at the root level of the SD card. Hopefully some of you find this useful, especially coming from using iTunes Read more

View 3 Replies View Related

Android :: Media Streaming Over Wifi

Oct 25, 2010

I have a Samsung galaxy s and want to Stream video files from my computer. Why wud I wanna stream to a small screen but when people on are on my computer I like to be on my phone and maybe watch an episode of something. I dnt know uf the galaxy has something native on it already. If not is there any app that can stream over wifi with a variety of formats such as avi and mkv

View 2 Replies View Related







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