# How to cast videos

**URL:** <https://discourse.nodered.org/t/how-to-cast-videos/25039>\
**Category:** General\
**Created:** [17 April 2020 21:31 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039 "2020-04-17T21:31:41Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![sarfer00](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sarfer00](https://discourse.nodered.org/u/sarfer00)\
**Post date:** [28 May 2020 15:44 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/41 "2020-05-28T15:44:01Z")

</div>

Hello.

I have tested it by configuring a local server on the PC where I host the 5GB video, and it works. So the problem was the http in / http request node that don't allow getting big files.

Thank you very much all of you.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 May 2020 15:55 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/42 "2020-05-28T15:55:19Z")

</div>

I suspect the problem was reading 5gb file into node environment is possibly related.

When you say you have configured a local server, do you mean a separate http server? Or have you modified settings.js to permit a public folder to be served from node-red?

I ask because others may end up here looking for the answer.

Did you try serving the file from a node-red served public folder by setting an entry in settings.js?

---

<div class="post-metadata">

**Author:** ![sarfer00](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sarfer00](https://discourse.nodered.org/u/sarfer00)\
**Post date:** [28 May 2020 17:26 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/43 "2020-05-28T17:26:43Z")

</div>

> [@Steve-Mcl](#):
>
> When you say you have configured a local server, do you mean a separate http server? Or have you modified settings.js to permit a public folder to be served from node-red?

Yes, a separate http server (IIS on Windows10).

> [@Steve-Mcl](#):
>
> Did you try serving the file from a node-red served public folder by setting an entry in settings.js?

No, I don't know how to do it, I'm recently starting with Node-Red

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 May 2020 17:34 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/44 "2020-05-28T17:34:39Z")

</div>

Of you're willing to try (and also save having to run iis too) then it's pretty easy....

Open your settings.js file  
Find `httpStatic`  
set it to a public folder (like `c:\\movies`)  
Put the file in there

See [here](https://nodered.org/docs/user-guide/runtime/configuration).

---

<div class="post-metadata">

**Author:** ![sarfer00](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sarfer00](https://discourse.nodered.org/u/sarfer00)\
**Post date:** [29 May 2020 06:39 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/45 "2020-05-29T06:39:16Z")

</div>

Thank you!! It was very easy!! It works

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 June 2020 06:39 UTC](https://discourse.nodered.org/t/how-to-cast-videos/25039/46 "2020-06-12T06:39:17Z")

</div>

Closed on 12 June 2020 06:39 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/how-to-cast-videos/25039.md?page=2)
