# How to import a Live stream link to processing?

**URL:** <https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217>\
**Category:** Libraries\
**Created:** [August 6, 2019, 5:59pm UTC](https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217 "2019-08-06T17:59:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luonglinhle](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@luonglinhle](https://discourse.processing.org/u/luonglinhle)\
**Post date:** [August 6, 2019, 5:59pm UTC](https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217/1 "2019-08-06T17:59:31Z")

</div>

Hi alls!

I am newbie to Processing. I have an idea to create a visual interaction with live-stream video from facebook, twitter or from other source as Vimeo, youtube.  
I think what is needed is the IP address of the person who got on stream (that is not a problem).

Then does anyone know how to create a proper code for doing so?

Thank you so much! I would very much appreciate!

luonglinhle.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 9, 2019, 11:41pm UTC](https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217/2 "2019-08-09T23:41:39Z")

</div>

> [@luonglinhle](#):
>
> live-stream video from facebook, twitter or from other source as Vimeo, youtube

Unfortunately this is a really hard problem. Facebook, Twitter, Vimeo, and YouTube all use different livestreaming systems, and all try (in various ways) to prevent you from interacting with it programmatically. Most of them also rely on a full web browser to run a stream – e.g. you can’t contact a url directly and get the stream without loading [facebook.com](http://facebook.com) in the browser and logging in. If they find out there is a way around that, they stop it – that’s how they keep people viewing their advertising.

I am not an expert, and things are changing rapidly. If you were able to run Processing p5.js code in a web browser, you might be able to interact with a live html5 video object – but I wouldn’t bet on it. This is a hard problem – I would definitely not recommend it for a new programmer. Instead, you might focus on one re-streaming technology for one platform (e.g. youtube) and have your sketch interface with just that. Still hard, but less hard.

---

<div class="post-metadata">

**Author:** ![luonglinhle](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@luonglinhle](https://discourse.processing.org/u/luonglinhle)\
**Post date:** [August 12, 2019, 10:22pm UTC](https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217/3 "2019-08-12T22:22:14Z")

</div>

Hi Jeremy,

I don’t understand why it is hard? Can I just do it on p5.js with node.js to create rtsp live streaming through a server? I have not yet tried but just read about that. It would only be problem with talking to client receiving data from server, I guess.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 12, 2019, 10:58pm UTC](https://discourse.processing.org/t/how-to-import-a-live-stream-link-to-processing/13217/4 "2019-08-12T22:58:45Z")

</div>

Well, sure, if you think it is easy, maybe it is–try it!

> [@luonglinhle](#):
>
> with live-stream video from facebook, twitter or from other source as Vimeo, youtub

Do you want your sketch to send video TO facebook, or get video FROM Facebook? Very different. TO facebook is well-understood–they have an API. But I thought you wanted to load streams _from_ facebook and process them in your sketch. Maybe I don’t understand what your sketch is supposed to do–you could explain more.

You might also consider looking at work by p5.js users who work with streaming video–for example, I believe that @lmccart does.

See also related discussions of point-to-point streams (non-platform), like

> [@Show Webcam Stream](https://discourse.processing.org/t/show-webcam-stream/1337/6):
>
> And the stream is a jpeg stream
