Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
db5ab63e55
BIN
star_lock/images/main/unlocked_bg.png
Normal file
BIN
star_lock/images/main/unlocked_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@ -1,4 +1,3 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:get/get.dart';
|
||||
@ -6,7 +5,6 @@ import 'package:star_lock/talk/call/g711.dart';
|
||||
import 'package:star_lock/talk/call/iFrameInfo.dart';
|
||||
import '../../tools/eventBusEventManage.dart';
|
||||
import 'package:flutter_pcm_sound/flutter_pcm_sound.dart';
|
||||
import 'package:flutter_sound/flutter_sound.dart';
|
||||
|
||||
class CallTalk {
|
||||
static CallTalk? _manager;
|
||||
@ -152,4 +150,9 @@ class CallTalk {
|
||||
print("Not enough data in allPcmData.");
|
||||
}
|
||||
}
|
||||
|
||||
//停止接收音频数据
|
||||
void stopPcmSound() {
|
||||
FlutterPcmSound.stop();
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,6 +117,7 @@ class CommandUDPReciverManager {
|
||||
UDPTalkClass().isBeCall = false;
|
||||
Get.back();
|
||||
UDPTalkClass().stopLocalAudio();
|
||||
CallTalk().stopPcmSound();
|
||||
eventBus.fire(GetUDPStatusRefreshUI(UDPTalkClass().status));
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user