Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Meet/Room.vue
<template> | <template> | ||||
<div id="meet-component"> | <div id="meet-component"> | ||||
<div id="meet-session-toolbar" class="hidden"> | <div id="meet-session-toolbar" class="hidden"> | ||||
<span id="meet-session-logo" v-html="$root.logo()"></span> | |||||
<div id="meet-session-menu"> | <div id="meet-session-menu"> | ||||
<button class="btn btn-link link-audio" @click="switchSound" :disabled="!isPublisher()" title="Mute audio"> | <button class="btn btn-link link-audio" @click="switchSound" :disabled="!isPublisher()" title="Mute audio"> | ||||
<svg-icon icon="microphone-slash"></svg-icon> | <svg-icon icon="microphone-slash"></svg-icon> | ||||
</button> | </button> | ||||
<button class="btn btn-link link-video" @click="switchVideo" :disabled="!isPublisher()" title="Mute video"> | <button class="btn btn-link link-video" @click="switchVideo" :disabled="!isPublisher()" title="Mute video"> | ||||
<svg-icon icon="video-slash"></svg-icon> | <svg-icon icon="video-slash"></svg-icon> | ||||
</button> | </button> | ||||
<button class="btn btn-link link-screen text-danger" @click="switchScreen" :disabled="!canShareScreen || !isPublisher()" title="Share screen"> | <button class="btn btn-link link-screen text-danger" @click="switchScreen" :disabled="!canShareScreen || !isPublisher()" title="Share screen"> | ||||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | export default { | ||||
this.initSession() | this.initSession() | ||||
// Setup the room UI | // Setup the room UI | ||||
this.setupSession() | this.setupSession() | ||||
}, | }, | ||||
beforeDestroy() { | beforeDestroy() { | ||||
clearTimeout(roomRequest) | clearTimeout(roomRequest) | ||||
$('#app').removeClass('meet') | |||||
if (this.meet) { | if (this.meet) { | ||||
this.meet.leaveRoom() | this.meet.leaveRoom() | ||||
} | } | ||||
delete axios.defaults.headers.common[authHeader] | delete axios.defaults.headers.common[authHeader] | ||||
$(document.body).off('keydown.meet') | $(document.body).off('keydown.meet') | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |