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. PathShape not closing paths correctly

I'm having trouble getting paths to close correctly.  The problem
appears to be  consistent from API 8 (Android  2.2)  back through API
4  (Android 1.6).  Emulators exhibit  the problem, as does my 2.2
phone.

It seems that Android doesn't  "think" that a  path is closed, even
though the path starts (via path.moveTo(...)) and ends (via
path.lineTo(...))  at exactly  the same coordinates.

If I call "path.closePath()" to  ensure that the path is closed, an
errant line segment is drawn,  which indicates to me that the path is
"confused" about being open/closed, or about which point is the
beginning/ending point in the path.

A very short but complete application  is included below that
demonstrates the problem.

Any help  with what is wrong  would be appreciated.

**An image of the results is here:**  http://rebeyenterprises.com/BadPath.png

The failing code:
---------------------
**(testShape.java, in src/pkgs/testShape)**

package pkgs.testShape;
import android.app.Activity;
import android.content.Context;
import android.graphics.*;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.*;
import android.os.Bundle;
import android.view.View;
import android.widget.AbsoluteLayout;
import android.widget.TextView;

@SuppressWarnings({"deprecation"})      // AbsoluteLayout is deprecated;
this quiets warnings
public class Sandbox extends Activity
{
        // For convenience - just to use the shorter Class name
        private class Params extends AbsoluteLayout.LayoutParams{Params (int
ia,int ib,int ic,int id)
        {super(ia,ib,ic,id);}}

        private class TestShapeView extends View
        {
                ShapeDrawable mDrawable;
                public TestShapeView (Context context, Paint.Style style, 
boolean
bClose)
                {
                        super(context);
                        Path path = new Path();
                        path.moveTo(50, 0);
                        path.lineTo(50,25);                                     
    // Rect: l,
t, r, b,
                        path.addArc(new RectF(  0,   0,  50,  50),   0,  90);   
// Angles:
Start, Sweep
                        path.lineTo(25,75);
                        path.addArc(new RectF( 25,  50,  75, 100), 180, -90);
                        path.lineTo(75,100);
                        path.addArc(new RectF( 50,  50, 100, 100),  90, -90);
                        path.lineTo(100,25);
                        path.addArc(new RectF( 50,   0, 100,  50),   0, -90);
                        path.lineTo(50,0);      // Closes the path - right back 
where we started
                        if (bClose)
                                path.close();   // Souldn't be necessary - path 
is closed anyway
                        mDrawable=new ShapeDrawable(new PathShape(path, 110, 
110));     // 110,
110  = H, W
                        
mDrawable.getPaint().setColor(Color.rgb(0xFF,0xFF,0xFF));
                        mDrawable.getPaint().setStyle(style);
                        mDrawable.setBounds(0, 0, 110, 110);    // Left, Top, 
Right, Bottom -
Location & size
                }
                protected void onDraw(Canvas canvas){mDrawable.draw(canvas);}
        }
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
                AbsoluteLayout layout = new AbsoluteLayout(this);       // 
Params are:
W,H,X,Y;
                TextView t;
                layout.addView(new TestShapeView(this, Paint.Style.FILL,   true 
),
                                           new Params (110, 110,   0,   10));
                t=new TextView(this);t.setText("Closed-FILL");
                        layout.addView(t,new Params (200, 30,   0,   120));
                layout.addView(new TestShapeView(this, Paint.Style.STROKE, true 
),
                                           new Params (110, 110, 200,   10));
                t=new TextView(this);t.setText("Closed-STROKE");
                        layout.addView(t,new Params (200, 30, 200,   120));
                layout.addView(new TestShapeView(this, Paint.Style.FILL,   
false),
                                           new Params (110, 110,   0, 170));
                t=new TextView(this);t.setText("NOT Closed-FILL");
                        layout.addView(t,new Params (200, 30,   0,   290));
                layout.addView(new TestShapeView(this, Paint.Style.STROKE, 
false),
                                           new Params (110, 110, 200, 170));
                t=new TextView(this);t.setText("NOT Closed-STROKE");
                        layout.addView(t,new Params (200, 30, 200,   290));
                setContentView(layout);
  }
}

-- 

2. Popupwindow can't disappear.

Hi,everyone;
    I have writen a input method for qwery keyboard on android
platform.When user press a key ,I show a  candidate   word use a
popupwindow. In this time a new incoming call is arrive,the
popupwindow can not disappear ,it show on the incoming call
activity.Is anybody see a problem like this and how to fix it ,thanks!

-- 

3. tcp/ip filter

4. Menu Problems

5. How to set MediaRecorder resolution? setVideoSize() does not work!

6. App design question for multiple "data" connections

7. writing to sdcard (change sdcard permissions ddms)