Do i need to make a custom Media Controller??
Is there any Framelayout related in this stuff anywhere in layout file?

On Thu, Feb 3, 2011 at 2:26 AM, Abhishek Talwar <
r.o.b.i.n.abhis...@gmail.com> wrote:

> Guys i am playing an video with a video view .
> So far it is cool and video plays nice but the media Controller which
> comes at the bottom of the screen appears
> only on touch and i want that it should be there permanently.
> I googled and i thot the following code should be fine :-
>
>  Uri path = Uri.parse("android.resource://com.vid1/" + R.raw.p1);
>        vv=(VideoView)findViewById(R.id.vv);
>        getWindow().setFormat(PixelFormat.TRANSLUCENT);
>        MediaController mc = new MediaController(this);
>        mc.setAnchorView(vv);
>        mc.show(0);
>        mc.requestFocus();
>
>        vv.setMediaController(mc);
>
>        vv.setVideoURI(path);
>
>
> and this gives me a force close and a Null Pointer in log cat.
> i am sorry this may be a duplicate post but this one has detailed code
> and more clear understanding of situation.
>
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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