I used VideoView, and before video or after video, VideoView looks
black rectangle.
So, I want to set white rectangle by setting backgroundcolor white.
----Layout.xml-----
<VideoView
android:layout_height="200dip"
android:layout_width="400dip"
android:id="@+id/videoView1"
/>
--Java source----------
vv = (VideoView)this.findViewById(R.id.videoView1);
vv.setBackgroundColor(Color.RED);
vv.setOnCompletionListener(new OnCompletionListener(){
public void onCompletion(MediaPlayer mp) {
vv.setVideoPath("android.resource://com.test/" +
R.raw.movie);
vv.start();
}
});
Screen showed red rectangle, movie did not show. The sound was played.
So I changed color alpha, then the video was played behind a
transparent red.
Can I set VideoView's BackGroundColor?
I would avoid the black screen that contains a continuous video
playback...
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment