cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

View, download, and export

Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Embed video code. video not playing on iPhone (Safari, Chrome)

Embed video code. video not playing on iPhone (Safari, Chrome)

yarkinzhan
Explorer | Level 4

Hi, Dropboxcommunity!
I have the following problem:

 

I embed the code on the website to play the video:

<video width='100%' autoplay='true' playsinline='' loop='true' muted='true\'>
<source src='https://www.dropbox.com/s/0acg085wlvdpfti/spaten_identity.mp4?raw=1' type='video/mp4'> </video>

 

1. Everything works fine on desktop
2. On mobile devices on Android, it is also ok
3. On the iPhone, it does not play (chrome / safari)

 

Has anyone been in a similar situation?
Thanks in advance 🙏

13 Replies 13

tparaizo
New member | Level 2

 

Solution:
On the iPhone, browsers, especially Safari, use the bayte range "mechanism" to load media (videos and images, for example). The default dripobox file sharing urls do not allow this type of call. I spent a long time with the same problem, and the solution is very simple:
Change the sharing url from "www.dropbox.com" to "dl.dropboxusercontent.com".
Ex:
URL: https://www.dropbox.com/scl/fi/nai9ek3ssssbz53ctjivenolt/sdsddss_20230926_203135.mp4?rlkey=sasaa&amp...
to https://dl.dropboxusercontent.com/scl/fi/nai9ek3ssssbz53ctjivenolt/sdsddss_20230926_203135.mp4?rlkey...


Do this for videos and images, and everything should work fine in Safari, and in other browsers (Android, PC, etc.).

Walter
Dropbox Staff

Hey @yarkinzhan - sorry for the nudge here, but did @tparaizo's suggestion work out for you? 


Walter
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join

Dan T.20
Explorer | Level 4

For anyone else having this issue, I have found a solution that works for me. The problem seems to be IOS wants to play videos full screen by default. Adding the "playsinline" command forces it to stay small.

 

In my case, I wanted a video that autoplays and loops without controls, but you can adjust your commands to suit (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).

 

<video webkit-playsinline playsinline width="100%" height="auto" muted autoplay loop>
<source src="INSERT YOUR DROPBOX LINK HERE (see below)">
</video>

 

The native dropbox link should be modified in the following way:

 

1. www.dropbox.com replaced with dl.dropboxusercontent.com

2. &dl=0 replaced with &dl=1 or &raw=1 (both seem to work)

Arismendy lorenzo
New member | Level 2
Hola buenos días bueno no sé cómo agradecer primeramente a dios y. Lugo a estas aplicacion pone. Me es sacado de un fuerte apuro
Need more support?