-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds examples/mirror.html #70
base: master
Are you sure you want to change the base?
Conversation
DoctorBud
commented
Jul 8, 2020
- Adds 'make run-pretty' option to format log output in a more human-readable way.
- Fixes typos in a couple places
- Adds static/examples/mirror.html, which synthesizes a video source and acts as a peer.
- Adds links to other examples to bottom of static/index.html
- Adds js/mirrormedia.js which uses a Canvas to create a peer video stream.
- In peering.js, add a 1-second delay before manually firing .play() on a newly created video element. This resolves random issues where even an autoplay video element doesn't start playing automatically.
…readable way. - Fixes typos in a couple places - Adds static/examples/mirror.html, which synthesizes a video source and acts as a peer. - Adds links to other examples to bottom of static/index.html - Adds js/mirrormedia.js which uses a Canvas to create a peer video stream. - In peering.js, add a 1-second delay before manually firing .play() on a newly created video element. This resolves random issues where even an autoplay video element doesn't start playing automatically.
|
||
run-pretty: build | ||
# open http://localhost:3001 | ||
ENV=local ./backend 2>&1 | jq --raw-output '[("# " + .level + (" " * 10))[0:10], (.func + (" " * 20))[0:20], .msg] | @tsv' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not have the local env var change the logging formatter used? https://github.com/ryanrolds/club/blob/master/golang/cmd/backend/logging.go#L21
setTimeout(() => { | ||
video.play() | ||
}, 1000) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any more details on the race condition that requires this? Are we not emitting an event somewhere? Maybe the issue is the lack of handling of the negotiationneeded
, which the frontend should be handling correctly now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting the above changes.