videoMonitor.vue 452 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view>
  3. <web-view :src="videoUrl" id="webcon" cache-control="no-cache" class="video-monitor" :fullscreen="false">
  4. </web-view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. videoUrl:''
  12. }
  13. },
  14. onLoad() {
  15. const route = this.$route;
  16. const videoUrl = route.query.videoUrl;
  17. this.videoUrl = videoUrl;
  18. },
  19. }
  20. </script>
  21. <style scoped>
  22. .video-monitor {
  23. width: 100%;
  24. height: 100%;
  25. }
  26. </style>