+ Start a Discussion

How to play this video from salesforce

we are strugglisng for almost 2 days to accomplish the below request.


we have a video to post on our portal , so end user can see it on click.

we have been provided with a html code, which plays perfect, we are not sure how to embed this in visualforce or for that matter any where in salesforce, from where we can get an url and can be posted as a link.


Please help...


can i play some thing like below from salesforce


<video width="320" height="240" controls="controls" autoplay="autoplay">
  <source src="movie.ogg" type="video/ogg">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.webm" type="video/webm">
<object data="movie.mp4" width="320" height="240">
  <embed width="320" height="240" src="movie.swf">




I just tried your code (removed html & body tags, closed couple of open tags and added a link to a video) on a visualforce page between the page tags and it worked with no problems.


it's working in IE and firefox but not in chrome.

Amit Kumar Singh 19Amit Kumar Singh 19
Hi Tej and Viya,

Is there any solution to play internal video (static resource/ file) in salesforce.
If yes, how it can be achieved?

Bv1 TriggersBv1 Triggers
HI Tej ,

Use following code..

<apex:pageBlock >
      <video width="400" controls = "TRUE">
      <source src="{!URLFOR($Resource.Videos)}" type="video/mp4"/>
      <source src="https://c.ap1.content.force.com/servlet/servlet.FileDownload?file=00P90000014reKx" type="video/mp4"/>
      <source src="mov_bbb.ogg" type="video/ogg"/>
      Your browser does not support HTML5 video.
Jass Singh 1Jass Singh 1
mega novimega novi

ssstiktok (https://ssstik.id)is a tiktok video downloader online without watermark. TikTok is a video sharing social media platform and content creation app. The best way to download and save videos from TikTok app is by using ssstik.id, a fast and reliable tiktok video downloader online. You can use this tool to extract mp3 soundtracks from the downloaded videos as well.

Mark StvenMark Stven
Is it extract data from tiktok? Like i made website i scrap data from House music (https://www.tiktok.com/@aaronhyatt111) and display on my website.