0

Video not display on the page

    <apex:page docType="html-5.0">
      <head>
          <script src="//api.html5media.info/1.1.8/html5media.min.js"></script>
      </head>
      <body>
          <video width="100%" controls="controls" autoplay="true">
              <source src="{!URLFOR($Resource.Video,'sample.mp4')}" type="video/mp4" />   


          Your browser does not support the video tag.
    </video> 
  </body>
</apex:page>
2
  • Please provide your browser name and version. – Tushar Sharma Feb 1 '16 at 6:52
  • Google Chrome Version 48.0.2564.97 m – Vipin Indora Feb 1 '16 at 7:25
1

Try this code

<apex:page >
    <apex:iframe scrolling="true" frameborder="true" src="{!URLFor($Resource.videotest,'VideoTest.mp4'}"/>
</apex:page>

It is working fine for me

0

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.