0
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.

2
  • Seems related to trailblazer.salesforce.com/ideaview?id=08730000000BpVPAA0. Does the solution in this link work in your scenario?Thanks
    – Swetha
    Dec 15 '20 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. Dec 15 '20 at 11:41
0

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

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000Ed00FUAR

1
  • Thank you for the reply, but I need to open mp4 on page directly. Dec 15 '20 at 13:23
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.