I can't embed a video using javascript code

  • Unknown's avatar

    Hello,

    I have a question. I am trying to embed a video on a page.

    However, the code I tried to embed both in javascript and html are not working.

    I am sending you a video to see what’s happening.

    May I know the reason for this? Is it because I have editor role?

    What user access to I need? Admin?

    Please let me know.

    here’s the video:
    video 1:
    https://www.dropbox.com/s/o78x4595mvp3xqg/case%20study%20007%20%28script%29.mp4?dl=0

    video 2:
    https://www.dropbox.com/s/qhqtqpnvoys5nfy/case%20study%20007%20%28iframe%29.mp4?dl=0

    here’s the code I use:
    code 1:
    <script src=’//fast.wistia.com/embed/medias/6wdvr94tha.jsonp’ async></script><script src=’//fast.wistia.com/assets/external/E-v1.js’ async></script><div class=’wistia_embed wistia_async_6wdvr94tha’ style=’height:360px;width:640px’> </div>

    code 2:
    <div class=’wistia_responsive_padding’ style=’padding: 56.25% 0 0 0; position: relative;’>
    <div class=’wistia_responsive_wrapper’ style=’height: 100%; left: 0; position: absolute; top: 0; width: 100%;’>

    <iframe class=’wistia_embed’ src=’//fast.wistia.net/embed/iframe/t6x62x907r?seo=false&videoFoam=true’ name=’wistia_embed’ width=’100%’ height=’100%’ frameborder=’0′ scrolling=’no’ allowfullscreen=’allowfullscreen’></iframe>

    </div>
    </div>
    <script src=’//fast.wistia.net/assets/external/E-v1.js’ async></script>

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello,

    Your site is not hosted here at WordPress.com. You are running a self-hosted WordPress site, and so we can’t help you much on this forum…WordPress.org is where you need to be.

    Also, you can’t run javascript on any sites hosted here at WordPress.com.

    Check out some of this information:
    Learn more about the differences between WordPress.com and WordPress.org:https://en.support.wordpress.com/com-vs-org/

    Go to the forums at WordPress.org where you will get the help you need:https://wordpress.org/support/

    *ManFromMars*

  • The topic ‘I can't embed a video using javascript code’ is closed to new replies.