Videoview not showing video screen turns black

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Jan 29, 2015 5:08:23 PM via Website

Videoview is not showing video but is playing sound,It shows Black screen every time. I am running Android 4.0
This is my xml file.

android:id="@+id/myVideo"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"/>

.java file

VideoView vidView = (VideoView)findViewById(R.id.myVideo);
String vidAddress ="rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov";

Uri vidUri = Uri.parse(vidAddress);
vidView.setVideoURI(vidUri);
MediaController vidControl = new MediaController(this);
vidControl.setAnchorView(vidView);
vidView.setMediaController(vidControl);
vidView.setZOrderOnTop(false);

vidView.start();

Plz help i am stuck on it for one week.Searched alot but nothing worked.