This has been driving me crazy as well.  I did find the following
reference in the docs for the MediaPlayer, which mentions the symptom
above...:

public void setDisplay (SurfaceHolder sh)

Sets the SurfaceHolder to use for displaying the video portion of the
media. This call is optional. Not calling it when playing back a video
will result in only the audio track being played.
Parameters
sh      the SurfaceHolder to use for video display

I haven't been able to get it to work yet, either.  I can't believe
that a video can't be played from a raw resource, but have failed to
find any examples of anyone doing so.




On Jul 8, 12:46 am, Shao-chuan <[email protected]> wrote:
> I have the exact problem with you.
> Any one can help?
>
> On Jun 16, 11:22 pm, JP <[email protected]> wrote:
>
>
>
> > I'm writing a program which requires that a video be packaged with
> > it.  The only way I know of doing this is by adding the video tores/
> > raw/, which coincidentally renders the video useless.  I've looked all
> > over the web and the consensus seems to be you can only play streaming
> > video, or video from a file.  In the emulator if I attempt to play the
> > video through the method used here 
> > (http://developer.android.com/guide/topics/media/index.html
> > ), all I get is audio and a black screen.
>
> > I've attempted to useVideoViewas well, and the same thing occurs,
> > audio but with a black screen.  There must be a way to package video
> > with your application without needing an SD card, or having to stream
> > the file and have the video actually play.  In the words of Google, I
> > would like to create a "seamless" experience.  :)
>
> > Any help is greatly appreciated!

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