• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Videoview not showing video screen turns black

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.

<VideoView
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.
 
Back
Top Bottom