# Playing a video from a specific start time?

**URL:** <https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894>\
**Category:** Beginners\
**Created:** [August 23, 2018, 7:53pm UTC](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894 "2018-08-23T19:53:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Laurent](https://discourse.processing.org/u/Laurent)\
**Post date:** [August 23, 2018, 7:53pm UTC](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894/1 "2018-08-23T19:53:00Z")

</div>

Hi everyone. I try to play a video but starting it not at the beginning but after a specific time. The video plays well, but always starts at the beginning. What am I doing wrong? Thanks a lot for your ideas and suggestions!

Note: the video was downloaded from Youtube but the video flow is well indexed: you can play it into Windows Media Player and jump to a specific time in the player. So the problem is apparently not a corrupted or not indexed video file.

```auto
var vid;

function preload(){
 
 vid = createVideo('videos/LivingInABox.mp4');
  
}

function setup() {
  
  createCanvas(windowWidth, windowHeight, WEBGL);
  background(0);

  vid.size(854, 470);  
  vid.position(0, 0);
  vid.time(20);
  vid.play();
  vid.noLoop();
  

}

```

---

<div class="post-metadata">

**Author:** ![Laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Laurent](https://discourse.processing.org/u/Laurent)\
**Post date:** [August 23, 2018, 10:19pm UTC](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894/2 "2018-08-23T22:19:44Z")

</div>

A new element: this problem occurs only when launching the sketch from Processing IDE (run button) and the page is called by the browser to the localhost web server ([http://127.0.0.1](http://127.0.0.1):xxxx/). When I put the sketch on a ‘true’ external web server, the .time(20) works fine in the browser.
