使用Websocket-#7:websocket客户端和服务器将网络摄像头流传输到Java Server



在本教程中,我们看到如何在websocket clieint和websocket Java服务器之间发送二进制数据。
https://github.com/sambaf/WScams。

14 comments
  1. Thank you very much, it's exactly what I was looking for… I only have an error when I run the final project on my server with Firefox… Here is the message : "Firefox ne peut établir de connexion avec le serveur à l’adresse ws://localhost:8080/WebCamStreaming/wsServer." In English : "Firefox can't establish a connexion with the server : ws://localhost:8080/WebCamStreaming/wsServer."
    Have you got an idea to fix it ?
    Thank you so much and take care !!

  2. hi, i've been following your tutorial from the start and its very nice. However, i cannot see any output on the screen although the webcam is working and also switches on. please help me out

  3. When i run this i get error at the code:
    socket.send( new Blob([new Uint8Array(charArray)],{

    type:'image/jpeg'

    }));
    then i got error as: WebSocket is already in CLOSING or CLOSED state in readcanvas @ js/main.js

  4. WebSocket connection to 'ws://localhost:8080/WScams/wsServer' failed: Error during WebSocket handshake: Unexpected response code: 404
    Please Help Me.

  5. Hi. Your tutorial was very useful, Thank you so much 😀
    I want to make a browser video conference use this. But, I don't know how to show one or more people's video through the server. Can you give some advice?

Comments are closed.