Code Monkey home page Code Monkey logo

Comments (7)

MakeSenseIoT avatar MakeSenseIoT commented on June 2, 2024

RPi_1
RPi_2

from webrtc-video-broadcast.

TannerGabriel avatar TannerGabriel commented on June 2, 2024

Sorry for the late response. I'm not quite sure what your problem here is because the application shows the camera of the device that is accessing the /broadcast.html endpoint. That means that no matter if you are hosting the application on a Raspberry Pi the application, will stream your windows camera if you access the /broadcast.html endpoint from your windows device.

Hopefully, this helps you solve your problem. If not, let me know and I will take a closer look.

from webrtc-video-broadcast.

MakeSenseIoT avatar MakeSenseIoT commented on June 2, 2024

thanks for responding. I have a problem with navigator.mediaDevices ( is undefined) Have to figure out how to start drivers for camera and microphone on RPi.
WebRTC_RPi

from webrtc-video-broadcast.

MakeSenseIoT avatar MakeSenseIoT commented on June 2, 2024

when I run webrtc example from uv4l site https://www.linux-projects.org/uv4l/tutorials/streaming-server/ my camera and microphone work, but I don't know how to start their drivers outside that example

from webrtc-video-broadcast.

TannerGabriel avatar TannerGabriel commented on June 2, 2024

Yes, that is because you can only access things like mediaDevices on localhost when using HTTP. If you want to use them on other domains than localhost, you will need to use HTTPS instead.

Here are some additional readings if you are interested:

from webrtc-video-broadcast.

MakeSenseIoT avatar MakeSenseIoT commented on June 2, 2024

Thanks again.
Your code work for me on my local network using both http and https.
I use one computer as broadcaster and others including Macbook and iPhone as clients
and all works nice.
On raspberry pi with https I have a funny effect after running https://192.168.0.83:4000/broadcast I have a stream from my PC, not from Raspberry Pi. My guess is that here is something in the broadcast.js code causing the use of IP address of localhost (my desktop PC) instead of IP address of RPi (192.168.0.83).
Can you kindly have a look and help to fix it?
I renamed here server_new.js into server_new.txt as .js is not accepted to be attached

root@raspberrypi:~# cd /www/WebRTC-Video-Broadcast
root@raspberrypi:/www/WebRTC-Video-Broadcast# node server_new.js
Server IP is: 192.168.0.83
Express server listening on: 192.168.0.83 : 4000

Rpi3
server_new.txt

from webrtc-video-broadcast.

github-actions avatar github-actions commented on June 2, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from webrtc-video-broadcast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.