2020-10-06 07:12:19 +00:00
|
|
|
document.getElementById("quality").addEventListener("change", (event) => {
|
|
|
|
console.log(`Stream quality changed to ${event.target.value}`)
|
|
|
|
|
|
|
|
// Restart the connection with a new quality
|
2020-10-06 07:20:25 +00:00
|
|
|
peerConnection.close()
|
|
|
|
peerConnection = null
|
|
|
|
streamPath = window.location.href + event.target.value
|
|
|
|
startPeerConnection()
|
2020-10-05 22:06:52 +00:00
|
|
|
})
|