hi......
i have the proble with the video view i will post my code
down .......its not working...
[syntax="java"]
Java:
import android.net.Uri;
import android.os.Bundle;
import android.widget.VideoView;
public class musicplayer extends Activity {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
VideoView vv=(VideoView)findViewById(R.id.vdoplayer);
// MediaPlayer mp=new MediaPlayer();
// Uri myUrl = Uri.parse("http://207.210.108.32/Music/Crazy.
3gp");
// vv.setVideoURI(myUrl);
vv.setVideoPath("http://207.210.108.32/Music/Alarm.wmv");
vv.start();
}
}
this is the java file andd xml given below
XML:
]syntax="xml"]<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button android:id="@+id/cmd_play"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Play the music !!!"
/>
<VideoView
android:id="@+id/vdoplayer"
android:layout_width="fill_parent"
android:layout_height="300px"
/>
</LinearLayout>
but is not working.....i was trying with the my own server....it is
getting in browser....but not working with the video view.......can
any body help me.......
or can any body tell me how to access and play video on the
emulator .....
please...
with thanks bins........
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---