You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
226 lines
16 KiB
226 lines
16 KiB
4 years ago
|
<template>
|
||
|
<view class="audio-warp">
|
||
|
<view class="cover-warp" :class="{ hasbg: !poster }">
|
||
|
<image :src="poster" v-if="poster" class="cover-img"></image>
|
||
|
<view class="play-btn" :class="{ pause: play }" @click="handleBtnClick"></view>
|
||
|
</view>
|
||
|
<view class="audio-con">
|
||
|
<view class="info">
|
||
|
<text class="audio-title am-text-eill">{{ name }}</text>
|
||
|
<text class="audio-author am-text-eill">{{ author }}</text>
|
||
|
</view>
|
||
|
<view class="audio-time">{{ audioTimeUpdate }}</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
/**
|
||
|
* luch-audio 0.0.1
|
||
|
* @module luch-audio
|
||
|
* @Author lu-ch
|
||
|
* @Date 2019-06-11
|
||
|
* @Email webwork.s@qq.com
|
||
|
* @description 音频播放组件,使用了createInnerAudioContext
|
||
|
*/
|
||
|
/**
|
||
|
* Props itemsProps
|
||
|
* @prop {Boolean} play - 是否播放,双向绑定,绑定时需使用.sync 如果为true 则播放,为false 则暂停
|
||
|
* ... 其他api同文档 (https://uniapp.dcloud.io/api/media/audio-context?id=createinneraudiocontext)
|
||
|
*/
|
||
|
/**
|
||
|
* 将秒转换为 分:秒
|
||
|
* @param {Number} s - 秒数
|
||
|
*/
|
||
|
function sToHs(s) {
|
||
|
//计算分钟
|
||
|
//算法:将秒数除以60,然后下舍入,既得到分钟数
|
||
|
let h;
|
||
|
h = Math.floor(s / 60);
|
||
|
//计算秒
|
||
|
//算法:取得秒%60的余数,既得到秒数
|
||
|
s = s % 60;
|
||
|
//将变量转换为字符串
|
||
|
h += '';
|
||
|
s += '';
|
||
|
//如果只有一位数,前面增加一个0
|
||
|
h = (h.length === 1) ? '0' + h : h;
|
||
|
s = (s.length === 1) ? '0' + s : s;
|
||
|
return h + ':' + s;
|
||
|
}
|
||
|
export default {
|
||
|
name: 'ComAudio',
|
||
|
props: {
|
||
|
play: {
|
||
|
type: Boolean,
|
||
|
required: true
|
||
|
},
|
||
|
src: {
|
||
|
type: String
|
||
|
},
|
||
|
poster: {
|
||
|
type: String,
|
||
|
default: ''
|
||
|
},
|
||
|
name: {
|
||
|
type: String,
|
||
|
default: '未知音频'
|
||
|
},
|
||
|
author: {
|
||
|
type: String,
|
||
|
default: '未知作者'
|
||
|
},
|
||
|
autoplay: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
loop: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
obeyMuteSwitch: {
|
||
|
type: Boolean,
|
||
|
default: true
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
audioTimeUpdate: '00:00',
|
||
|
innerAudioContext: ''
|
||
|
};
|
||
|
},
|
||
|
methods: {
|
||
|
audioPlay() {
|
||
|
this.$emit('update:play', true);
|
||
|
},
|
||
|
audioPause() {
|
||
|
this.$emit('update:play', false);
|
||
|
},
|
||
|
handleBtnClick() {
|
||
|
this.$emit('update:play', !this.play);
|
||
|
},
|
||
|
contextInit() {
|
||
|
console.log('创建');
|
||
|
let that = this;
|
||
|
that.$emit('update:play', false);
|
||
|
let innerAudioContext = uni.createInnerAudioContext();
|
||
|
innerAudioContext.autoplay = that.autoplay;
|
||
|
innerAudioContext.src = that.src;
|
||
|
innerAudioContext.loop = that.loop;
|
||
|
innerAudioContext.obeyMuteSwitch = that.obeyMuteSwitch;
|
||
|
innerAudioContext.onPlay(function() {
|
||
|
that.audioTimeUpdate = sToHs(Math.floor(innerAudioContext.currentTime));
|
||
|
that.audioPlay();
|
||
|
});
|
||
|
innerAudioContext.onPause(function() {
|
||
|
that.audioPause();
|
||
|
});
|
||
|
innerAudioContext.onEnded(function() {
|
||
|
that.audioPause();
|
||
|
});
|
||
|
innerAudioContext.onTimeUpdate(function() {
|
||
|
that.audioTimeUpdate = sToHs(Math.floor(innerAudioContext.currentTime));
|
||
|
});
|
||
|
innerAudioContext.onError(err => {
|
||
|
console.log(err);
|
||
|
});
|
||
|
this.innerAudioContext = innerAudioContext;
|
||
|
}
|
||
|
},
|
||
|
watch: {
|
||
|
play(n) {
|
||
|
if (n) {
|
||
|
this.innerAudioContext.play();
|
||
|
} else {
|
||
|
this.innerAudioContext.pause();
|
||
|
}
|
||
|
},
|
||
|
src() {
|
||
|
this.innerAudioContext.destroy();
|
||
|
this.contextInit();
|
||
|
}
|
||
|
},
|
||
|
created() {
|
||
|
this.contextInit();
|
||
|
},
|
||
|
beforeDestroy() {
|
||
|
this.innerAudioContext.destroy();
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.am-text-eill {
|
||
|
/*超出省略号*/
|
||
|
overflow: hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
white-space: nowrap;
|
||
|
}
|
||
|
|
||
|
.audio-warp {
|
||
|
display: flex;
|
||
|
overflow: hidden;
|
||
|
height: 67px;
|
||
|
border-radius: 3px;
|
||
|
border: 1px solid #e0e0e0;
|
||
|
}
|
||
|
.cover-warp {
|
||
|
position: relative;
|
||
|
flex-shrink: 0;
|
||
|
width: 65px;
|
||
|
height: 100%;
|
||
|
&.hasbg {
|
||
|
background-color: #e6e6e6;
|
||
|
}
|
||
|
.cover-img {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
}
|
||
|
.play-btn {
|
||
|
position: absolute;
|
||
|
left: 50%;
|
||
|
top: 50%;
|
||
|
width: 24px;
|
||
|
height: 24px;
|
||
|
transform: translateX(-50%) translateY(-50%);
|
||
|
border-radius: 50%;
|
||
|
background-size: 100% 100%;
|
||
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGymlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPS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v1cscdd+iJ/wMcR7yRUnIdKm3Ab5EoLxaLMTIyUvPKA7FrGBsb0xMfQyxfuuRS4GeBozLBs88+SzAYNDTAWuD8+fOcO3dOT/wZYFhPqKfAHsQ5MYvnnnuOq1evFjTAWmBiYoJr16TLnQlhJJGip8AvAvXah4FAgAsXLhQzvh1PMplkdHSUeDwus27cCbxPVk+mwGEklpVIJML4+HhJg9zprK+vMz4+btIRPwxkHaplCvySrPbk5CSxWMWvGLadixcvsri4KNuadCDOy1vQKnAIcWO2hYWFBV566aXyjLAGGB8fl+0LQZyVHZkPtAq8D4kp/oUXXijPyGqElZUV/H6/TNQDvCvzQea9cDfwbm2NxcVFFhcXSxqQyWSirq6uZOuzERRFQVEUIpEIyWSy6Hampqbo7OxMqKqqXRM/CjzB5pVppgLfqm0klUrl2h8ZprW1FZ/PVzUFqqpasnEjGAwyNzdnam9v14pei7jbnoStCvyYtmQ0GmVmZqboQaSxWq3YbLaS2ykEs7l0p4sLFy7Q3t6eArRr4l1sKjC9Bg4gtLqFS5culTwIoKSptJ19zs/PEw6HZZc470//kFbgexFn3y3oLKR
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.audio-con {
|
||
|
position: relative;
|
||
|
flex: 1;
|
||
|
display: flex;
|
||
|
width: 0;
|
||
|
padding: 0 15px;
|
||
|
align-items: center;
|
||
|
background-color: #fcfcfc;
|
||
|
.info {
|
||
|
width: 100%;
|
||
|
}
|
||
|
.audio-title {
|
||
|
display: block;
|
||
|
padding-bottom: 7px;
|
||
|
padding-right: 25px;
|
||
|
font-size: 14px;
|
||
|
color: #353535;
|
||
|
}
|
||
|
.audio-author {
|
||
|
display: block;
|
||
|
font-size: 12px;
|
||
|
color: #888888;
|
||
|
}
|
||
|
.audio-time {
|
||
|
position: absolute;
|
||
|
right: 15px;
|
||
|
top: 6px;
|
||
|
font-size: 13px;
|
||
|
color: #9d9d9d;
|
||
|
}
|
||
|
}
|
||
|
</style>
|