Compare commits
3 Commits
5d8733f9a6
...
ca8894d99a
| Author | SHA1 | Date |
|---|---|---|
|
|
ca8894d99a | |
|
|
b0d2ffbc1f | |
|
|
a15069b782 |
|
|
@ -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.ba830df5.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.987265b5.js"></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="h-full w-full">
|
<view class="h-full w-full">
|
||||||
<div ref="muiPlayer" style="width: 100%; height: 100%"></div>
|
<div ref="muiPlayer"></div>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -48,7 +48,11 @@ 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',
|
||||||
|
|
@ -71,9 +75,10 @@ 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) => {
|
||||||
//播放事件
|
//播放事件
|
||||||
|
|
@ -89,6 +94,4 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss"></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue