android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
>android: id = "@ + id/videoView1"
android: layout_width = "match_parent"
android: layout_height = "match_parent" />android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: orientation = "horizontal">
android: id = "@ + id / LoadButton"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: text = "load" />
android: id = "@ + id / buttonback"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: text = "back" />
final Button LoadButton = (Button) this.findViewById (R.id.LoadButton);
LoadButton.setOnClickListener (new Button.OnClickListener ()
{
@ Override
public void onClick (View arg0)
{
videoView.setMediaController (new MediaController (Playview.this));
videoView.setVideoPath ("/ sdcard/agddd.mp4");
videoView.requestFocus ();
videoView.start ();
}
});
Click the load button to start playing, but videoview black. Clicking on the screen. Video appears and has put a part of.
Is not button at the top. Adverse consequences videoview the underlying cause. Headaches a day.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Na not solve your landlord, the same problem
Reply:
The landlord how to solve? Share under chant ...
No comments:
Post a Comment