0
点赞
收藏
分享

微信扫一扫

uni-app播放在线mp3格式录音

TiaNa_na 2022-04-02 阅读 61
前端vue.js

1. 查看地址

在这里插入图片描述

2. 播放录音代码

// 播放开始录音
playVoiceStart() {
	const innerAudioContext = uni.createInnerAudioContext();
	innerAudioContext.autoplay = true;
	innerAudioContext.src = this.dataInfo.RecordBeginPath
	innerAudioContext.onPlay(() => {
		console.log('开始播放');
	});
},

举报

相关推荐

0 条评论