mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-30 00:51:07 +02:00
Quality selector reload stream
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
let peerConnection;
|
||||
let peerConnection
|
||||
let streamPath = window.location.href
|
||||
|
||||
startPeerConnection = () => {
|
||||
// Init peer connection
|
||||
@ -52,7 +53,7 @@ startPeerConnection = () => {
|
||||
// The server replies with its description
|
||||
// After setRemoteDescription, the browser will fire ontrack events
|
||||
console.log("Sending session description to server")
|
||||
fetch(window.location.href + document.quality_form.quality.value, {
|
||||
fetch(streamPath, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
|
Reference in New Issue
Block a user