Prabakar wrote:
> Thanks a lot for your answers. I'll try that out.
> Regarding your last answer,
>> 3. if i want to remove built-in media player overlay controls such as
>> 'Play', 'Rewind', 'Forward' buttons from the media player which i'm
>> using to play a video file from sdcard on VideoView, how to achieve it?
> -------------------------------------------------------------------------
> Don't attach a MediaController. Or, better yet, don't use a VideoView --
> use a MediaPlayer.
> -------------------------------------------------------------------------
> 
> I tried initially MediaPlayer only by following the code below:
> 
> public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
> 
> MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.a);
> mp.start();
> .............
> }
> 
> But it did play only the sound, no video visible. Only i could able to
> hear the sound. I'm testing on Android 1.5 HTC G-1.
> 
> Any suggestions please?

Attach a SurfaceView. MediaPlayer does not have an intrinsic playback
surface. For example:

http://github.com/commonsguy/vidtry

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to