添加了铃声

This commit is contained in:
luyuan 2020-08-27 11:01:26 +08:00
parent 4e02daa854
commit c5305c5a72
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
import GoEasyIM from './goeasy-im-1.0.9';
import restApi from './restapi';
import music from './music.mp3'
function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) {
this.uuid = uuid;
@ -287,7 +288,7 @@ IMService.prototype.initialIMListeners = function () {
if(message.senderId != this.uid){
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true;
innerAudioContext.src = 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/audio/music.mp3';
innerAudioContext.src = music;
innerAudioContext.onPlay(() => {
console.log('开始播放');
});

BIN
static/music.mp3 Normal file

Binary file not shown.