# Use createVideo with vimeo or youtube assets

**URL:** <https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386>\
**Category:** Libraries\
**Created:** [January 10, 2019, 12:32pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386 "2019-01-10T12:32:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgraux](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fgraux](https://discourse.processing.org/u/fgraux)\
**Post date:** [January 10, 2019, 12:32pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/1 "2019-01-10T12:32:54Z")

</div>

Hi there  
I’m trying to use p5.js and seriously.js to display a vimeo video chromakeyed in a canvas.  
video = createVideo(’[//player.vimeo.com/video/](https://player.vimeo.com/video/)…’);

But the wevbsite returns an error :  
"Access to video at ‘…’ (redirected from ‘…’) from origin ‘null’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
Cross-Origin Read Blocking (CORB) blocked cross-origin response…with MIME type text/html. See [https://www.chromestatus.com/feature/5629709824032768](https://www.chromestatus.com/feature/5629709824032768) for more details.  
Have anybody an idea to solve this ?  
Thanks

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 12:44pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/2 "2019-01-10T12:44:58Z")

</div>

i think you are using chrome browser,  
did you test other? like firefox?

---

<div class="post-metadata">

**Author:** ![fgraux](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fgraux](https://discourse.processing.org/u/fgraux)\
**Post date:** [January 10, 2019, 1:17pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/3 "2019-01-10T13:17:22Z")

</div>

same deal using firefox or ie

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 10, 2019, 1:24pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/4 "2019-01-10T13:24:30Z")

</div>

but can you play you own video?  
( from file )

---

<div class="post-metadata">

**Author:** ![fgraux](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fgraux](https://discourse.processing.org/u/fgraux)\
**Post date:** [January 10, 2019, 3:13pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/5 "2019-01-10T15:13:52Z")

</div>

with a local video file, it does work.

---

<div class="post-metadata">

**Author:** ![fgraux](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@fgraux](https://discourse.processing.org/u/fgraux)\
**Post date:** [January 10, 2019, 3:52pm UTC](https://discourse.processing.org/t/use-createvideo-with-vimeo-or-youtube-assets/7386/6 "2019-01-10T15:52:05Z")

</div>

but my webserver is not able to stream videos for a huge audience
