We have a requirement to play MP4 content version file in the community using public URL. I tried with the iFrame tag but it is showing no preview available.

enter image description here

Can anyone please help.

  • Seems related to trailblazer.salesforce.com/ideaview?id=08730000000BpVPAA0. Does the solution in this link work in your scenario?Thanks Commented Dec 15, 2020 at 11:36
  • Thanks for the reply, but I need a separate page on the community for particular file (Content version) URLs. I already looked into this solution but it will not resolve my problem. Commented Dec 15, 2020 at 11:41

2 Answers 2


I have dealt with this issue. The SF download link is not a sufficient URL to play media (video or file). I recommend either coding a custom lightning component to play the video or go to the app Exchange. Please see links for details.

How to play video from Salesforce file in lightning component


  • Thank you for the reply, but I need to open mp4 on page directly. Commented Dec 15, 2020 at 13:23

After investigation, I found one solution and it works for me.

Go to Setup -> Search for ‘File Upload and Download Security’.
Click on Edit and scroll for the file type ‘.mp4’ and set the ‘Download behavior’ as ‘Execute in Browser’. And that’s it! You’re all done.
  • This did not work for me. Commented Feb 3, 2022 at 2:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .