This commit is contained in:
Gdpao 2020-08-04 23:13:28 +08:00
parent c035566fe4
commit 0a2441b1a9

View File

@ -4,7 +4,7 @@
<view v-if="type" id="video_mp4"> <view v-if="type" id="video_mp4">
<view class="page-body"> <view class="page-body">
<view class="page-section"> <view class="page-section">
<video id="myVideo" enable-progress-gesture="false" :src=" 'https://' + vide0_url" autoplay controls="false" @error="videoErrorCallback" <video id="myVideo" enable-progress-gesture="false" :src=" 'https://' + vide0_url" autoplay controls="false" @error="videoErrorCallback" @timeupdate="timeupdate"
enable-danmu danmu-btn></video> enable-danmu danmu-btn></video>
</view> </view>
</view> </view>
@ -49,7 +49,7 @@
export default { export default {
data() { data() {
return { return {
remaining: 11, remaining: 7,
type: true, type: true,
banner: false, banner: false,
protocol: false, protocol: false,
@ -176,6 +176,9 @@
videoErrorCallback: function(e) { videoErrorCallback: function(e) {
console.log('视频错误信息:',e); console.log('视频错误信息:',e);
}, },
timeupdate(e) {
console.log(e);
},
getRandomColor: function() { getRandomColor: function() {
const rgb = [] const rgb = []
for (let i = 0; i < 3; ++i) { for (let i = 0; i < 3; ++i) {