-
-
Notifications
You must be signed in to change notification settings - Fork 166
Replies: 1 comment · 4 replies
-
It's not really clear what you are attempting to do. SDP offers/answers are handled automatically in the code, you don't need to do anything with them at all. You don't really need to do anything other than call streamVideo() with the ffmpeg parameters needs to do whatever you want with the stream. There are plenty of working examples of the streaming API being used, including https://github.com/dgreif/ring/blob/main/packages/examples/stream-example.ts as a good started example. |
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
Thank for this answer but a problem has risen that I haven't been able to figure out with a lot of trial and error. I keep getting this error. ERROR in ./node_modules/cross-spawn/index.js 3:11-35 ERROR in ./node_modules/execa/index.js 3:21-45 ERROR in ./node_modules/express/lib/utils.js 24:18-40 BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: ERROR in ./node_modules/express/node_modules/body-parser/lib/types/urlencoded.js 228:12-34 BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: ERROR in ./node_modules/http2-wrapper/source/agent.js 4:14-30 ERROR in ./node_modules/http2-wrapper/source/client-request.js 2:14-30 ERROR in ./node_modules/http2-wrapper/source/index.js 2:14-30 ERROR in ./node_modules/pick-port/lib/udp.js 1:14-30 ERROR in ./node_modules/ring-client-api/lib/rest-client.js 10:33-50 BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: ERROR in ./node_modules/ring-client-api/lib/util.js 9:19-38 ERROR in ./node_modules/signal-exit/index.js 26:15-32 BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. If you want to include a polyfill, you need to: ERROR in ./node_modules/systeminformation/lib/audio.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/battery.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/bluetooth.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/cpu.js 17:13-42 ERROR in ./node_modules/systeminformation/lib/filesystem.js 19:13-42 ERROR in ./node_modules/systeminformation/lib/graphics.js 17:13-42 ERROR in ./node_modules/systeminformation/lib/memory.js 17:13-42 ERROR in ./node_modules/systeminformation/lib/network.js 17:13-42 ERROR in ./node_modules/systeminformation/lib/osinfo.js 19:13-42 ERROR in ./node_modules/systeminformation/lib/printer.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/processes.js 19:13-42 ERROR in ./node_modules/systeminformation/lib/system.js 19:13-42 ERROR in ./node_modules/systeminformation/lib/usb.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/users.js 16:13-42 ERROR in ./node_modules/systeminformation/lib/util.js 19:14-44 ERROR in ./node_modules/systeminformation/lib/virtualbox.js 17:13-42 ERROR in ./node_modules/systeminformation/lib/wifi.js 17:13-42 ERROR in ./node_modules/werift/lib/common/src/network.js 4:16-32 ERROR in ./node_modules/werift/lib/dtls/src/flight/flight.js 8:19-45 ERROR in ./node_modules/werift/lib/dtls/src/socket.js 10:19-45 ERROR in ./node_modules/werift/lib/ice/src/dns/lookup.js 7:41-66 ERROR in ./node_modules/werift/lib/ice/src/ice.js 40:35-61 ERROR in ./node_modules/werift/lib/ice/src/transport.js 8:16-32 ERROR in ./node_modules/werift/lib/ice/src/turn/protocol.js 12:19-45 ERROR in ./node_modules/werift/lib/rtp/src/processor/depacketizerTransformer.js 4:14-35 ERROR in ./node_modules/werift/lib/rtp/src/processor/jitterBufferTransformer.js 4:14-35 ERROR in ./node_modules/werift/lib/rtp/src/processor/rtpStream.js 4:14-35 ERROR in ./node_modules/werift/lib/rtp/src/processor/webmCallback.js 4:19-41 ERROR in ./node_modules/werift/lib/rtp/src/processor/webmStream.js 4:14-35 ERROR in ./node_modules/werift/lib/webrtc/src/media/receiver/receiverTwcc.js 8:19-45 ERROR in ./node_modules/werift/lib/webrtc/src/media/rtpReceiver.js 9:19-45 ERROR in ./node_modules/werift/lib/webrtc/src/media/rtpSender.js 55:19-45 ERROR in ./node_modules/werift/lib/webrtc/src/nonstandard/recorder/writer/webm.js 4:19-41 ERROR in ./node_modules/werift/lib/webrtc/src/nonstandard/userMedia.js 4:24-48 ERROR in ./node_modules/werift/lib/webrtc/src/nonstandard/userMedia.js 5:16-32 ERROR in ./node_modules/werift/lib/webrtc/src/nonstandard/userMedia.js 6:19-45 ERROR in ./node_modules/werift/lib/webrtc/src/transport/dtls.js 10:19-45 ERROR in ./node_modules/werift/lib/webrtc/src/utils.js 10:21-42 Originally, I was getting an error that I was calling a file outside of the src so I created a symlink to the file which I am calling in my frontend. But then these issues came up and so I created a webpack config file for: `const path = require('path'); module.exports = { I installed every module it said it couldnt find, I also deleted the node_modules folder and reinstalled it but to no avail. This is the file which I am trying to call. `import "dotenv/config"; async function initializeCamera(){ ringApi.onRefreshTokenUpdated.subscribe(
); const cameras = await ringApi.getCameras(); if (!camera) { return camera; export async function liveStream(){
} Please any help would be appreciated |
Beta Was this translation helpful? Give feedback.
All reactions
-
I see webpack mentioned a few times in there. Are you trying to run this in a browser? If so, it won't work. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah I was going to make a frontend that would display the live stream when a user clicks on a button. Is there no way for me to display this data in a browser? I was thinking about making an API that on click would activate my liveStream function and then retrieve the data from that but I'm also not sure exactly what data I should be receiving. My function is within a folder called ring which is the sibling of the frontend folder, so instead of using symlinks I decided maybe using express would be better but I'm not sure now. If any of my questions sound dumb I apologize I am still relatively new to programming. |
Beta Was this translation helpful? Give feedback.
All reactions
-
If this is something you just want to run locally on your machine, have a look at the browser example. It starts up a stream which is piped to a Note, you can run the example with |
Beta Was this translation helpful? Give feedback.
-
Hello guys, I am currently trying to live stream the camera but I am stuck on how to get the SDP offer so that I can then use that to get a response. I have never worked with networking of any kind so I'm unsure what to do here. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions