Sorry, but using this way you will be able to play only audio stream
from mp4 file.
To have some video displayed on the screen you need to use setDisplay
method of Media Player.
I can't get it working on emulator. Have anyone any success with this
yet?
On 4 дек 2008, 07:41, brian wrote:
> Do thi
Forgot to mention that I tried it on emulator but it didn't helped but
on device it works fine.
I had to push my video file to "sdcard".
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To po
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
videoHolder = new VideoView(this);
videoHolder.setMediaController(new MediaController(this));
setContentVie
Do this:
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
mp.prepare();
mp.start();
Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send em
Dear Jatin ,
if you just want to play a video on android emulator these are the
steps
go to this location
/development/samples/ApiDemos/src/com/example/android/apis/media/
Edit MediaPlayerDemo_Video.java
path = "/sdcard/Yourfilename"; //add your file
name here
Save and quit
If you want a video player app for your G1, there are several
available for free in the Market.
If you are looking for sample code, check out the SDK sample code.
There are also several workable snippets posted in various messages on
this list.
On Dec 3, 9:19 pm, Jatin <[EMAIL PROTECTED]> wrote:
6 matches
Mail list logo