添加了铃声
This commit is contained in:
parent
4e02daa854
commit
c5305c5a72
@ -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
BIN
static/music.mp3
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user