Created
August 8, 2020 16:57
-
-
Save ryanbekabe/279da981e4eb5e0f7cbc80e66293b816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<br/><input type='hidden' id='id' name='id' size='30' value='anon'></input> | |
<script src="https://meet.jit.si/external_api.js"></script> | |
<div class="col-lg-9 col-md-8"> | |
<div class="company-title2"> | |
<h3><i class="fa fa-camera"></i> VCall - Room - HanyaJasa.Com </h3> | |
</div> | |
<div class="posts-section"> | |
<div class="post-bar"> | |
<div class="post_topbar"> | |
<div class="container" > | |
<div id='jitsi-meet-conf-container'></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
StartMeeting(); | |
var apiObj = null; | |
var base_url = "http://vc.rhs.im"; | |
function StartMeeting(){ | |
const domain = 'meet.jit.si'; | |
var id = "1"; | |
const options = { | |
roomName: "vc.rhs.im", | |
width: '100%', | |
height: 500, | |
parentNode: document.querySelector('#jitsi-meet-conf-container'), | |
userInfo: { | |
displayName: 'RHS.IM' | |
}, | |
configOverwrite:{ | |
startWithAudioMuted: true, | |
enableWelcomePage: false, | |
disableRemoteMute: true | |
}, | |
interfaceConfigOverwrite: { | |
filmStripOnly: false, | |
SHOW_JITSI_WATERMARK: false, | |
SHOW_WATERMARK_FOR_GUESTS: false, | |
}, | |
onload: function () { | |
$.post("http://vc.rhs.im",{id:id},function(data){ | |
alertify.success(data); | |
}) | |
} | |
}; | |
apiObj = new JitsiMeetExternalAPI(domain, options); | |
apiObj.addEventListeners({ | |
readyToClose: function () { | |
$.post("http://vc.rhs.im",{id:id},function(data){ | |
alertify.alert("Terimakasih, Anda menutup video conference ini"); | |
location.href= data; | |
}) | |
} | |
}); | |
apiObj.executeCommand('subject', 'Room'); | |
apiObj.executeCommand('avatarUrl', 'https://img.icons8.com/material-outlined/72/user-male-circle.png'); | |
} | |
function HangupCall(){ | |
apiObj.executeCommand('hangup'); | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment