skyblued 2 年之前
父節點
當前提交
879771ed33
共有 4 個文件被更改,包括 4 次插入47 次删除
  1. 0 0
      public/EasyPlayer-element.min.js
  2. 0 0
      public/EasyPlayer-lib.min.js
  3. 二進制
      public/EasyPlayer.wasm
  4. 4 47
      src/views/coursewarePlay/index.tsx

文件差異過大導致無法顯示
+ 0 - 0
public/EasyPlayer-element.min.js


文件差異過大導致無法顯示
+ 0 - 0
public/EasyPlayer-lib.min.js


二進制
public/EasyPlayer.wasm


+ 4 - 47
src/views/coursewarePlay/index.tsx

@@ -427,50 +427,7 @@ export default defineComponent({
                     >
                       {m.type === 'VIDEO' ? (
                         <>
-                          <easy-player
-                            video-url={m.content}
-                            isH265={true}
-                            muted={m.muted}
-                            preload="auto"
-                            class="player"
-                            data-vid={m.id}
-                            src={m.content}
-                            loop={m.loop}
-                            autoplay={m.autoPlay}
-                            onLoadedmetadata={(e: Event) => {
-                              console.log('23')
-                              const videoEle = e.target as unknown as HTMLVideoElement
-                              m.currentTime = videoEle.currentTime
-                              m.duration = videoEle.duration
-                              m.videoEle = videoEle
-                              m.isprepare = true
-                            }}
-                            onTimeupdate={(e: Event) => {
-                              if (!m.isprepare) return
-                              const videoEle = e.target as unknown as HTMLVideoElement
-                              m.currentTime = videoEle.currentTime
-                              m.progress = Number(
-                                ((videoEle.currentTime / m.duration) * 100).toFixed(1)
-                              )
-                            }}
-                            play={() => {
-                              console.log('播放')
-                            }}
-                            onPlay={() => {
-                              // 播放
-                              m.paused = false
-                              console.log('播放')
-                              setModelOpen()
-                              m.muted = false
-                            }}
-                            onPause={() => {
-                              //暂停
-                              clearTimeout(activeData.timer)
-                              m.paused = true
-                            }}
-                            onEnded={() => handleEnded(m)}
-                          ></easy-player>
-                          {/* <video
+                          <video
                             playsinline="false"
                             muted={m.muted}
                             preload="auto"
@@ -509,12 +466,12 @@ export default defineComponent({
                             onEnded={() => handleEnded(m)}
                           >
                             <source src={m.content} type="video/mp4" />
-                          </video> */}
-                          {/* {m.muted && (
+                          </video>
+                          {m.muted && (
                             <div class={styles.loadWrap}>
                               <Vue3Lottie animationData={playLoadData}></Vue3Lottie>
                             </div>
-                          )} */}
+                          )}
                           <Transition name="bottom">
                             {activeData.model && (
                               <div class={[styles.bottomFixedContainer]}>

部分文件因文件數量過多而無法顯示