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