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?

-Prabakar.

--- On Sat, 10/17/09, Mark Murphy <mmur...@commonsware.com> wrote:

From: Mark Murphy <mmur...@commonsware.com>
Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer 
is triggered code error:
To: android-beginners@googlegroups.com
Date: Saturday, October 17, 2009, 2:48 AM


Prabakar wrote:
> 1. If i want to play my video always in Landscape mode, how to achieve this?

Heave an android:screenOrientation="landscape" attribute into your
<activity> element in your manifest file.

> 2. If i want to play a video file continuously(play video in looping)
> even after stopped one cycle, how to achieve it?

Reset and start up the MediaPlayer again.

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

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