Thanks Mr.Mark. I have two questions here. 1. Do you mean with the current code MediaController on VideoView, i can't achieve removing built-in overlay controls? If i use MediaPlayer and SurfaceView, i'll be able to hide built-in overlay controls and add mine if i want? 2. I have gone through vidtry code a day ago, but got totally confused. I'm sorry, i'm new to this development. Is there any other way that i can see the code for only this particular task? 3. If i want to start the video player with my video file **Automatically, when the device starts(reboot), is it possible to do that on Android?
Please advise. --- On Sat, 10/17/09, Mark Murphy <[email protected]> wrote: From: Mark Murphy <[email protected]> Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: [email protected] Date: Saturday, October 17, 2009, 3:02 AM 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

