https://kotlinlang.org logo
#compose
Title
# compose
j

james

05/13/2022, 7:03 AM
I’m sure there are some people here who have implemented ExoPlayer in their Compose UIs, so a quick question: this coming weekend I’m planning to implement it in my side project and I have an idea in my mind of how I will do it.. but I am looking for any tips or anything to watch out for and avoid, from those who have already walked this path 😄
f

f.babic

05/13/2022, 7:10 AM
We have this: https://github.com/GetStream/stream-chat-android/blob/main/stream-chat-android-com[…]/android/compose/ui/attachments/preview/MediaPreviewActivity.kt It's not really using an ExoPlayer, rather the default VideoView, as we're building an SDK and we want it to be as light as possible. Not much to think about, make sure you remember the view if possible so that it's not recreated in state changes
j

james

05/13/2022, 12:14 PM
thanks a lot for that reference code, really appreciate it actually, your comment about using a standard VideoView instead of ExoPlayer is just as useful as your example code.. it has me re-thinking if I really even need ExoPlayer and everything that comes with it 🤔 thanks again!
a

allan.conda

05/13/2022, 1:14 PM
Google talked about using ExoPlayer couple days ago in Google I/O
3 Views