hey i m new to android and when i m trying to play a video file using the below code i m having the proble m tht its not forwading (buffering is not being done)the video.and it is displying the first scene only.
HERE IS THE CODE: package com.examples; import java.io.InputStream; import android.app.Activity; import android.graphics.PixelFormat; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.widget.MediaController; import android.widget.VideoView; public class MediaVedio extends Activity { /** Called when the activity is first created. */ private MediaController mc; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); VideoView video = (VideoView) findViewById(R.id.videoView1); Uri uri = Uri.parse("android.resource://" +getPackageName()+ "/"+R.raw.ansh1); mc = new MediaController(MediaVedio.this); video.setMediaController(mc); video.setVideoURI(uri); video.requestFocus(); video.isPlaying(); video.start(); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en