Problems streaming ogg files

by David Given » Mon, 03 Nov 2008 05:17:13 GMT


Sponsored Links
 I'm trying to stream an ogg file over the network, but without success.
MediaPlayer.setDataSource() throws an IOException:

java.io.IOException: setDataSource failed.: status=0x80000000

I know the destination file exists, and the same code works fine with
mp3s, so this seems to be something specific to oggs.

Looking at the source code, that status number seems to correspond to
MediaPlayer's UNKNOWN_ERROR, which appears to be a catch-all for
'something broke', but I've been unable to track things down further
than that.

Does anyone know how I can make this work?

-- 
€€  €€€€€  http://www.cowlark.com  €€€€€
,S3=T)=T+/(Vquot;),(Vquot;M),(V,)quot;(V,V)quot;)'
--- Conway's Game Of Life, in one line of APL



Problems streaming ogg files

by Guillaume Perrot » Mon, 03 Nov 2008 20:13:01 GMT


 Ogg files are not supported by android.
Android only supports mp3 and m4a files (amr audio codec).
I may be wrong but to check you can play your ogg locally with the
standard music application.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Problems streaming ogg files

by David Given » Mon, 03 Nov 2008 20:50:18 GMT


 


Unfortunately I don't have access to my Android dev machine right now,
but I'll try that later... are you sure Android doesn't support ogg? Ogg
support was announced with some fanfare with the m5 SDK. Has it been
removed again?

-- 
David Given
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~



Problems streaming ogg files

by Shawn Burkit » Mon, 03 Nov 2008 21:46:28 GMT


 If ogg files are not supported why are half the embeded sounds ogg files?  
Or does it only have support for those specifically






only supports mp3 and m...
Unfortunately I don't have access to my Android dev machine right now,
but I'll try that later... are you sure Android doesn't support ogg? Ogg
support was announced with some fanfare with the m5 SDK. Has it been
removed again?

--
David Given
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~ You received this 
message because you are sub...


--~--~---------~--~----~------------~-------~--~----~



Problems streaming ogg files

by Jean-Baptiste Queru » Mon, 03 Nov 2008 22:29:47 GMT


 Ogg files are supported but not streamable in the current version of Android.

The manifest here shows what's streamable: looks for "http" as the
scheme in the various intent filters:
 http://git.source.android.com/?p=platform/packages/apps/Music.git ;a=blob;f=AndroidManifest.xml;h=518e19db63ef624b806a5e73114908b75205e764;hb=HEAD

JBQ






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. problem with Linkify.addLinks(

I want to add a link in my ListView,
I am using this code:

 TextView tv = (TextView)findViewById( R.id.link2_view );
 tv.setText("www.google.es");
 Linkify.addLinks( tv, Linkify.WEB_URLS );

but don't work


The Android emulator said: The application has stopped
unexpectecly .please try again.

I'm using, android 2.2 in eclipse with windows xp

thanks

-- 

2. ASyNC Socket Read InputStream-Help me

Hi,

I am writing an application that need to interact with remote server.
The situation will be like,

I will send a SOAP request to server ,It sends an message from Server
through Socket Port which need to show as alert message,User have to
select the option(OK/cancel),i have to send the user selection through
to socket output stream. After that it sends actual response to the
request what i sent at the beginning.

I written the implementation as following :
I written the code for sending the request and getting the response in
ASYNC TASK while showing progress dialog in USER screen.
I written a SOCKET listener implementation to read the socket input
stream and write output stream.

I am running service to listen the SOCKET LISTENER class,and am
running a timer with delay of 1000ms to check the socket stream
message.

If i got any message from socket ,it will start an intent to show the
message.

The code is working fine but it is not working on all the occassions.
Some times it is unable to read the stream.

The code here is as follows:
AsynC Socket LISTENER class:

ServerSocket listen = new ServerSocket(port, 1000);

socket = listen.accept();
                                        requestCount++;

                                        InputStream iStream = 
socket.getInputStream();
                                        int bytesread = 0;

                                                do {
                                                        int availbleBytes = 
iStream.available();
                                                        byte[] byte3 = new 
byte[availbleBytes];
                                                        try {
                                                String socketString = new 
String(byte3,0,byte3.length,"utf-8");
//Log Socket Message
                                                        }
}while(availableBytes>0);



Please let me know if any clarifications needed,.
Please help me if you know about socket programming.

-- 

3. Harga Nexus S turun?

4. Open multiple cameras simultaneously

5. Can I do android unit testing (of whole android project,not just a single app) after daily build?

6. MapActivity And Leak : a google team overview ?

7. como ler emails salvos no computador do outlook no android