Merge branch 'develop_sky_liyi' into 'develop_sky'
Develop sky liyi See merge request StarlockTeam/app-starlock!256
This commit is contained in:
commit
52f3ce64a4
@ -89,27 +89,27 @@ class _CatEyeCustomModePageState extends State<CatEyeCustomModePage> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 30.h,
|
height: 30.h,
|
||||||
),
|
),
|
||||||
Container(
|
// Container(
|
||||||
margin: EdgeInsets.only(left: 20.w),
|
// margin: EdgeInsets.only(left: 20.w),
|
||||||
child: CommonItem(
|
// child: CommonItem(
|
||||||
leftTitel: '实时画面'.tr,
|
// leftTitel: '实时画面'.tr,
|
||||||
rightTitle: state.realTimeMode.value,
|
// rightTitle: state.realTimeMode.value,
|
||||||
isHaveLine: false,
|
// isHaveLine: false,
|
||||||
isHaveDirection: true,
|
// isHaveDirection: true,
|
||||||
isHaveRightWidget: false,
|
// isHaveRightWidget: false,
|
||||||
action: () {
|
// action: () {
|
||||||
Navigator.pushNamed(context, Routers.liveVideoPage,
|
// Navigator.pushNamed(context, Routers.liveVideoPage,
|
||||||
arguments: {
|
// arguments: {
|
||||||
'lockSetInfoData': state.lockSetInfoData.value,
|
// 'lockSetInfoData': state.lockSetInfoData.value,
|
||||||
'catEyeConfigData': state.lockSetInfoData.value
|
// 'catEyeConfigData': state.lockSetInfoData.value
|
||||||
.lockSettingInfo!.catEyeConfig!.isNotEmpty
|
// .lockSettingInfo!.catEyeConfig!.isNotEmpty
|
||||||
? state.lockSetInfoData.value.lockSettingInfo!
|
// ? state.lockSetInfoData.value.lockSettingInfo!
|
||||||
.catEyeConfig![0]
|
// .catEyeConfig![0]
|
||||||
: null
|
// : null
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
)
|
// )
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -80,12 +80,12 @@ class _CatEyeSetPageState extends State<CatEyeSetPage> {
|
|||||||
isHaveRightWidget: true,
|
isHaveRightWidget: true,
|
||||||
rightWidget: _otherToDoSwitch(2),
|
rightWidget: _otherToDoSwitch(2),
|
||||||
)),
|
)),
|
||||||
Obx(() => CommonItem(
|
// Obx(() => CommonItem(
|
||||||
leftTitel: '异常警告'.tr,
|
// leftTitel: '异常警告'.tr,
|
||||||
rightTitle: '',
|
// rightTitle: '',
|
||||||
isHaveLine: true,
|
// isHaveLine: true,
|
||||||
isHaveRightWidget: true,
|
// isHaveRightWidget: true,
|
||||||
rightWidget: _otherToDoSwitch(3))),
|
// rightWidget: _otherToDoSwitch(3))),
|
||||||
//ToDo 需增加国际化
|
//ToDo 需增加国际化
|
||||||
CommonItem(
|
CommonItem(
|
||||||
leftTitel: '呼叫目标'.tr,
|
leftTitel: '呼叫目标'.tr,
|
||||||
|
|||||||
@ -815,7 +815,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
static const int chunkSize = 320; // 每次发送320字节(10ms G.711)
|
static const int chunkSize = 320; // 每次发送320字节(10ms G.711)
|
||||||
static const int intervalMs = 40; // 每40ms发送一次(4个chunk)
|
static const int intervalMs = 35; // 每40ms发送一次(4个chunk)
|
||||||
void _sendAudioChunk(Timer timer) async {
|
void _sendAudioChunk(Timer timer) async {
|
||||||
if (_bufferedAudioFrames.length < chunkSize) {
|
if (_bufferedAudioFrames.length < chunkSize) {
|
||||||
// 数据不足,等待下一周期
|
// 数据不足,等待下一周期
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user