fix:移除多余talkDataStream监听

This commit is contained in:
liyi 2025-01-14 13:40:40 +08:00
parent 3205918212
commit 88fbd1cac9

View File

@ -79,9 +79,9 @@ class _H264WebViewState extends State<H264WebView> {
void _sendFramesToHtml() async { void _sendFramesToHtml() async {
// //
talkDataRepository.talkDataStream.listen((TalkData event) async { // talkDataRepository.talkDataStream.listen((TalkData event) async {
_buffer.addAll(event.content); // _buffer.addAll(event.content);
}); // });
// 800ms的数据 // 800ms的数据
_sendTimer ??= Timer.periodic( _sendTimer ??= Timer.periodic(
Duration(milliseconds: sendDataToHtmlIntervalTime), (timer) async { Duration(milliseconds: sendDataToHtmlIntervalTime), (timer) async {