video = new VideoView(ctx);
        video.setBackgroundColor(Color.MAGENTA);
ImageDisplay.layout.addView(video, new LayoutParams(900, 600)); <-- this is a FrameLayout
        video.setVideoURI(Uri.parse(fName));
        video.setMediaController(new MediaController(ctx));
        video.requestFocus();
        duration = video.getDuration();

duration   returns     -1

and LogCat has the following error
E/Surface(25854): surface (identity=1038) is invalid, err=-19 (No such device)

Any ideas what this error actually is  ?   and how to fix this


Thanks in advance

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