We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
celinafregoso99
6 years agoExplorer | Level 3
why I can't stream an audio stored in dropbox using Android Exoplayer?
I can use an exoplayer like this
lateinit var player : SimpleExoPlayer!
val mediaItem = MediaItem.fromUri("https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3") player = SimpleExoP...
Здравко
6 years agoLegendary | Level 20
celinafregoso99 wrote:...
val mediaItem = MediaItem.fromUri("https://www.dropbox.com/s/lbe1kod9t6yuh5j/sample1.m4a")
how to solve this ?
You're not pointing media file but a preview page (i.e. HTML)! One alternative is download link:
val mediaItem = MediaItem.fromUri("https://www.dropbox.com/s/lbe1kod9t6yuh5j/sample1.m4a?dl=1")Or might be better raw shared link:
val mediaItem = MediaItem.fromUri("https://www.dropbox.com/s/lbe1kod9t6yuh5j/sample1.m4a?raw=1")Good luck!
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!