Open TuxRneR opened 7 years ago
u can put a ImageView at the top of player,like that:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
layout="@layout/giraffe_player"
android:layout_width="match_parent"
android:layout_height="210dp"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="210dp"/>
</FrameLayout>
Hello, thanks and the code. In wath line I define the url of image?
if u want to using a image from network ,try fresco instead of ImageView
Thanks, and. I need replace this code of my activity_main.xml layout? <include layout="@layout/giraffe_player" android:layout_width="match_parent" android:layout_height="210dp"/>
For ur code?
<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content">
<include
layout="@layout/giraffe_player"
android:layout_width="match_parent"
android:layout_height="210dp"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="210dp"/
</FrameLayout>
And implement the fresco library dependence?, this it's all right, but the image appear in front of the player and I can play the video with the play button inside of player. How i put the image inside the giraffe player, not in front
player can't display a image yet,however u can put a image on front and set onClickListner to interrupt event
Yeah! That's cool :3 Any way to now put "srt" captions in videos?
not support 😢
How I put a image in to player?