is there any library out there that can be used fo...
# compose
h
is there any library out there that can be used for video playback and viewing/zooming images?
a
You could just use
<https://developer.android.com/guide/topics/media/exoplayer>
and wrap it in an
AndroidView
c
for zooming images I think @Albert Chang had something on his github?
h
@Alex @Colton Idle thanks for samples. I wish there was a unified library which can do both and without using ExoPlayer
c
What format of video are you playing? Is it packaged content like DASH/HLS or local videos from the user’s device?
h
@Chris Fillmore it’s just a link with an mp4 which comes from api
c
If you’re just playing an mp4, you might be able to get by with just MediaPlayer https://developer.android.com/guide/topics/media/mediaplayer
I haven’t used this personally. It may or may not do what you want
Note that if you want to stream videos to the user’s device, then your video content needs to be packaged for such (DASH/HLS typically). That is a much larger problem that is beyond the scope of this support channel
h
@Chris Fillmore thank you very much for information