From 96dca780722af767e9b1690b0fe7e8c8f4852897 Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Sun, 13 Dec 2020 19:04:28 -0500 Subject: [PATCH] fix(examples): update sdk + fix simulcast (#339) * fix(examples): update sdk + fix simulcast * bump sdk version * Fix simulcast layer change Co-authored-by: OrlandoCo --- cmd/signal/json-rpc/main.go | 2 ++ examples/echotest/index.html | 15 ++++++++++----- examples/{racetest => gallerytest}/README.md | 4 ++-- .../docker-compose.yaml | 0 examples/{racetest => gallerytest}/index.html | 11 +++++++---- examples/pubsubtest/index.html | 8 +++++--- go.sum | 7 +++++++ pkg/sfu/downtrack.go | 9 ++++++--- pkg/sfu/receiver.go | 17 ++++++----------- 9 files changed, 45 insertions(+), 28 deletions(-) rename examples/{racetest => gallerytest}/README.md (64%) rename examples/{racetest => gallerytest}/docker-compose.yaml (100%) rename examples/{racetest => gallerytest}/index.html (91%) diff --git a/cmd/signal/json-rpc/main.go b/cmd/signal/json-rpc/main.go index a1db1ff0f..8e88689bc 100644 --- a/cmd/signal/json-rpc/main.go +++ b/cmd/signal/json-rpc/main.go @@ -7,6 +7,8 @@ import ( "net/http" "os" + _ "net/http/pprof" + "github.com/gorilla/websocket" "github.com/sourcegraph/jsonrpc2" websocketjsonrpc2 "github.com/sourcegraph/jsonrpc2/websocket" diff --git a/examples/echotest/index.html b/examples/echotest/index.html index af8cd0a05..0299ee707 100644 --- a/examples/echotest/index.html +++ b/examples/echotest/index.html @@ -170,6 +170,7 @@

Pion

onclick="controlRemoteVideo(this)" value="high" name="optremotevideos" + checked /> High @@ -328,7 +329,8 @@

Pion

integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous" > - + + - + + - + +