# How to use url video at p5js?

**URL:** <https://discourse.processing.org/t/how-to-use-url-video-at-p5js/23368>\
**Category:** p5.js\
**Created:** [August 19, 2020, 8:52pm UTC](https://discourse.processing.org/t/how-to-use-url-video-at-p5js/23368 "2020-08-19T20:52:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgh1201](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jgh1201](https://discourse.processing.org/u/jgh1201)\
**Post date:** [August 19, 2020, 8:52pm UTC](https://discourse.processing.org/t/how-to-use-url-video-at-p5js/23368/1 "2020-08-19T20:52:26Z")

</div>

example

function setup() {  
createCanvas(640, 120);  
video = createCapture(‘[http://11.111.111.11/play.html](http://11.111.111.11/play.html)’)  
}

function draw() {  
background(220);  
}

is this impossible?

Is there any way to use URL video?

---

<div class="post-metadata">

**Author:** ![Hapiel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hapiel/32/10226_2.png) [@Hapiel](https://discourse.processing.org/u/Hapiel)\
**Post date:** [August 20, 2020, 10:03am UTC](https://discourse.processing.org/t/how-to-use-url-video-at-p5js/23368/2 "2020-08-20T10:03:20Z")

</div>

Yes it is possible.

`createCapture()` is for webcams, if you want a video you need to use `createVideo()`

I made you [an example.](https://editor.p5js.org/hapiel/sketches/s4PmHYnFr)
