this is my code

        videoHolder = new VideoView(this);
//        // videoHolder = (VideoView)findViewById(R.id.videoview);
        LayoutParams params = new LayoutParams
(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
        videoHolder.setLayoutParams(params);
        videoHolder.setMediaController(new MediaController(this));
        setContentView(videoHolder);
//
//
////i tested and found that it works fine for .wmv, .3gp and .mp4
////      videoHolder.setVideoURI(Uri.parse("file:///sdcard/video.
3gp"));
        videoHolder.setVideoURI(Uri.parse("res/raw/demo.3gp"));
        videoHolder.requestFocus();
        videoHolder.start();


strange the commented url works. the one with sdcard

the other one does not work i have tries too many combinations "file://
res/raw/demo.3gp" to only "demo"

please tell me what should be the correst string !

On Oct 15, 8:17 pm, Jags <[email protected]> wrote:
> Hi I am trying to play a video in my app. It has to be embedded
>
> i went 
> throughhttp://groups.google.com/group/android-developers/browse_thread/threa...
>
> I am able to play my video using VideoView as mentioned in this
> discussion. But there are a few problems.
>
> 1. I need full screen video, how to stretch videoview to full screen ?
> will that stretch the video too ?
>
> 2. i dont need the default play forward stop buttons at all. basically
> I need continuous loop playing of the video.
>
> i tried MediaPlayer class as 
> inhttp://davanum.wordpress.com/2007/12/29/android-videomusic-player-sam...
>
> but it never worked. What is the string format should look like if i
> have my video file in res/raw directory ? I really dont want video
> file played from sdcard. how can it be bundled along with the app ?
>
> if any of these 2 approaches works, i will be better off
>
> thanks and regards
> Jagat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to