- Forum posts: 1
Jan 29, 2015, 5:08:23 PM via Website
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.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.