diff --git a/plugin/Live/webRTC.js b/plugin/Live/webRTC.js
index 43062f67a..274c9e1f7 100644
--- a/plugin/Live/webRTC.js
+++ b/plugin/Live/webRTC.js
@@ -1,37 +1,41 @@
window.addEventListener('message', event => {
if (event.data.startLiveRestream) {
startLiveRestream(event.data.m3u8);
}
});
function startLiveRestream(m3u8) {
//console.log('WebRTCLiveCam: startLive');
modal.showPleaseWait();
$.ajax({
url: webSiteRootURL + '/plugin/Live/webRTCToLive.json.php',
method: 'POST',
data: {
'm3u8': m3u8,
'live_servers_id': ''
},
success: function (response) {
if (response.error) {
webRTCDisconnect();
avideoAlertError(response.msg);
} else {
avideoToastSuccess(response.msg);
//document.querySelector("iframe").contentWindow.postMessage({setLiveStart: 1}, "*");
}
modal.hidePleaseWait();
}
});
}
function webRTCConnect() {
document.querySelector("iframe").contentWindow.postMessage({setLiveStart: 1}, "*");
}
function webRTCDisconnect() {
document.querySelector("iframe").contentWindow.postMessage({setLiveStop: 1}, "*");
+}
+
+function webRTCConfiguration() {
+ document.querySelector("iframe").contentWindow.postMessage({setConfiguration: 1}, "*");
}
\ No newline at end of file
diff --git a/plugin/Live/webRTC.php b/plugin/Live/webRTC.php
index 23b0eb496..00bce7d47 100644
--- a/plugin/Live/webRTC.php
+++ b/plugin/Live/webRTC.php
@@ -1,73 +1,76 @@
+
\ No newline at end of file