You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
phonghjx
4 months agoExplorer | Level 3
I'm getting an audio error when previewing a shared link in a browser on iOS only.
<audio controls autoplay> <source src="https://www.dropbox.com/scl/fi/xxxxxxxxxxx/xxxxxxx.mp3?rlkey=xxxxxxxx&st=xxxxxxxxx&dl=1" type="audio/mpeg"> Your browser does not support the audio element. ...
Mark
Super User II
What version on iOS are you using?
phonghjx
3 months agoExplorer | Level 3
Ios 17.6
- Jay3 months agoDropbox Staff
Hi phonghjx, thanks for bringing this to our attention.
Which browser are you using on your mobile device?
Have you tried changing the dl=1 to raw=1 in order for files to preview directly?
This will help me to assist further!
- harrydbx3 months agoDropbox Engineer
Hi phonghjx,
I'm an engineer that works on Dropbox file previews. I think there might be a few issues here. First, I recommend using raw=1 instead of dl=1, as Jay said. Second, Safari on iOS ignores the `autoplay` attribute on audio files, so you will still have to manually start the video. Third, I recommend removing the `type` attribute. Dropbox will avoid re-encoding audio files when possible, so streams may sometimes be `audio/mpeg` and other times be `audio/mp4`, depending on the type of the original file. Removing the `type` attribute lets the browser infer the content type. Following these tips, I was was able to get this <audio> element working on an iOS device:
<audio controls> <source src="https://www.dropbox.com/scl/fi/k4eodbmktzc1kwlu05pa8/file_example_MP3_700KB.mp3?rlkey=i9vsw9qxno2y4juo1574dnc0d&st=qkcn71og&raw=1"> Your browser does not support the audio element. </audio>
Thanks for posting in the forums!
Harry
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
Need more support
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 or Facebook.
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!