GiraffePlayer icon indicating copy to clipboard operation
GiraffePlayer copied to clipboard

Image thumbnail in Player

Open TuxRneR opened this issue 9 years ago • 7 comments

How I put a image in to player?

TuxRneR avatar Aug 21 '16 02:08 TuxRneR

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>

tcking avatar Aug 22 '16 09:08 tcking

Hello, thanks and the code. In wath line I define the url of image?

TuxRneR avatar Aug 22 '16 15:08 TuxRneR

if u want to using a image from network ,try fresco instead of ImageView

tcking avatar Aug 23 '16 07:08 tcking

Thanks, and. I need replace this code of my activity_main.xml layout?

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

TuxRneR avatar Aug 23 '16 13:08 TuxRneR

player can't display a image yet,however u can put a image on front and set onClickListner to interrupt event

tcking avatar Aug 24 '16 02:08 tcking

Yeah! That's cool :3 Any way to now put "srt" captions in videos?

TuxRneR avatar Aug 24 '16 05:08 TuxRneR

not support 😢

tcking avatar Aug 24 '16 05:08 tcking