simple-peer - Record vidoes for peer to peer calling - simple-peer

I am planning to use https://www.npmjs.com/package/simple-peer for peer to peer calling. But in this the two parties get connected without the media server. But I would like to record the conversation. How can I do it? I see that Zencastr is using simple-peer and yet recording the videos. How is it done?

You can use the MediaRecorder to record video. here are some usage examples.

Related

IoT - live video streaming from devices

I have a requirement which requires live streaming solution. Here is the requirement.
There will be 5000 IoT devices. Each device is capable of streaming live video. There will be about 1000 users. Each user can own 1 or multiple devices. Whenever the user wants to view live streaming of a device they own they should be able to do so. So if user1 owns device1 only user1 should be able to view the live streaming from this device and no one else. The user credentials and device mappings are stored in a database. The device is connected to the server using MQTT protocol and the users connect to the server using HTTPS REST API.
How do I go about implementing the server for this. What protocol should I use?
I have been searching for a solution on the internet. I came across Amazon Media Live but it seemed limited in that I could only have 100 inputs per channel and 5 channels. Also the documentation states that the streaming inputs must already be streaming when channel is started. But my requirement is more like the streaming source would initiate streaming whenever required.
Does anyone have any idea on how to use AWS MediaLive for this task or if I should use MediaLive at all.
Peer to peer streaming of video from the device to the user's app is also a possibility. Assume the embedded device has linux os on it is there a viable peer to peer solution for this problem where the device stream the video to multiple user on mobile apps directly. I have no been able to find any such solutions on the internet.
You can use DXS (Data Stream Exchange system), and also you can look at this tech talk which will explain you how to do it
https://www.youtube.com/watch?v=DoDzfRU4rEU&list=PLZWI9MjJG-V_Y52VWLPZE1KtUTykyGTpJ&index=2&t=0s
For anyone in future doing something similar, I did some more research on the internet and it seems like Amazon Kinesis Video Streams does what is required. I have not implemented anything yet but hopefully it will work well for the requirements.

Building a video Streaming App using WebRtc And Along With Peer to peer connection Locally?

Is it possible to use the WebRtc Offline. When we connect 2 devices through peer to peer connection After that WebRtc for streaming the video Which we want to set it through offline which we don't want to use the internet for every time. Is this Method is possible to Implement using WebRtc.
How can We set the Quality of the Video using WebRtc. Every time it Works as its Default Quality Streaming. How can we Improve Its Quality.
https://github.com/Mahabali/BonjourWebrtc
I just gone through the Link it is pretty good using WebRtc and Peer to peer Connection. But if the Internet is not their it is not Work. How can I overcome this Problem. Is it possible to set Offline using WebRtc and How I improve the Quality of the Video.
Sorry For my Bad English hope anyone help me to overcome this.
As explained on the blog of the BonjourWebRtc project : https://mobilitysolutionsexpert.wordpress.com/2016/05/04/server-less-or-no-server-webrtc-ios-app/, it used a Google Stun server.
So if you want to used it offline, you have to host your own Stun server on a local server. You can easily find code for Stun server on the web, juste google it.

Video recorder that can be used with Wowza

Do you guys have any suggestions on free/paid solutions for recording video from webcam and storing it on the wowza media server? I tried the wowza recording example but I couldn't figure out how I can set the server connection as a variable.
Thanks!
Try HDFVR, a paid flash application, but very good.
The wowza recording example should work for this. When you say you couldn't "figure out how to set the server connection as a variable", is that from the client to tell Wowza to record, or to play back the already recorded stream? Using the built-in http provider here http://www.wowza.com/forums/content.php?123 will allow you to make post requests to the Wowza server to start and stop recording.

Rest API that needs a connection

I have a system where the user needs to connect to first and then based on the connection fetch some data. For e.g. you connect to a database and then fetch say metadata about a table say.
I was planning to expose this via REST API. So in this case, you need to first connect and then use that connection to fetch the metadata.
Two options come to my mind:
a. Have a url say /connect where you post the connection parameters to and it returns a conneciton id. This id is then encoded in subsequent URL to identify the connection.
b. Second option is to post the connection parameters everytime.
What are the pros/cons of these approaches? Are there any other alternatives?
One constraint is that the authentication mechanism to connect to the system is not in my control, I am just exposing some data from the systems via webservices and I am exploring using REST.
Do you really need to expose the connection?
I think it may just be semantic prejudice - but usually connection details are hidden by the service.
Does the connection have business value?!
If the connection does have business value, then treat it like a resource:
i.e.
do a post on /connections to return a new connection
then do a get on /connection//metadata to get the metadata about that connection.

Replies to Ping broadcast

I'm writing a program in .NET c++. I'm sending a broadcast ping on my local network. All of my target devices are able to respond to a ping broadcast, and indeed i track all of their responses in Wireshark. My goal is to retrieve IP addresses of all responding stations.
Problem is, Microsoft's API does not include support for recording all replies in a given time interval.Functions like IcmpSendEcho simply return on first reply (although the API states that it can record more than one icmp reply), this is a known issue and after googling and searching here, everyone reports the same problem with these functions.
What can I do to achieve my goal without going too low-level for reply fetching?
Does windows hold some sort of a record of icmp history?
I'll be grateful for any suggestions!
1) First call FlushIpNetTable.
2) Send the ping and ignore the response.
3) Read the ARP table using the GetIpNetTable call.