前言
上一篇简要阐述了H5基于wx-JS-SDK实现音频录制功能,本篇梳理一下音频播放列表组件,对于技术本身组件的实现度并不复杂,但核心就在于考虑组件性能以及逻辑的高聚合。
DEMO
图片演示了自上而下的点击播放效果:
需求分析
- 点击播放,播放当前,并清除之前状态;
- 正常对应播放、暂停状态;
- 控制音频组件UI展示样式;
思路及实现方式
-
思路
- - 定义参数,组件接收音频资源信息并制定UI样式;
- - 每次点击时,通过监听当前播放索引的变化,已达到控制播放状态的作用;
- - 组件内封装的应是单项音频而不是整个列表,以便于更灵活的使用;
- 复制代码
-
实现方式
- 基于render,性能更优;当然render除了虚拟dom这一性能优势,其实更适用于代码冗长繁琐且重复率较高的场景。
- 复制代码
组件分析
Props
- 音频长度UI配置 - length;
- 限制音频UI展示总长度 - totalLength;
- 音频资源链接 - audioUrl;
- 当前点击索引(用于与index配合控制icon的展示) - isCtrlIcon;
- 当前索引(用于与isCtrlIc配合控制icon的展示) - index;
- 控制类方法,用于抛出当前播放索引值- stopIconPlay;
Data
- 组建内部用于展示音频状态- isPlay;
Watch
- 监听isCtrlIcon改变isPlay;
Render
- 聚合UI模板,控制单个音频展示长度;
代码层
-
父组件引用
- <template>
- <div class="wrap" id="wrap">
- <div class="audio-list" v-for="(item, index) in listData" :key="index">
- <audioPlan
- :length="item.times"
- :isCtrlIcon="isCtrlIcon"
- :index="index"
- :stopIconPlay="stopIconPlay"
- :audioUrl="item.audio_url"
- />
- </div>
- </div>
- </template>
- <script>
- import audioPlan from './audioPlan/audioPlan'
- require('es6-promise').polyfill()
- export default {
- data () {
- return {
- isCtrlIcon: 0,
- listData: [
- {
- times: 5,
- audio_url: ''
- },
- {
- times: 10,
- audio_url: ''
- }
- ]
- }
- },
- methods: {
- stopIconPlay (e) {
- // change icon play
- this.isCtrlIcon = e
- }
- },
- components: {
- audioPlan
- }
- }
- </script>
- <style scoped>
- /* @import 引入公共参数配置 */
- .wrap{
- width: 100%;
- height: 100%;
- max-width: 750px;
- margin: 0 auto;
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- position: relative;
- background: url('data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wEEEAAWABYAFgAWABcAFgAZABwAHAAZACMAJQAhACUAIwAzAC8AKwArAC8AMwBNADcAOwA3ADsANwBNAHUASQBWAEkASQBWAEkAdQBoAH4AZgBfAGYAfgBoALoAkgCCAIIAkgC6ANcAtQCrALUA1wEFAOkA6QEFAUgBOAFIAa0BrQJBEQAWABYAFgAWABcAFgAZABwAHAAZACMAJQAhACUAIwAzAC8AKwArAC8AMwBNADcAOwA3ADsANwBNAHUASQBWAEkASQBWAEkAdQBoAH4AZgBfAGYAfgBoALoAkgCCAIIAkgC6ANcAtQCrALUA1wEFAOkA6QEFAUgBOAFIAa0BrQJB/8IAEQgFQwLuAwEiAAIRAQMRAf/EABoAAQEBAQEBAQAAAAAAAAAAAAABAgMEBQb/2gAIAQEAAAAA/PiCkWUgAAAAAA126dPTv5rMpAopSlU8dgRYssssAWACxKAAG+m+3LEzoAUGpQqvGUixZUsqWAAAAAAW73nK6CUUDUopfLEWazQSyyoWAAAAAB0c9bWgKAFoPMsEGs1AAAAAAsAFjbRVAFCylPMUkqazRBUAAAAAADVWrZQFAUXzRZZSFlJYolQFgAsAADTSqsoUCwsrzaSKC5KlRSBUALAAAC2qtoBRYVLOOVSiUiosCxUAAAAATYrRVBRQWPPZFSpYLYhUWLFgAACwAtVaGgUUFjzhUJQlWJZbCAAAAAC1aoNKBVBPOBKJZrNsJQJYAAAAAtVaBqhbLKljzooWLBLKipYAWAAAAFtpQW1ZVAPNSSgBLKQFlQAAAABpVpYNUpQVfJZLYuaWQogsFQAAAASrS2gFtNAqvLAWJRKJRKBKiwAAABotUAaaUNK8YTULCWUgsssssWBUAAAGi2aAFtbBrTwrBZZZKJbmypSAogSgWABaVaAW02Wt3wQWFimWoRQQspFILACWwFqqoBbS7VvV+asLBFCW5qFJULKgBYAALaWgFtLd261v5cJagsJQJRKhY1moWAEoA0WlAW2q3u610+PUALAliqguaixUNZAAALS1QDa1b2ut7+MILmrmgJbEKLkpGpLLACwBatoBdW1b16Xe/h1FhbiqQASxQhUFQALAFtVQF1dWr1663r4NlQvXPNYlLEthLFlQ1IFQCwBKtaoBdXWtV1663fgkWa73HPEtiUACWCwBYsLABKW20BdXW7q9uutX8/Kh6Npy5wCaiyUAlllhYsWAABo1SiXTW9616db0/OWVNb6a7+bjiak1JQlSkahFluVlSosAAtW0o01re9+jpu6/NAl69t+Xnmiy5VLc0TUlEsWLBUWLASi1apbbd79HXp00/NSgu5zALLCUJUpFSoqUIsWAAtLo0utdPRvr03fzFAmsliwsqBYlsEKSiCywtiCwC0t1bd9OvTr03r81LKJKVLCoRbBKJRKgsArcylgLAqtt61rp069t384SpRKgAssWWBFQFiypY1tMyWAAFt3rWunTp16dPziUCVKiyaipKSyksqVKiyw1dBjNgsABq71rfXp067/PpQEqLFzSVKsAJY1JSBrYExAWAAutb116dN9PhgAAlglqAFksoiks1sBJMgAANb306dd7+MJQAQXOs0JQslE1JZUutCwGZkAABrfTp03v5Uq5qWUQmoFiW5pKsuaAl3VgBMyAAANdOm+m/miVKACCpUsEoAlsmtgAJiAAAGunTprwgiyksqUEWAWBYihbosAMyQAAA30308YCUEoM6gqS1JqKkKE1dBYDKSFgWAWLrrvzAShLKIogpJpEtgJrNXVBerHOIkWAABre+FEoAQUZqkAllJUs1mruwdrHHNkZssABYNdOYAJQJSUllRKFiwllLdDXRXDJMgAAsGvX5sgAAAJYWFSxFsAXVLvWuXJWIpLACwF+heHmAAASgIsWWFlQsI1q5uqxLMBYsAAD6eXPywAlABKRc6QCaZq5WxbUUzmpZQgAEr7HPLPigAgoAIqCWxc2ahC1RZmUJZUWAAX7nPGGPCAAWSxZZYqBNQlSgUtlwWIFlQWAD9HxxzzOXjACUBFSwLKlQBKJqpE1IsssLLBYBf1XDhz55eXgAAAlAEFJUsAlrKoUgsqLcgD9fy8/HnjM8EAEoJQAQsVFgCUudQRYspBUSg/X55efjzzOHlCUJQEssqVAWLAms0iygSosVBZYD9e5efjz5x84BKAAEqUJUsFgBYIVCiays1lYP2F5efjxxl5OIJQEolAQWFgLBZLFLJZZSakFSyo/Yznx48OeHHygBKASpZUURZUSgLmiUSiBSLA/YZxx5ceWJPCAEoALACWAsBNQAFgSyxYssX9ScuXDniX54SiUCUEoAllipUFRcmpLLKgVLCk/SavPly5YmvDkAAAJQlCLLCwBKsSli5sVKSzWbPv6uefPniXx4AAABKAIsCkLBYE1JRNZssFms37dsxz5w8eACUJQCVKlEqWLKgXJqFRYEqVZCvsWzOMZXxZAAAAAlCWVFRUsShKAJZYsqPr1c4zJfDAEoAAACUJSKSpZUCs0Iq5WF+jupzRnxhKAAACVKSypZZYssLLLCUllEsspfdprORy84gsEoXNAAlEqUipYUkqWxZNRKlEr2bqIebBAAsAABFJQlgudQRrNVBKubFIr16tQnkIBUAAAACUJYssWAFkolLEsufbbQ48YAFgAEpKAEolQUQqVlQi2SprN9loPGCKgJQAAEoARUsABZLNZssazSPconHkgLAAsABKALBFIsJUqwllJQsmvZVZz5gIWAAAAAAAEFZ1AsSllk0zZfbS58gAEWAAAASpUssoQmkmouaWCUTUPddWeLIRQgAAogAAiiWBYCoWJpJZVj6O7z8WQIBRAABKWShKBKlJYozqFQCKj6zz+RYCUAgAAAABKEoJYsVALAE+j5MAAgUgAAACpKllllJQIsWWAWA0AAAIsAFgEoSgBKASkABYsNAAAAAglAAAAABKQqBYsSzYABCkUIAAsAEoCUEoJYC5ompOkAIFAECwEoAAACWVFgsEouaWNAAAAAgAAAACUlSxUCaixYDQAAAAQsAAShFJc6ABKJNJc6RYs0AAAWAECwAAAASkpLLKllQRqNBYAigACLFgABKJQEoAiiCxK1ZYAAAAEAAAAEoAlBKhYWWXUsFgAAAACAAASpQSyygEFk1DcAsAAAAAEAAALEsqWUJUTSWDQAAsAAIKAQAAAABKJUVFzqgWAWABFAICwAAAEqUAJSUZ6QAAFgAAIpAAAAJSwBLKJYrUsqLALAAACCk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ESRGZ6AACAACWhJEmZn1AACAACWhJmTOefuAACAAEtVGZiZ5c/pF9HLmABAAItpJnGMcef1jr6MefIAEABDS2TOefHz8vtl7a8wABAAQtDPPh5eP3RUAACAtkAoxx83n+0AAACC9GcAFOfDzfUAAAAjW6nOACzlx9gAAADegziACzn2gAAAHSgziACqQAAALukM4AFoQAAANbZzqucAFUIAAAN6zNMZABy6aogAAA3pOcAA8vXpsIAAAXcwQAHyfb26UIAAAAQAPzf1fT23AQAAAAgB+c+j6+vQBAAAAEAPi+n09ugBAAAACAfL6+nruwAgAAACA+fv173IAIAAAAQeLp6t3MACAAAAEPN19G5hAAQAAABGevXXLIgAQAAAA69NvKSpYAQAAAB7em/DzEqAAgAAAPtb+Z5wRUACAAAB9j53IAlQAIAAANkAJUsAEAAAbEAJUABAAANhAAIAEAABsEAAQAQAANgIACAAgABsAgAlQAIAA2AIAJRABAAbABAAIAEADYASwASoAEAGwACAEpAAgDYAAgAEACAbAACACVAAgNgAAgAlQAEGwAAEAJSABDYAABABKgARsAAAQASpYANwAAAIASkAGrAAAAgAEsB6ORAAAAgAlQNe7v8sQAAAEAAh6va+WCAAABABKjft7/LAgAAAQABOvs8ICAAAAgBKjvzAEAAACACU0AIAAACAAaAEsAAABACXV0wAIAAAEAHTZjIAgAAAQA9BGMgEAAAAgHoEmIAIAAAEA9AjOYASwAAAIHoMNM4ACAAAAg7VhtnAAIAAABHTVlYiAAIAAAE3dmIIAAgAAAnRWQEABLAAADZABAAEAAAbJYAQABAAANiWACAAIAAGwEAIAAgAA2AQAgACAAGwCABAAIAA2AJYAQABAAbACABAAEADYACAEAAQAdIAAQAgAEANlgEqVACAAQB//xAAqEAACAgIBAwMDBAMAAAAAAAABEQAhAmBBECAxElBwMFFhIkCQsAOAoP/aAAgBAQABPwH30RwlCEs604DHMsn0f8eVfIHPaPjjn5BuXLl6zfS1LlrpcuW5escdqLluc6ouvHVT7RRXFcV6mOnE4i6HoriuK4rgCeq8dlTmIOU5TgAuDUKldKU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0xNPiVYQ6sriUJWEOrxKEqQIdWkoSpAgdXjmUOZU4gTHV45lawJiPB1ZWVrAmJd56srAhXMvip1hRhps+JQVmpf5vWVpH40Fs4mvruq4OK9bq/wDTp6f5yzV1b6ry/wCvX7K6DjKdbWrZwE0tApy8vXaCEHJ11XDNK+SZOupfDK2ydfp3/h/7AidYCwA3Tr0idekTr06xeZmGydQOzt+sNl6gg7JAxsueqGDsuIq9YMX/AAx//9k=') no-repeat;
- background-size: cover;
- }
- .audio-list{
- padding: 0.15rem;
- }
- </style>
- 复制代码
-
音频组件
- <script>
- export default {
- props: {
- length: { // audio length
- type: Number,
- required: true
- },
- totalLength: { // total length
- type: Number,
- default: 15
- },
- audioUrl: { // src
- type: String,
- default: ''
- },
- stopIconPlay: { // stop fn
- type: Function,
- default: () => {}
- },
- isCtrlIcon: { // ctrl down play
- type: Number,
- default: 0
- },
- index: { // audio index
- type: Number,
- default: 0
- }
- },
- watch: {
- isCtrlIcon (val, old) { // clear before state and set ing state
- if (val === this.index) {
- this.isPlay = true
- } else {
- this.isPlay = false
- }
- }
- },
- data () {
- return {
- isPlay: false // ctrl icon state
- }
- },
- methods: {
- playAudio () {
- // play
- this.stopAllAudio()
- if (this.$refs.vmVideo.paused) {
- this.isPlay = true
- this.stopIconPlay && this.stopIconPlay(this.index)
- this.$refs.vmVideo.play()
- this.$refs.vmVideo.addEventListener('ended', () => {
- this.isPlay = false
- }, false)
- } else {
- this.isPlay = false
- this.$refs.vmVideo.pause()
- }
- },
- stopAllAudio (e) {
- // clear all state & stop
- const audioAll = document.getElementsByTagName('audio')
- for (let i = 0; i < audioAll.length; i++) {
- audioAll[i].pause()
- audioAll[i].currentTime = 0
- }
- }
- },
- render: function (createElement) {
- return createElement(
- 'div',
- {
- 'class': {
- 'audio-wrap': true
- },
- 'attrs': {
- style: `width: ${1.5 + (this.length / this.totalLength).toFixed(2) * 2}rem`
- },
- on: {
- click: this.playAudio
- }
- },
- [
- createElement('div',
- {
- 'class': {
- 'triangle': true
- }
- },
- ),
- createElement('p',
- {
- 'class': {
- 'audio-icon': true,
- 'play-icon': this.isPlay,
- 'close-icon': !this.isPlay
- }
- },
- ),
- createElement('p',
- {
- 'class': {
- 'time-tag': true
- }
- },
- [this.length, '”']
- ),
- createElement('audio',
- {
- attrs: {
- src: this.audioUrl
- },
- ref: 'vmVideo'
- },
- )
- ]
- )
- }
- }
- </script>
- <style scoped lang="css">
- .audio-wrap{
- height: 0.6rem;
- min-width: 0.5rem;
- background: #d03b32;
- border-radius: 0.1rem;
- display: flex;
- align-items: center;
- box-shadow: 0.05rem 0.1rem 0.5rem #eaa98e;
- position: relative;
- }
- .triangle{
- background: #d03b32;
- width: 0.15rem;
- height: 0.15rem;
- border-radius: 0.05rem;
- transform: translateX(-0.07rem) rotate(45deg);
- }
- .audio-icon{
- width: 0.19rem;
- height: 0.31rem;
- }
- .play-icon{
- background: url('data:image/gif;base64,R0lGODlhEwAfAIABAP+vqgAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veG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YSbf85lah1JDeG6oWWKXuCJiu/FWi75RMVADs=') no-repeat;
- background-size: cover;
- }
- .close-icon{
- background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAfCAYAAAAFkva3AAACQklEQVRIiZ2VTUhUURTHf12HitSMrE1C0QdNNJDSh0aLSqhNkS2qXVnbNkIREUgNI9VGihYt3FZCC8FoVZu+NoJa2lAvmIX0BUGRpYwFQWaL653+c2Cevs7q/zvnvP+77737zl0w03eXBHEe6AI+AweAKBcVSkWXwMgBV4BFwGqgF0jZhvnGH2BMuAk4879mAKcNd2Yz6RXzMVsKbAcWSu4JcEu4Djg7l9kG/CMNAwPG8CLwS1ebzaRr4szagLD8bUCH1D4Cd4SXAcfizJ4avgDUCN809eNxZiNAv3A90C6cB14J78lm0nUO/z7a8I+j0WW43fB90VVAqwMezBaeh+XK3fPCLcBK4UfGvNkBuyVxzjT0G24W/QKYEW50+M9fSgBrhAeMWYvoIv7LhljvgHvmgh2iR01trWE1W+WA16Zhnehx/D8ZYrnp/Sq61pkEwBLDRdHVxITj304P8dNwregfc5ltMrl3ousp39jfTK8upOiAw6ZhUHSTqb013CD6kwN2SSIPvBfeaS4eEl2Nn7ghxhx+RoXoNhcfjTFrpPwV5FPAQWA//pAYkeIWyh9zEPgivM/caDgF/Mb/nzYuGb5t+JDoaeBxpRG0FTgiPG7MNuNHeohnuagwWclsr+FuYEq4w9R7ofJwfAh8n9WjwA2pNQAnhSeAPjCHqMQb/D+6Eb9d9AC5DCwW7slFhak4s3DHIZNrBU4JTwLXAiQ9hHsMX81FhdKgSGJWRfl4eglc14YkZtNAJ/79fQBO4PdoKf4CmnB0YYzWe5UAAAAASUVORK5CYII=') no-repeat;
- background-size: cover;
- }
- .time-tag{
- font-size: 0.28rem;
- color: #ffafaa;
- position: absolute;
- right: 0.1rem;
- top: 0;
- line-height: 0.6rem;
- }
- </style>
- 复制代码
结语:
本文主要为了与上篇录制音频形成一个小的闭环,简要梳理从录制到播放的逻辑实现及各类优化;不当之处欢迎指正交流,感谢支持~