|
|
|
@ -2,7 +2,8 @@ |
|
|
|
|
<v-container> |
|
|
|
|
<v-btn @click="deviceSelectDialog = true">change</v-btn> |
|
|
|
|
<v-btn @click="screenShare">share a screen</v-btn> |
|
|
|
|
<PdfShare :username="username" :opaque-id="opaqueId" :room="room" :janus-init="janusInit" ></PdfShare> |
|
|
|
|
<v-btn @click="sharePdf=true">share a pdf</v-btn> |
|
|
|
|
<PdfShare v-if="sharePdf" :username="username" :opaque-id="opaqueId" :room="room" :janus-init="janusInit" ></PdfShare> |
|
|
|
|
|
|
|
|
|
<v-dialog |
|
|
|
|
v-model="mozillaAlert" |
|
|
|
@ -122,6 +123,7 @@ |
|
|
|
|
selectedAudio: null, |
|
|
|
|
started: false, |
|
|
|
|
mozillaAlert: false, |
|
|
|
|
sharePdf: false, |
|
|
|
|
janusScreenShareHandle: null, |
|
|
|
|
chromeAlert: false, |
|
|
|
|
videoDevices: [], |
|
|
|
@ -141,6 +143,7 @@ |
|
|
|
|
error: function (error) { |
|
|
|
|
this.$janus.error(error); |
|
|
|
|
}, |
|
|
|
|
webrtcState: this.webrtcState, |
|
|
|
|
destroyed: function () { |
|
|
|
|
window.location.reload(); |
|
|
|
|
} |
|
|
|
@ -148,6 +151,10 @@ |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
webrtcState (on) { |
|
|
|
|
this.pluginHandle.send({"message": { "request": "configure", "bitrate": 512*1000 }}); |
|
|
|
|
console.log(on, "webrt") |
|
|
|
|
}, |
|
|
|
|
janusPluginSuccessScreen (pluginHandle) { |
|
|
|
|
this.janusScreenShareHandle = pluginHandle |
|
|
|
|
this.$janus.log("Plugin attached! (" + this.pluginHandle.getPlugin() + ", id=" + this.pluginHandle.getId() + ")"); |
|
|
|
@ -337,9 +344,6 @@ |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
webrtcState (on) { |
|
|
|
|
this.$janus.log("Janus says our WebRTC PeerConnection is " + (on ? "up" : "down") + " now"); |
|
|
|
|
}, |
|
|
|
|
mediaState (medium, on) { |
|
|
|
|
this.$janus.log("Janus " + (on ? "started" : "stopped") + " receiving our " + medium); |
|
|
|
|
}, |
|
|
|
|