peer.on('signal') is calling again when I addTrack(ex.screenShare track) - simple-peer - simple-peer

peer.on('signal') is calling again when I addTrack(ex.screenShare track) when a video call is going on then another peer connection is establishing
with this error
But the replaceTrack is working fine.I am not able to figure out
Can u please help me in solving these problem. Thanks in advance

From the official documentation the syntax is peer.addTrack(track, stream)

Related

Microsoft Translator Speech ,No return,I used C++ websocketpp

I try to use Microsoft Translator Speech API . I am using c++ websocketpp, I confirm that I have sent the audio data to server,but wait two minutes, the connection closed, because no audio is received from the client for an extended period of time.
void on_open(websocketpp::connection_hdl hdl) {
m_open = std::chrono::high_resolution_clock::now();
std::ifstream f("./HelloWorld.wav");
std::string str((std::istreambuf_iterator<char>(f)),std::istreambuf_iterator<char>())
m_endpoint.send(hdl,str,websocketpp::frame::opcode::BINARY);
}
Why?
Who can help me?
Thank you and regards.
Send data:
Wait two minutes:
emmmm,I solved the question,we need to add some silences at the end to tell the service that it is the end of the sentences.We make sure they are 0x00 byte,I made a mistake ,the data sent comes with additional information---pointer? Modify this error,I got a correct return.

Connect to sricam IP cameras using openCV

Update: I am using sricam SP019 IP(Wireless) camera.
I have been able to find the RTSP URL for my camera: "rtsp://IP_ADDRESS:554/onvif1" and also managed to play it in VLC and the onvifer Android app provided.
The app also provided the following info -
- Encoding: H264
- Transport Protocol: RTP/RTSP/TCP
- RTP packets received: some non-zero number
- RTP packets lost: 0
- RTSP port: 554
However, I still keep getting the error shown below.
===========================================
I am currently working on a project that requires me to interface with an IP camera (Company name: sricam) using openCV 3.3.1.
Already tried:
I have posted in the openCV forum (here) but have not received any reply yet. I also tried all options in this but keep getting this error related to the Gstreamer library.-
My question:
It would be extremely helpful if someone can just point me in the right direction as a minimum.
Thanks!
When it comes to camera URL there should be some default value in documentation (but it might be changed on configuration of camera). I guess that it will be best to start looking there.
Did you try looking on this page?
https://www.ispyconnect.com/man.aspx?n=Sricam
Try like this.
It worked to me ( OSX, sricam sp005 )
import os
os.environ["OPENCV_FFMPEG_CAPTURE_OPTIONS"] = "rtsp_transport;udp"
vcap = cv2.VideoCapture("rtsp://[IP_CAM_ADD]", cv2.CAP_FFMPEG)
Hope to be helpful to somebody

Error In snowplow-elastic sync

recently tried upgrading the snowplow r65 to r85 all seems to working fine but the snowplow-elastic sync is throwing the bwlow error.
[pool-1-thread-1] WARN com.snowplowanalytics.snowplow.storage.kinesis.elasticsearch.SnowplowElasticsearchTransformer - Expected 131 fields, received 1 fields. This may be caused by using an outdated version of Snowplow Kinesis Enrich.
but all my jars are up to date.can anyone help me to identify the problem.thanks in advance.
solved this issue.was having problem with the enricher format.

HTTP connection information in WinInet

I need to gather information about HTTP connection opening (when did it start, how much time, error codes etc).
I am using the following interfaces in my code:
IInternetProtocolSink,
IServiceProvider,
IInternetBindInfo,
IInternetProtocol,
IInternetProtocolInfo,
IInternetThreadSwitch,
IWinInetHttpInfo
All these interfaces are from the WinInet SDK (urlmon.h).
My question is: can I use any of these interfaces to gather information about the connection?
Thanks,
Adi Barda
OK. Just got the answer from Igor Tandentnik who wrote the PassThruAPP SDK. you can find it at: http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/02ee6346-9bb1-42c6-ab9c-72fdf820027b
Cheers!
Adi

boost async_receive receiving unexpected random things

i'm working on an irc server but the problem it's receiving something like this:
CAP LS
NICK Fallen
USER Fallen 0 * :Fallen
where it should be:
NICK Fallen
USER Fallen 0 * :Fallen
my code: http://pastebin.com/Li3wbpvu (i'm sorry i suck at posting code here it gets messy)
EDIT: more details: and it's not even receiving every message in a new line.
any ideas?
That's perfectly valid IRC protocol capabilities negotiation.
See some references