Web-socket tutorial

Web-socket tutorial

Support ForumCategory: Usage and FeaturesWeb-socket tutorial
Maher asked 8 years ago
Hi, The latest version of evostream supports streaming over web socket. Is it possible to stream my current live RTMP streams (H264/ACC) using WS streaming? (Video sources are video surveillance cameras) Does it has the same latency as the RTMP and HLS ? Can you give me a way (step by step) to create a web-socket from the URL rtmp generated by pullstream  API:
Pullstream uri = dmpegtsudp: // ip: port localstreamname = streamname Thank you,      



5 Answers
erika Staff answered 8 years ago
Hi Maher!   After your pullStream you can play your stream using the websockets. Please see http://docs.evostream.com/ems_user_guide/protocolsupport#html5-web-sockets http://docs.evostream.com/ems_how_to_guide/websockets    Thank you!
Maher answered 8 years ago
Thank you, So what i have to do is to generate a stream with Pullstream: pullstream uri=dmpegtsudp://<ems-ip>: <PortX> localstreamname=StreamX then, like in the demo on Evo web server : evowsvideo.html, what i have to do just to configure the Web socket url like this : ws://<ems-ip>:PortX/StreamX  ? regards,
Maher answered 8 years ago
I got this error ws://<ems-ip>:<PortX>/<StreamX>?progressive’ failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
Maher answered 8 years ago
ok, i succeed to get stream with websocket, but over specefic ports  i used pullstream API : pullstream uri=dmpegtsudp://<ems-ip>: 8100 localstreamname=Stream but i can just open it over 8410 : ws://<ems-ip>:8410 — streamname : Stream it tried to add another inboundWSFMP4 port in config.lua but i couldn’t get the stream  What i want to do is to open multiple streams over multiple ports ! could you help me to realise it ? thanks!
erika Staff answered 8 years ago
Hi Maher! I’m glad you make it worked.  “What i want to do is to open multiple streams over multiple ports !” You made it right to add another port in config.lua. Did you restart EMS after you add your configurations?

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.