live-app.vue 727 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <JhliveApp
  3. class="container"
  4. ref="jhliveApp"
  5. :sdkAppID="sdkAppID"
  6. :userSig="userSig"
  7. :userid="userid"
  8. :roomid="roomid"
  9. :isAuthor="isAuthor"
  10. :linkMic="linkMic" />
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. };
  17. },
  18. props: {
  19. props: {
  20. sdkAppID: Number,
  21. userSig: String,
  22. userid: String,
  23. roomid: String,
  24. isAuthor: Boolean,
  25. linkMic: Boolean
  26. },
  27. },
  28. mounted: function() {
  29. },
  30. destroyed: function() {
  31. },
  32. methods: {
  33. enterRoom: function() {
  34. this.$refs.jhliveApp.enterRoom();
  35. },
  36. exitRoom: function() {
  37. this.$refs.jhliveApp.exitRoom();
  38. }
  39. }
  40. };
  41. </script>
  42. <style scoped>
  43. .container {
  44. flex: 1;
  45. }
  46. </style>