You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
640 B
28 lines
640 B
<template>
|
|
<VueJanus v-if="rid" :room="rid" server="https://vid.w3ic.org/janus" :username="$store.state.name"></VueJanus>
|
|
</template>
|
|
|
|
<script>
|
|
import VueJanus from "@/lib/VueJanus";
|
|
export default {
|
|
name: "RoomView",
|
|
components: {VueJanus},
|
|
data: () => ({
|
|
rid:''
|
|
}),
|
|
mounted () {
|
|
this.getRoom()
|
|
},
|
|
methods: {
|
|
getRoom () {
|
|
this.$axios.get(`room/${this.$route.params.id}`).then(response => {
|
|
this.rid = response.data.rid
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|
|
|