VideoDetail.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div class="main_right_height">
  3. <TopDes :flag="true" topDesFont="播放视频"></TopDes>
  4. <el-row>
  5. <el-col :span="1">&nbsp;</el-col>
  6. <el-col :span="22" style="text-align: center">
  7. <video
  8. :width="id === '4' ? 'auto' : '100%'"
  9. x-webkit-airplay="true"
  10. webkit-playsinline="true"
  11. :controls="controls"
  12. style="border-radius: 16px;"
  13. >
  14. <source :src="vodeoUrl" type="video/mp4" />
  15. </video>
  16. </el-col>
  17. <el-col :span="1">&nbsp;</el-col>
  18. </el-row>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. id: this.$route.query.id,
  26. player: null,
  27. vodeoUrl: __static + this.$route.query.url,
  28. controls: {
  29. type: Boolean,
  30. required: false,
  31. default: true,
  32. },
  33. };
  34. },
  35. mounted() {
  36. // document.getElementById("fullScreen")
  37. // if (document.documentElement.webkitRequestFullScreen) {
  38. // console.log("谷歌");
  39. // document.documentElement.webkitRequestFullScreen();
  40. // }
  41. },
  42. berforeDestroy() {},
  43. methods: {
  44. goBack() {
  45. this.$router.go(-1);
  46. },
  47. },
  48. };
  49. </script>
  50. <style scoped>
  51. .musicTitle {
  52. display: block;
  53. font-size: 18px;
  54. color: #57acbb;
  55. margin-bottom: 5px;
  56. }
  57. .main_right_height {
  58. height: 95vh !important;
  59. display: block !important;
  60. overflow-y: auto !important;
  61. }
  62. </style>