diff --git a/src/webrtc/web/index.html b/src/webrtc/web/index.html new file mode 100644 index 0000000..c91e611 --- /dev/null +++ b/src/webrtc/web/index.html @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + Base64:
+
+ + + + + + \ No newline at end of file diff --git a/src/webrtc/webrtc.go b/src/webrtc/webrtc.go index 4996869..2b170ec 100644 --- a/src/webrtc/webrtc.go +++ b/src/webrtc/webrtc.go @@ -2,7 +2,6 @@ package main import ( "crypto/md5" - "crypto/rand" "encoding/base64" "encoding/json" "errors" @@ -88,8 +87,9 @@ func createOfferer(finished chan<- error) (pc *webrtc.PeerConnection, err error) log.Debugf("OnOpen: %s-%d. Start sending a series of 1024-byte packets as fast as it can\n", dc.Label(), dc.ID()) its := 0 for { - buf := make([]byte, maxPacketSize) - rand.Read(buf) + // buf := make([]byte, maxPacketSize) + buf := []byte(fmt.Sprintf("%d\n", its)) + // rand.Read(buf) its++ if its == 3000000000 { buf = []byte{1, 2, 3}