Title: Inserting a LOCAL Video
Last modified: August 31, 2016

---

# Inserting a LOCAL Video

 *  Resolved [WPOso](https://wordpress.org/support/users/wordpress-oso/)
 * (@wordpress-oso)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/inserting-a-local-video/)
 * NOTE: It looks like I may have posted this in haste; it’s apparently a browser
   problem. The video works fine when I view my page in Chrome, but it doesn’t work
   with the browser Vivaldi.
 * * * * * *
 * I would like to insert a video that’s located @ /images/video.mp4. The following
   HTML5 code doesn’t work:
 * `<video id="sampleMovie" src="/images/video.mp4" controls></video>`
 * I tried another scheme without success as well. I’ve found a lot of references
   that offer advice on inserting videos from other sites (YouTube, etc.). But I’m
   confused about how you allow visitors to access a video that’s stored on your
   site.
 * What’s the best way to accomplish this?
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/inserting-a-local-video/#post-7450417)
 * Use the full URL of the file for src.
 * So, assuming the site is `example.com` and `/images/` is under the web root, 
   that will be:
 * `src="http://example.com/images/video.mp4"`
 * The problem is, you have provided a relative URL, which means it’s relative to
   the URL loaded in the browser.
 * So, with a relative URL, if I’m viewing the post at `example.com` the browser
   will think the video is at `example.com/images/video.mp4`
 * But, if I’m viewing the post at `example.com/page/2/` the browser will think 
   the video is at `example.com/page/2/images/video.mp4`
 * Or, if I’m viewing the post at `example.com/2016/06/05/this-post/` the browser
   will think the video is at `example.com/2016/06/05/this-post/images/video.mp4`
 * To avoid this, always use an absolute URL, the full URL to exactly where the 
   file is. Or, better yet, just upload and insert the video via the Add Media button
   when writing/editing the post/page in question.
 *  Thread Starter [WPOso](https://wordpress.org/support/users/wordpress-oso/)
 * (@wordpress-oso)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/inserting-a-local-video/#post-7450501)
 * Thanks.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/inserting-a-local-video/#post-7450511)
 * You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Inserting a LOCAL Video’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/inserting-a-local-video/#post-7450511)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
