[Server] GStreamer ---> HTML [Client]
- gstreamer-1.x
- Browser which supports video tag of HTML5
sduo apt-get install gstreamer1.0
- Please set a webcam to the your pc.
- Open
index.html
by the browser. - Run
streaming-XXXXX.sh
by the terminal. - You will can watch video which captured by webcam !!
The reason for chrome throwing
ERR_INVALID_HTTP_RESPONSE
lies with tcpserversink not implementing HTTP. I.e. the reply on Port 8080 is only the payload/file, akin to transferring files withnetcat.
Chrome expects to see at least a bare headerHTTP/1.0 200 OK
, and refuses the stream.This appears not to be something that could be fixed with gst-launch-1.0.
Meanwhile Firefox (and likely other browsers as as well) simply deal with it ;-)