Title: I can&#8217;t embed a video using javascript code
Last modified: February 2, 2017

---

# I can’t embed a video using javascript code

 *  [connz24](https://wordpress.org/support/users/connz24/)
 * (@connz24)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/i-cant-embed-a-video-using-javascript-code/)
 * _[ Moderator note: [moved to Fixing WordPress](https://wordpress.org/support/topic/before-posting-in-everything-wordpress/?view=all).]_
 * 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](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](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 topic ‘I can’t embed a video using javascript code’ is closed to new replies.

## Tags

 * [javascript code](https://wordpress.org/support/topic-tag/javascript-code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [connz24](https://wordpress.org/support/users/connz24/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/i-cant-embed-a-video-using-javascript-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
