mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
ea8ca59c83
commit
993d6ed062
2 changed files with 25 additions and 9 deletions
|
@ -51,6 +51,12 @@ if (!empty($livePlugin) && User::canStream()) {
|
||||||
event_on_meetReady();
|
event_on_meetReady();
|
||||||
}
|
}
|
||||||
console.log("YPTMeetScript conference is ready");
|
console.log("YPTMeetScript conference is ready");
|
||||||
|
} else if (typeof e.data.aVideoMeetStartRecording !== 'undefined') {
|
||||||
|
console.log("YPTMeetScript aVideoMeetStartRecording");
|
||||||
|
aVideoMeetStartRecording(e.data.aVideoMeetStartRecording.RTMPLink, e.data.aVideoMeetStartRecording.dropURL);
|
||||||
|
} else if (typeof e.data.aVideoMeetStopRecording !== 'undefined') {
|
||||||
|
console.log("YPTMeetScript aVideoMeetStopRecording");
|
||||||
|
aVideoMeetStopRecording(e.data.aVideoMeetStopRecording.dropURL);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -144,7 +150,7 @@ if (!empty($livePlugin) && User::canStream()) {
|
||||||
document.querySelector("iframe").contentWindow.postMessage({prepend: prepend}, "*");
|
document.querySelector("iframe").contentWindow.postMessage({prepend: prepend}, "*");
|
||||||
}
|
}
|
||||||
|
|
||||||
function aVideoMeetCreateButtons() {
|
function aVideoMeetCreateButtons() {#new-toolbox > div.toolbox-content > div.button-group-right > div > div > div.sc-kgoBCf.iroQPA > div > div > ul > li:nth-child(3)
|
||||||
<?php
|
<?php
|
||||||
if (!empty($rtmpLink)) {
|
if (!empty($rtmpLink)) {
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -29,7 +29,9 @@ function isConferenceReady() {
|
||||||
if (conferenceIsReady) {
|
if (conferenceIsReady) {
|
||||||
window.parent.postMessage({"conferenceIsReady": true}, "*");
|
window.parent.postMessage({"conferenceIsReady": true}, "*");
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function(){isConferenceReady();},1000);
|
setTimeout(function () {
|
||||||
|
isConferenceReady();
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,4 +73,12 @@ function startYPTScripts() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function aVideoMeetStartRecording(RTMPLink, dropURL) {
|
||||||
|
window.parent.postMessage({"aVideoMeetStartRecording": {RTMPLink:RTMPLink, dropURL:dropURL}}, "*");
|
||||||
|
}
|
||||||
|
|
||||||
|
function aVideoMeetStopRecording(dropURL) {
|
||||||
|
window.parent.postMessage({"aVideoMeetStopRecording": {dropURL:dropURL}}, "*");
|
||||||
|
}
|
||||||
|
|
||||||
startYPTScripts();
|
startYPTScripts();
|
Loading…
Add table
Add a link
Reference in a new issue