瀏覽代碼

测试是否支持h265

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

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


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


+ 7 - 2
src/views/coursewarePlay/index.tsx

@@ -429,6 +429,7 @@ export default defineComponent({
                         <>
                           <easy-player
                             video-url={m.content}
+                            isH265={true}
                             muted={m.muted}
                             preload="auto"
                             class="player"
@@ -437,6 +438,7 @@ export default defineComponent({
                             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
@@ -451,6 +453,9 @@ export default defineComponent({
                                 ((videoEle.currentTime / m.duration) * 100).toFixed(1)
                               )
                             }}
+                            play={() => {
+                              console.log('播放')
+                            }}
                             onPlay={() => {
                               // 播放
                               m.paused = false
@@ -505,11 +510,11 @@ export default defineComponent({
                           >
                             <source src={m.content} type="video/mp4" />
                           </video> */}
-                          {m.muted && (
+                          {/* {m.muted && (
                             <div class={styles.loadWrap}>
                               <Vue3Lottie animationData={playLoadData}></Vue3Lottie>
                             </div>
-                          )}
+                          )} */}
                           <Transition name="bottom">
                             {activeData.model && (
                               <div class={[styles.bottomFixedContainer]}>

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