|
|
@ -6,11 +6,11 @@ |
|
|
|
<v-btn @click="screenShareStop" v-if="screenShareStarted">stop screen share</v-btn> |
|
|
|
<v-btn @click="screenShareStop" v-if="screenShareStarted">stop screen share</v-btn> |
|
|
|
|
|
|
|
|
|
|
|
<v-btn @click="sharePdf=true">share a pdf</v-btn> |
|
|
|
<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> |
|
|
|
<PdfShare v-if="sharePdf" :username="username" :onstop="stopSharePdf" :opaque-id="opaqueId" :room="room" :janus-init="janusInit" ></PdfShare> |
|
|
|
|
|
|
|
|
|
|
|
<v-dialog |
|
|
|
<v-dialog |
|
|
|
v-model="mozillaAlert" |
|
|
|
v-model="mozillaAlert" |
|
|
|
max-width="290" |
|
|
|
max-width="410" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-card> |
|
|
|
<v-card> |
|
|
|
<v-card-title class="headline">Share whole screen or a window?</v-card-title> |
|
|
|
<v-card-title class="headline">Share whole screen or a window?</v-card-title> |
|
|
@ -19,13 +19,16 @@ |
|
|
|
Firefox handles screensharing in a different way: are you going to share the whole screen, or would you rather pick a single window/application to share instead? |
|
|
|
Firefox handles screensharing in a different way: are you going to share the whole screen, or would you rather pick a single window/application to share instead? |
|
|
|
</v-card-text> |
|
|
|
</v-card-text> |
|
|
|
<v-card-actions> |
|
|
|
<v-card-actions> |
|
|
|
|
|
|
|
<v-spacer></v-spacer> |
|
|
|
<v-btn @click="shareScreenStart('screen')">Share a screen</v-btn> |
|
|
|
<v-btn @click="shareScreenStart('screen')">Share a screen</v-btn> |
|
|
|
|
|
|
|
<v-spacer></v-spacer> |
|
|
|
<v-btn @click="shareScreenStart('window')">Share a window</v-btn> |
|
|
|
<v-btn @click="shareScreenStart('window')">Share a window</v-btn> |
|
|
|
|
|
|
|
<v-spacer></v-spacer> |
|
|
|
</v-card-actions> |
|
|
|
</v-card-actions> |
|
|
|
</v-card> |
|
|
|
</v-card> |
|
|
|
</v-dialog><v-dialog |
|
|
|
</v-dialog><v-dialog |
|
|
|
v-model="chromeAlert" |
|
|
|
v-model="chromeAlert" |
|
|
|
max-width="290" |
|
|
|
max-width="410" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-card> |
|
|
|
<v-card> |
|
|
|
<v-card-title class="headline">Chrome Extension Error</v-card-title> |
|
|
|
<v-card-title class="headline">Chrome Extension Error</v-card-title> |
|
|
@ -155,6 +158,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
stopSharePdf(){ |
|
|
|
|
|
|
|
this.sharePdf=false; |
|
|
|
|
|
|
|
}, |
|
|
|
webrtcState (on) { |
|
|
|
webrtcState (on) { |
|
|
|
this.pluginHandle.send({"message": { "request": "configure", "bitrate": 512*1000 }}); |
|
|
|
this.pluginHandle.send({"message": { "request": "configure", "bitrate": 512*1000 }}); |
|
|
|
console.log(on, "webrt") |
|
|
|
console.log(on, "webrt") |
|
|
@ -191,6 +197,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onlocalstreamScreen (stream) { |
|
|
|
onlocalstreamScreen (stream) { |
|
|
|
|
|
|
|
if(!this.screenShareStarted) |
|
|
|
|
|
|
|
this.screenShareStarted=true; |
|
|
|
this.$refs.ownstreamscreen.srcObject = stream |
|
|
|
this.$refs.ownstreamscreen.srcObject = stream |
|
|
|
}, |
|
|
|
}, |
|
|
|
shareScreenStart (capture) { |
|
|
|
shareScreenStart (capture) { |
|
|
@ -208,7 +216,6 @@ |
|
|
|
onlocalstream: this.onlocalstreamScreen |
|
|
|
onlocalstream: this.onlocalstreamScreen |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
this.screenShareStarted=true; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
screenShareStop(){ |
|
|
|
screenShareStop(){ |
|
|
|
var srcObject=this.$refs.ownstreamscreen.srcObject; |
|
|
|
var srcObject=this.$refs.ownstreamscreen.srcObject; |
|
|
|