From a278fb4cd9901775f9ff5263abde07f26779c2e1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 5 Apr 2019 23:37:20 +0800 Subject: [PATCH] Good repo --- index.html | 132 ++++++++++++++++++++++++++++++++++------------------- main.go | 3 ++ 2 files changed, 87 insertions(+), 48 deletions(-) diff --git a/index.html b/index.html index 5440435a..46ade8a8 100644 --- a/index.html +++ b/index.html @@ -26,9 +26,36 @@ textarea { diff --git a/main.go b/main.go index 428c3a4d..f514176a 100644 --- a/main.go +++ b/main.go @@ -75,12 +75,15 @@ func ws(w http.ResponseWriter, r *http.Request) { } defer c.Close() + log.Println("new connection") webRTC := webrtc.NewWebRTC() localSession, err := webRTC.StartClient(width, height) if err != nil { log.Fatalln(err) } + log.Println("new connection2") + // streaming game // imageChannel := make(chan *image.RGBA, 100) // go screenshotLoop(imageChannel, webRTC)