Android - Play video in a recyclerview with exoplayer like instagram (FR)
David Silvera
Voici un nouveau tutoriel android pour les plus confirmés d'entre vous.
► Pour le code, voici le github : https://github.com/dsilvera/videolist
Il y a une partie théorique donc tous le monde peut regarder la vidéo pour comprendre comment vos applications font.
Nous codons ici en kotlin avec Android Studio.
Elle vous permettra d'afficher une liste de vidéo dans une recyclerview (ici on utilise la recyclerview d'androidx). On utilisera exoplayer comme player de video. Nous utilisons exoplayer comme lecteur vidéo.
Nous allons voir les techniques utilisées par Instagram, Facebook ou encore YouTube pour afficher une liste de vidéo dans une recyclerview.
► ABONNE-TOI en cliquant ICI : https://www.youtube.com/user/Playlist8055 ► Twitter : https://twitter.com/dav_silvera ► Instagram : https://www.instagram.com/dav.silvera ► TikTok : https://www.tiktok.com/@davsil5
Crédit: Titre: Zdarmania Auteur: Niwel Source: https://soundcloud.com/niwel-516897768 Licence: https://creativecommons.org/licenses/by-sa/3.0/deed.fr Téléchargement (5MB): https://auboutdufil.com/?id=565
L'idée de la vidéo est donc d'afficher exoplayer inside a recyclerview. Autrement dit, afficher une RecyclerView with exoplayer.
In this tutorial, we will develop in kotlin language in Android Studio IDE. We will design an application that we can see a video list like instagram, youtube or facebook.
I will show you how to play video in a RecyclerView. When the user scrolls to a list item, we will calculate the more visible item to play video. We will be playing the videos using ExoPlayer and displaying thumbnails using the Glide library.
You want to know how to use a recyclerview with video and photo? This tuto is for you. In my github code, you can have the code to know how to play and pause video. Our custom Recylerview will playing video itself!
This video explained to you how to use exoplayer (not youtubeplayerview for this example) inside a recyclerview. So we will use exoplayer like a video player. Also, we will use RecyclerView with androidx in this example and a linear layout manager.
So, we will see how to integrate RecyclerView with ExoPlayer — The clean way — and customization..
Moreover, you can retrieve videos from firebase storage using Exoplayer in Recyclerview. You can display video in your list.
by david silvera ... https://www.youtube.com/watch?v=-eH05WJl6Tc
61687224 Bytes