# How to display video from phone in dashboard via protocol RTMP

**URL:** <https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098>\
**Category:** Dashboard\
**Created:** [12 June 2019 09:10 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098 "2019-06-12T09:10:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [12 June 2019 09:10 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/1 "2019-06-12T09:10:13Z")

</div>

How can i be able to display video played on mobile phone via RTMP inside iframe in NR dashboard ?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [12 June 2019 09:39 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/2 "2019-06-12T09:39:49Z")

</div>

How can we guess your setup? Explain better what you have done so far

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [12 June 2019 09:43 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/3 "2019-06-12T09:43:01Z")

</div>

i have installed RTMP Camera app on my phone but still stack on how can publish the rtmp address and display live streaming video in dashboard ?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [12 June 2019 11:38 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/4 "2019-06-12T11:38:44Z")

</div>

Hi @hathemi,  
I assume this is the same question as your [previous post](https://discourse.nodered.org/t/how-to-insert-a-live-stream-video-from-my-mobile-into-dashboards/12035)? You might get more responses if you keep it all together in a single discussion, so people at least can see the history.  
And I must agree with Walter (@krambriw). You should explain more about your setup, what you want to achieve and what you have already tried. Otherwise few people in this community will be able to assist you ...

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [12 June 2019 11:43 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/5 "2019-06-12T11:43:56Z")

</div>

for this time i want to put rtmp insted of http inside my code  
`src="rtmp://xxx.xxx.x.x:port/live"`  
i still can't get it work .. i have installed to many application in cluding "rtmp server" but still can't figure out what it really need to insert a live streaming video inside dashboard !!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 June 2019 12:57 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/6 "2019-06-12T12:57:32Z")

</div>

I have to ask the same question that I asked before, does that url work if you enter into the browser address bar? If it does not then it will not work in an iframe (which is what you are trying to do I believe).

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [12 June 2019 13:26 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/7 "2019-06-12T13:26:08Z")

</div>

Do you have a specific reason to use rtmp?

If the mission is to stream live video from your mobile camera to a dashboard running somewhere, I think you should look for solutions that emulates your phone camera as a web camera. Like in this solution

  
using the IP Webcam app

Once you have the url for your "mobile webcam", you should be able to put that into an iframe (or even better, as an img src tag in the ui template node as described many, many times already)

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [12 June 2019 13:32 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/8 "2019-06-12T13:32:03Z")

</div>

yeah i have tried this app and it works. For now i still looking for app that provide me rtmp address to connect on it on web browser.  
And is it possible to display video via rtmp protocole?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [12 June 2019 13:45 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/9 "2019-06-12T13:45:31Z")

</div>

> [@hathemi](#):
>
> RTMP Camera app

Have you looked into the requirements when using rtmp? You need to connect your rtmp app to a rtmp server (typically hosted on internet where there are various providers, I think youtube supports this as well)  
This article, even though ment for IPhone, is very informative

> **[The 12 Best iOS Live Streaming Apps for iPhone with RTMP Ingest \[2023 Update\]](https://www.dacast.com/blog/live-streaming-apps-for-iphone/)**
>
> Explore the top 5 iOS RTMP streaming apps to connect your iPhone to your OVP.

If you then can view your camera in this way, from youtube or other, you should be able to use the same url in the iframe. But direct rtmp connection to the dashboard, no I think that is not possible (unless you can find or invent a node written as a rtmp server)

EDIT: Well, there seem to be a node-media-server supporting rtmp available, maybe this is a starting point for having your local rtmp server

> **[node-media-server](https://www.npmjs.com/package/node-media-server)**
>
> A Node.js implementation of RTMP Server. Latest version: 2.6.2, last published: 7 months ago. Start using node-media-server in your project by running \`npm i node-media-server\`. There are 9 other projects in the npm registry using node-media-server.

It seems you can even have a local rtmp server running on a raspberry pi....

> **[How to set up your own private RTMP server using nginx](https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/)**
>
> Most people who stream enjoy using services such as Twitch.tv or Ustream to deliver video to viewers, and that works well enough. But sometimes you want some more control over your stream, or you want other people to be able to stream to you, or...

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [12 June 2019 19:42 UTC](https://discourse.nodered.org/t/how-to-display-video-from-phone-in-dashboard-via-protocol-rtmp/12098/10 "2019-06-12T19:42:04Z")

</div>

thanks alot it really helped. using one of those apps make it works.  
Is there a way to serve video from node-red to phone ?
