Again I'm stuck with the err -19 message

Here I'm trying the media player
My layout has
<FrameLayout android:layout_width="1020px" android:layout_height="699px" android:background="#000000" android:id="@+id/image" > <SurfaceView android:layout_width="fill_parent" android:layout_height="600px" android:background="#FF000000" android:id="@+id/video" />
</FrameLayout>

then I have code wise

            video_view     = (SurfaceView) view.findViewById(R.id.video);
            video_holder   = video_view.getHolder();

ImageDisplay.video_holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
            ImageDisplay.video_holder.addCallback(this);
            try {
                mp = new MediaPlayer();
                mp.setDataSource(name);
                mp.setDisplay(eedsImageDisplay.video_holder);
                mp.prepare();
                mp.setOnBufferingUpdateListener(this);
                mp.setOnCompletionListener(this);
                mp.setOnPreparedListener(this);
                mp.setOnVideoSizeChangedListener(this);
                mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
            } catch (IllegalArgumentException e) { e.printStackTrace();
            } catch (IllegalStateException e)    { e.printStackTrace();
            } catch (IOException e)              { e.printStackTrace();
            }

I get the Following in LogCat

11-17 09:59:12.368: W/media(5379): on Video Size Changed  1280 x 720
11-17 09:59:12.378: W/media(5379): on Prepared
*11-17 09:59:12.418: E/Surface(5379): surface (identity=868) is invalid, err=-19 (No such device)*
11-17 09:59:12.468: W/media(5379): surface Create ED
11-17 09:59:12.468: W/media(5379): surface Changed fmt = 4 1020 x 600
11-17 09:59:21.168: I/Media(5379): Video Started
11-17 09:59:21.388: W/media(5379): on Video Size Changed  1280 x 720
11-17 09:59:36.728: W/media(5379): on Completion

Any ideas on the Error ?
Thanks

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to