forked from Albatross/projectx
parent
71e39389b8
commit
4bff32dabb
@ -1,6 +1,7 @@ |
||||
<template> |
||||
<v-app> |
||||
<v-content> |
||||
<router-view></router-view> |
||||
</v-content> |
||||
</v-content></v-app> |
||||
</template> |
||||
|
||||
|
@ -0,0 +1,28 @@ |
||||
<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> |
Loading…
Reference in new issue