Hello
I am trying to run the video but it gives me white screen. Can anyone
please help me asap. Its urgent and critical
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.web_main);
String path = "";
try {
videoView = (VideoView) findViewById(R.id.videoView);
path =
"http://64.250.238.26:1111/clips/GeorgeKahumokuHaleOlu.mp4";
if (path == "") {
// Tell the user to provide a media file
URL/path.
Toast.makeText(
VideoViewSample.this,
"Please edit VideoViewDemo
Activity, and set path"
+ " variable to
your media file URL/path",
Toast.LENGTH_LONG).show();
} else {
videoView.setVideoURI(Uri.parse(path));
videoView.setMediaController(new
MediaController(this));
videoView.requestFocus();
}
} catch (Exception e) {
// TODO Auto-generated catch block
Log.e("Exception durin Videoview video View ",
e.toString());
e.printStackTrace();
}
}
--
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