Compare commits

..

No commits in common. "ca8894d99a6499520cf3dfb2ea81c4f4af084375" and "5d8733f9a69375143bd11baa38e83f99998bd051" have entirely different histories.

4 changed files with 12 additions and 15 deletions

View File

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.987265b5.js"></script></body></html> document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel="stylesheet" href="https://lcny.sk797.cn/h5/static/index.97465e7b.css"></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id="app"></div><script src="https://lcny.sk797.cn/h5/static/js/chunk-vendors.959091ef.js"></script><script src="https://lcny.sk797.cn/h5/static/js/index.ba830df5.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="h-full w-full"> <view class="h-full w-full">
<div ref="muiPlayer"></div> <div ref="muiPlayer" style="width: 100%; height: 100%"></div>
</view> </view>
</template> </template>
<script> <script>
@ -48,11 +48,7 @@ export default {
autoplay: true, autoplay: true,
muted: true, muted: true,
parse: parse, parse: parse,
pageHead: false, pageHead:false,
width: '100%',
height: '100%',
autoFit:false,
objectFit: 'contain',
videoAttribute: [ videoAttribute: [
{ {
attrKey: 'webkit-playsinline', attrKey: 'webkit-playsinline',
@ -75,10 +71,9 @@ export default {
], ],
}, },
}) })
let _video = this.mp.video()
this.$nextTick(() => { this.$nextTick(() => {
this.mp.on('ready', (event) => { this.mp.on('ready', (event) => {
let _video = this.mp.video()
_video.play() _video.play()
_video.addEventListener('play', (e) => { _video.addEventListener('play', (e) => {
// //
@ -94,4 +89,6 @@ export default {
}, },
} }
</script> </script>
<style lang="scss"></style> <style lang="scss">
</style>