Kaynağa Gözat

feed 点播

wws 2 yıl önce
ebeveyn
işleme
b3141905ac

+ 2 - 8
src/components/full-control/FullControl.vue

@@ -19,12 +19,6 @@ export default {
     return {
     }
   },
-  methods: {
-    // 退出全屏
-    handleExitFullScreen() {
-
-    }
-  }
 }
 </script>
 
@@ -58,9 +52,9 @@ export default {
       </div>
     </div>
 
-    <full-progress />
+    <full-progress v-bind="$attrs" />
 
-    <full-share />
+    <full-share v-bind="$attrs" />
   </div>
 </template>
 

+ 19 - 8
src/components/full-progress/FullProgress.vue

@@ -1,6 +1,14 @@
 <script>
 export default {
   name: "FullProgress",
+  props: {
+    playerInstance: {
+      type: Object,
+      default: () => {
+        return {}
+      }
+    }
+  },
   data() {
     return {
       isDrag: false,
@@ -21,18 +29,20 @@ export default {
     }
   },
   mounted() {
-    this.registerEvent();
+    this.$nextTick(() => {
+      this.registerEvent();
+    })
   },
   methods: {
     // 注册监听事件
     registerEvent() {
       // 初始化完成
-      this.$bus.$on("player_init_over", (totalTime) => {
+      this.playerInstance.on("player_init_over", (totalTime) => {
         this.totalTime = totalTime || 0;
       })
 
       // 播放
-      this.$bus.$on('player_play', (currentTime) => {
+      this.playerInstance.on('player_play', (currentTime) => {
         this.currentTime = currentTime;
         if(currentTime === 0) this.progress = 0;
         this.startTimer();
@@ -40,13 +50,13 @@ export default {
       });
 
       // 暂停
-      this.$bus.$on('player_pause', () => {
+      this.playerInstance.on('player_pause', () => {
         this.pauseTimer();
         this.isPlay = false;
       });
 
       // 拖拽结束
-      this.$bus.$on("player_drag_seek", (currentTime) => {
+      this.playerInstance.on("player_drag_seek", (currentTime) => {
         this.currentTime = currentTime;
         // 计算当时的进度
         this.progress = (currentTime / this.totalTime) * 100;
@@ -56,9 +66,9 @@ export default {
     handlePlayOrPause() {
       console.log('切换开关')
       if (this.isPlay) {
-        this.$bus.$emit("c_player_pause");
+        this.playerInstance?.pause("c_player_pause");
       } else {
-        this.$bus.$emit("c_player_play");
+        this.playerInstance?.play("c_player_play");
       }
     },
 
@@ -112,7 +122,7 @@ export default {
       this.isDrag = false;
       this.$emit('touchend', this.currentTime);
       // this.resumeTimer(); // 重新启动定时器
-      this.$bus.$emit('seek_video', this.currentTime);
+      this.playerInstance?.handleSeekTo(this.currentTime);
     },
     // 开始定时器
     startTimer() {
@@ -208,6 +218,7 @@ export default {
   flex: 1;
   height: 2px;
   background: rgba(255, 255, 255, 0.24);
+  background: pink;
   border-radius: 2px;
   margin: 0 24px;
   position: relative;

+ 1 - 1
src/components/popup/ModalPopup.vue

@@ -15,7 +15,7 @@ export default {
 </script>
 
 <template>
-  <van-popup v-bind="$attrs" v-on="$listeners" position="bottom" round>
+  <van-popup v-bind="$attrs" v-on="$listeners" position="bottom" round get-container="body">
     <div class="c-header">
       <img src="@/assets/arrow.png" class="back-icon" v-if="showBack" @click="$emit('back')" />
       <div class="title-row">

+ 42 - 13
src/components/progress/ProgressLine.vue

@@ -5,6 +5,12 @@ export default {
     onDrag: {
       type: Function,
       default: () => {}
+    },
+    playerInstance: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   data() {
@@ -25,25 +31,34 @@ export default {
     }
   },
   mounted() {
-    this.registerEvent();
+    this.$nextTick(() => {
+      this.registerEvent();
+    })
   },
   methods: {
     // 注册监听事件
     registerEvent() {
       // 初始化完成
-      this.$bus.$on("player_init_over", (totalTime) => {
+      this.playerInstance.on("player_init_over", (totalTime) => {
         this.totalTime = totalTime || 0;
       })
 
       // 播放
-      this.$bus.$on('player_play', (currentTime) => {
+      this.playerInstance.on('player_play', (currentTime) => {
         this.currentTime = currentTime;
         if(currentTime === 0) this.progress = 0;
         this.startTimer();
       });
 
       // 暂停
-      this.$bus.$on('player_pause', this.pauseTimer);
+      this.playerInstance.on('player_pause', this.pauseTimer);
+    },
+
+    // 注销监听事件
+    unregisterEvent() {
+      this.$bus.$off("player_init_over")
+      this.$bus.$off("player_play")
+      this.$bus.$off("player_pause")
     },
 
     startDrag(event) {
@@ -96,7 +111,8 @@ export default {
       this.isDrag = false;
       this.$emit('touchend', this.currentTime);
       // this.resumeTimer(); // 重新启动定时器
-      this.$bus.$emit('seek_video', this.currentTime);
+      this.playerInstance?.handleSeekTo(this.currentTime);
+      // this.$bus.$emit('seek_video', this.currentTime);
     },
     // 开始定时器
     startTimer() {
@@ -156,16 +172,23 @@ export default {
       <img src="@/assets/arc.png" class="arc-icon" />
     </template>
 
-    <div class="progress-container">
+    <div
+
+        class="progress-container">
       <div
-          ref="line"
-          class="line"
-          :class="{'drag-line': isDrag}"
-          :style="{'--progress-width': progress + '%'}"
+          class="line-box"
           @touchmove="handleTouch"
           @touchstart="startDrag"
-          @touchend="handleTouchEnd"></div>
-      <img src="@/assets/full.png" class="full-icon" @click="$emit('full')" />
+          @touchend="handleTouchEnd">
+
+        <div
+            ref="line"
+            class="line"
+            :class="{'drag-line': isDrag}"
+            :style="{'--progress-width': progress + '%'}" ></div>
+      </div>
+
+      <img src="@/assets/full.png" class="full-icon" @click.stop="$emit('full')" />
     </div>
   </div>
 </template>
@@ -207,8 +230,14 @@ export default {
   //margin-bottom: 16px;
 }
 
-.line {
+.line-box {
   flex: 1;
+  box-sizing: border-box;
+  padding: 8px 0;
+}
+
+.line {
+  width: 100%;
   background: rgba(255, 255, 255, 0.2);
   height: 4px;
   border-radius: 6px;

+ 1 - 1
src/components/quality-popup/QualityPopup.vue

@@ -28,7 +28,7 @@ export default {
   },
   methods: {
     handleChangeQuality(item, index) {
-      this.$bus.$emit("switchBitrate", item.flag);
+      this.$emit("quality", item.flag);
       this.current = index;
       this.showPopup = false;
     }

+ 10 - 1
src/components/set-popup/VideoSetPopup.vue

@@ -14,6 +14,12 @@ export default {
     visible: {
       type: Boolean,
       default: false
+    },
+    playerInstance: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   data() {
@@ -31,6 +37,9 @@ export default {
     handleBack(key) {
       this[key] = false;
       this.$emit('change', true)
+    },
+    handleChangeQuality(val) {
+      this.playerInstance?.handleChangeQuality(val);
     }
   },
   watch: {
@@ -72,7 +81,7 @@ export default {
     </modal-popup>
 
     <speed-popup v-model="showSpeedPopup" @back="handleBack('showSpeedPopup')" />
-    <quality-popup v-model="showQualityPopup" @back="handleBack('showQualityPopup')" />
+    <quality-popup @quality="handleChangeQuality" v-model="showQualityPopup" @back="handleBack('showQualityPopup')" />
   </div>
 </template>
 

+ 29 - 124
src/components/video-container/PolyvPlayer.vue

@@ -1,8 +1,9 @@
 <template>
   <div :class="{'full': full}" @click="handleChangeControl">
-    <div id="player"></div>
-    <div class="test">测试内容</div>
-    <full-control v-model="showControl" @exit="handleExitFullScreen" v-if="false" />
+    <div :id="playerInstance.playerId" class="player"></div>
+    <div class="control">
+      <full-control v-model="showControl" @exit="handleExitFullScreen" :playerInstance="playerInstance"  />
+    </div>
   </div>
 </template>
 <script>
@@ -19,44 +20,27 @@ export default {
     visible: {
       type: Boolean,
       default: false
+    },
+    playerInstance: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   data() {
     return {
-      vodPlayerJs: 'https://player.polyv.net/resp/vod-player/latest/player.js',
-      vid:'88083abbf5bcf1356e05d39666be527a_8',
-      full: true,
+      full: false,
       showControl: false,
-      player: null,
     };
   },
   mounted(){
-    this.loadPlayerScript(this.loadPlayer);
-    this.registerEvent();
+    this.$nextTick( async() => {
+      await this.playerInstance.loadPlayerScript();
+      this.playerInstance.loadPlayer();
+    })
   },
   methods: {
-    // 注册事件
-    registerEvent() {
-      // 切换清晰度
-      this.$bus.$on('switchBitrate', (number) => {
-        this.player.switchBitrate(number);
-        console.log("切换清晰度", number)
-      })
-
-      // 跳转时刻
-      this.$bus.$on("seek_video", this.handleSeekTo);
-
-      // 暂停播放
-      this.$bus.$on("c_player_pause", () => {
-        this.player.j2s_pauseVideo();
-      })
-
-      // 播放
-      this.$bus.$on("c_player_play", () => {
-        this.player.j2s_resumeVideo();
-      })
-    },
-
     // 退出全屏
     handleExitFullScreen() {
       this.full = false;
@@ -70,73 +54,6 @@ export default {
       this.showControl = !this.showControl;
 
     },
-
-    // 跳转某个时刻播放(秒)
-    handleSeekTo(number) {
-      this.player.j2s_seekVideo(number);
-    },
-
-    loadPlayerScript(callback) {
-      if (!window.polyvPlayer) {
-        const myScript = document.createElement('script');
-        myScript.setAttribute('src', this.vodPlayerJs);
-        myScript.onload = callback;
-        document.body.appendChild(myScript);
-      } else {
-        callback();
-      }
-    },
-
-    loadPlayer() {
-      const polyvPlayer = window.polyvPlayer;
-      this.player = polyvPlayer({
-        wrap: '#player',
-        vid: this.vid ,
-        skinLocation: 0,
-        autoplay: true,
-        df: 3
-      });
-      this.initPlayer();
-    },
-
-    // 初始化完成监听
-    initPlayer() {
-      this.player.on('s2j_onPlayerInitOver',() => {
-        // 获取视频总时长
-        const totalTime = this.player.j2s_getDuration();
-        this.$bus.$emit("player_init_over", totalTime);
-      });
-
-      //初次播放触发
-      this.player.on("s2j_onPlayStart", () => {
-        this.$bus.$emit("player_play_start");
-      })
-
-      // 开始播放
-      this.player.on("s2j_onVideoPlay", () => {
-        const currentTime = this.player.j2s_getCurrentTime();
-        this.$bus.$emit("player_play", currentTime);
-      })
-
-      // 暂停播放
-      this.player.on("s2j_onVideoPause", () => {
-        this.$bus.$emit("player_pause");
-      })
-
-      // 拖拽监听
-      this.player.on("s2j_onVideoSeek", () => {
-        const currentTime = this.player.j2s_getCurrentTime();
-        this.$bus.$emit("player_drag_seek", currentTime);
-      })
-    },
-
-    // 卸载
-    destroyPlayer() {
-      if (this.player) {
-        this.player.destroy();
-        this.player = null;
-      }
-    }
   },
   watch: {
     visible(val) {
@@ -146,25 +63,14 @@ export default {
       this.$emit("change", val);
     }
   },
-  destroyed() {
-    this.destroyPlayer();
-  }
 };
 </script>
 
 <style scoped>
 
 .full {
-  //width: 100vh;
-  //height: 100vw;
-  //position: fixed;
-  //top: calc(50% - 50vw);
-  //left: calc(50% - 50vh);
+  /*开了后定位会失效*/
   //transition: transform 0.3s ease-in-out;
-  //transform: rotate(90deg);
-  //z-index: 99;
-  //background: #000000;
-  background: pink;
 }
 
 
@@ -177,29 +83,28 @@ export default {
   height: 100vw;
 }
 
-.full #player {
-  //position: fixed;
-  //z-index: 1;
-
+.player {
   width: 100vh;
   height: 100vw;
-  position: fixed;
+  position: absolute;
   top: calc(50% - 50vw);
   left: calc(50% - 50vh);
-  transition: transform 0.3s ease-in-out;
-  transform: rotate(90deg);
   z-index: 9;
   background: #000000;
 }
 
-.test {
-  color: #FFFFFF;
-  position: fixed;
-  top: 50%;
-  left: 0;
-  background: pink;
-  width: 100%;
+.full .control {
+  width: 100vh;
+  height: 100vw;
+  position: absolute;
+  top: calc(50% - 50vw);
+  left: calc(50% - 50vh);
+  transform: rotate(90deg);
   z-index: 99999;
 }
 
+.full .player {
+  transform: rotate(90deg);
+}
+
 </style>

+ 92 - 0
src/components/video-item/VideoItem.vue

@@ -0,0 +1,92 @@
+<script>
+import VideoInfo from "@/components/video-info/VideoInfo.vue";
+import ProgressLine from "@/components/progress/ProgressLine.vue";
+import VideoSetPopup from "@/components/set-popup/VideoSetPopup.vue";
+import PolyvPlayer from "@/components/video-container/PolyvPlayer.vue";
+
+export default {
+  name: "VideoItem",
+  components: {PolyvPlayer, VideoSetPopup, ProgressLine, VideoInfo},
+  data() {
+    return {
+      showSetPopup: false,
+      showVideoInfo: true,
+      fullScreen: false,
+    }
+  },
+  methods: {
+    // 拖拽时需要隐藏视频信息
+    handleDragLine(status) {
+      this.showVideoInfo = !status;
+    },
+
+    // 进入全屏
+    handleFullScreen() {
+      this.fullScreen = true;
+    }
+  }
+}
+</script>
+
+<template>
+  <div class="container">
+    <div class="header">
+      <div class="left"></div>
+      <div class="header-right">
+        <img src="@/assets/fenestrule.png" class="header-icon" />
+        <img src="@/assets/more.png" class="header-icon" @click="showSetPopup = true" />
+      </div>
+    </div>
+
+    <polyv-player v-model="fullScreen" />
+
+
+    <div class="footer" v-show="!fullScreen">
+      <video-info v-show="showVideoInfo" />
+      <progress-line :on-drag="handleDragLine" @full="handleFullScreen" />
+    </div>
+    <video-set-popup  v-model="showSetPopup" />
+  </div>
+</template>
+
+<style scoped>
+
+.container {
+  background: #000000;
+  height: 100vh;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+}
+
+.header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  box-sizing: border-box;
+  padding: 8px 16px;
+  //position: absolute;
+  //top: 0;
+  //left: 0;
+  //width: 100%;
+  //z-index: 999;
+}
+
+.header-right {
+  display: flex;
+  align-items: center;
+  column-gap: 4px;
+}
+
+.header-icon {
+  width: 28px;
+  height: 28px;
+}
+
+.footer {
+  width: 100%;
+  position: absolute;
+  bottom: 0;
+  z-index: 99;
+}
+</style>

+ 6 - 1
src/router/index.js

@@ -13,9 +13,14 @@ const routes = [
     component: () => import( '../views/live/LiveItem.vue')
   },
   {
-    path: '/',
+    path: '/VerticalLive',
     component: () => import( '../views/live/VerticalLive.vue')
   },
+  {
+    // path: '/feed',
+    path: '/',
+    component: () => import( '../views/feed/FeedList.vue')
+  },
 ]
 
 const router = new VueRouter({

+ 164 - 0
src/utils/Player.js

@@ -0,0 +1,164 @@
+export default class Player {
+    player =  null
+    playerId = null
+    vodPlayerJs = 'https://player.polyv.net/resp/vod-player/latest/player.js';
+    vid = '88083abbf5bcf1356e05d39666be527a_8';
+    isPlay = false;
+    url = null
+    isDrag = false;
+    // 回调方法
+    callbackMap = {}
+
+
+    constructor(url) {
+        this.playerId = `player_${Math.random().toString(36).substr(2, 15)}`;
+        this.url = url;
+    }
+
+    // 注册点播播放器
+    loadPlayerScript() {
+        return new Promise((resolve) => {
+            if (!window.polyvPlayer) {
+                const myScript = document.createElement('script');
+                myScript.setAttribute('src', this.vodPlayerJs);
+                myScript.onload = () => {
+                    resolve();
+                };
+                document.body.appendChild(myScript);
+            } else {
+                resolve();
+            }
+        })
+    }
+
+    //
+    loadPlayer() {
+        const polyvPlayer = window.polyvPlayer;
+        this.player  = polyvPlayer({
+            wrap: '#' + this.playerId,
+            vid: this.vid ,
+            url: this.url,
+            skinLocation: 0,
+            autoplay: true,
+            df: 3,
+            ban_seek: "off"
+        });
+        this.initPlayer();
+    }
+
+    // 初始化完成监听
+    initPlayer() {
+        this.player.on('s2j_onPlayerInitOver',() => {
+            // 获取视频总时长
+            const totalTime = this.player.j2s_getDuration();
+            console.log("totalTime", totalTime)
+            if(this.callbackMap["player_init_over"]) {
+                this.callbackMap["player_init_over"].forEach((callback) => {
+                    callback(totalTime);
+                })
+            }
+            // this.$bus.$emit("player_init_over", totalTime);
+        });
+
+        //初次播放触发
+        this.player.on("s2j_onPlayStart", () => {
+            // this.$bus.$emit("player_play_start");
+            if(this.callbackMap["player_play_start"]) {
+                this.callbackMap["player_play_start"].forEach((callback) => {
+                    callback();
+                })
+            }
+        })
+
+        // 开始播放
+        this.player.on("s2j_onVideoPlay", () => {
+            const currentTime = this.player.j2s_getCurrentTime();
+            if(this.isDrag && !this.isPlay) {
+                this.pause();
+                this.isDrag = false;
+            } else {
+                this.isPlay = true;
+            }
+
+            if(this.callbackMap["player_play"]) {
+                this.callbackMap["player_play"].forEach((callback) => {
+                    callback(currentTime);
+                })
+            }
+            // this.$bus.$emit("player_play", currentTime);
+        })
+
+        // 暂停播放
+        this.player.on("s2j_onVideoPause", () => {
+            // this.$bus.$emit("player_pause");
+            this.isPlay = false;
+            if(this.callbackMap["player_pause"]) {
+                this.callbackMap["player_pause"].forEach((callback) => {
+                    callback();
+                })
+            }
+        })
+
+        // 拖拽监听
+        this.player.on("s2j_onVideoSeek", () => {
+            const currentTime = this.player.j2s_getCurrentTime();
+            this.isDrag = true;
+            if(this.callbackMap["player_drag_seek"]) {
+                this.callbackMap["player_drag_seek"].forEach((callback) => {
+                    callback(currentTime);
+                })
+            }
+
+            if(this.callbackMap["player_play"]) {
+                this.callbackMap["player_play"].forEach((callback) => {
+                    callback(currentTime);
+                })
+            }
+            // this.$bus.$emit("player_drag_seek", currentTime);
+            // this.$bus.$emit("player_play", currentTime);
+        })
+    }
+
+    // 跳转某个时刻播放(秒)
+    handleSeekTo(number) {
+        this.player.j2s_seekVideo(number);
+    }
+
+    // 切换清晰度
+    handleChangeQuality(number) {
+        this.player.switchBitrate(number);
+    }
+
+    on(key, callback) {
+        if(!this.callbackMap[key]) {
+            this.callbackMap[key] = new Set();
+        }
+        this.callbackMap[key].add(callback);
+    }
+
+    off(key, callback) {
+        if(!this.callbackMap[key]) return;
+        this.callbackMap[key].delete(callback);
+    }
+
+    // 暂停
+    pause() {
+        if(!this.player) return;
+        this.player.j2s_pauseVideo();
+    }
+
+    // 播放
+    play() {
+        if(!this.player) return;
+        this.isPlay = true;
+        this.player.j2s_resumeVideo();
+    }
+
+    // 卸载
+    destroyPlayer() {
+        if (this.player) {
+            this.player.destroy();
+            this.player = null;
+        }
+    }
+}

+ 54 - 0
src/views/feed/FeedList.vue

@@ -0,0 +1,54 @@
+<script>
+import VideoItem from "@/views/video/VideoItem.vue";
+
+export default {
+  name: "FeedList",
+  components: {VideoItem},
+  provide: {
+
+  },
+  data() {
+    return {
+      currentIndex: 0,
+      list: [
+          "",
+          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/88b228db1397757896486535036/v.f42905.mp4",
+          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/b40735381397757895972901262/v.f42905.mp4",
+          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/58e22a191397757897006558193/v.f42905.mp4",
+          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/4678c0f91397757896159245507/v.f42905.mp4",
+          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/a52261541397757896812019138/v.f42905.mp4",
+      ],
+      touchable: true,
+    }
+  },
+  mounted() {
+    this.$bus.$on("change_fullscreen", (val) => {
+      this.touchable = val;
+    })
+  }
+}
+</script>
+
+<template>
+  <van-swipe
+      @change="e => currentIndex = e"
+      :autoplay="0"
+      vertical
+      :touchable="touchable"
+      :show-indicators="false"
+      :loop="true"
+      class="swiper">
+    <van-swipe-item v-for="(item, index) in list" :key="index">
+      <video-item :tab-index="index" :current-index="currentIndex" :url="item" />
+    </van-swipe-item>
+  </van-swipe>
+</template>
+
+<style scoped>
+
+.swiper {
+  width: 100vw;
+  height: 100vh;
+}
+
+</style>

+ 54 - 16
src/views/video/VideoItem.vue

@@ -3,17 +3,37 @@ import VideoInfo from "@/components/video-info/VideoInfo.vue";
 import ProgressLine from "@/components/progress/ProgressLine.vue";
 import VideoSetPopup from "@/components/set-popup/VideoSetPopup.vue";
 import PolyvPlayer from "@/components/video-container/PolyvPlayer.vue";
+import Player from "@/utils/Player";
 
 export default {
   name: "VideoItem",
   components: {PolyvPlayer, VideoSetPopup, ProgressLine, VideoInfo},
+  props: {
+    currentIndex: {
+      type: Number,
+      default: 0,
+    },
+    tabIndex: {
+      type: Number,
+      default: 0
+    },
+    url: {
+      type: String,
+      default: ""
+    }
+  },
   data() {
     return {
       showSetPopup: false,
       showVideoInfo: true,
       fullScreen: false,
+      playerInstance: {}
     }
   },
+  mounted() {
+    this.playerInstance = new Player(this.url);
+
+  },
   methods: {
     // 拖拽时需要隐藏视频信息
     handleDragLine(status) {
@@ -24,6 +44,27 @@ export default {
     handleFullScreen() {
       this.fullScreen = true;
     }
+  },
+  beforeDestroy() {
+    this.playerInstance?.destroyPlayer();
+  },
+  watch: {
+    fullScreen: {
+      handler(val) {
+        this.$bus.$emit("change_fullscreen", !val)
+      }
+    },
+    currentIndex: {
+      handler(index) {
+        if(index === this.tabIndex) {
+          this.playerInstance.play();
+        } else {
+          this.playerInstance.pause();
+        }
+      },
+      immediate: false,
+      deep: true,
+    }
   }
 }
 </script>
@@ -37,15 +78,21 @@ export default {
         <img src="@/assets/more.png" class="header-icon" @click="showSetPopup = true" />
       </div>
     </div>
-    <div class="video-container1">
-      <polyv-player v-model="fullScreen" />
-    </div>
 
-    <div class="footer">
+    <polyv-player
+        :playerInstance="playerInstance"
+        v-model="fullScreen"
+        ref="player" />
+
+
+    <div class="footer" v-show="!fullScreen">
       <video-info v-show="showVideoInfo" />
-      <progress-line :on-drag="handleDragLine" @full="handleFullScreen" />
+      <progress-line
+          :playerInstance="playerInstance"
+          :on-drag="handleDragLine"
+          @full="handleFullScreen" />
     </div>
-    <video-set-popup  v-model="showSetPopup" />
+    <video-set-popup :playerInstance="playerInstance"  v-model="showSetPopup" />
   </div>
 </template>
 
@@ -87,15 +134,6 @@ export default {
   width: 100%;
   position: absolute;
   bottom: 0;
-}
-
-.video-container1 {
-  //margin-top: 250px;
-  //position: fixed;
-  //top: calc(50% - 50vw);
-  //left: calc(50% - 50vh);
-  //width: 100vh;
-  //height: 100vw;
-  //transition: transform 0.3s ease-in-out;
+  z-index: 99;
 }
 </style>