File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'dart:async';
33import 'dart:convert' ;
44import 'proto/douyin.pb.dart' ;
55import 'package:pure_live/core/site/douyin_site.dart' ;
6+ import 'package:pure_live/core/scripts/douyin_sign.dart' ;
67import 'package:pure_live/common/models/live_message.dart' ;
78import 'package:pure_live/core/common/web_socket_util.dart' ;
89import 'package:pure_live/core/interface/live_danmaku.dart' ;
@@ -75,7 +76,7 @@ class DouyinDanmaku implements LiveDanmaku {
7576 },
7677 );
7778
78- var sign = await getSignature (danmakuArgs.roomId, danmakuArgs.userId);
79+ var sign = DouyinSign . getSignature (danmakuArgs.roomId, danmakuArgs.userId);
7980
8081 var url = "$uri &signature=$sign " ;
8182 var backupUrl = url.replaceAll ("webcast3-ws-web-lq" , "webcast5-ws-web-lf" );
@@ -184,12 +185,4 @@ class DouyinDanmaku implements LiveDanmaku {
184185 onClose = null ;
185186 webScoketUtils? .close ();
186187 }
187-
188- Future <String > Function (String , String ) getSignature = (roomId, uniqueId) async {
189- return "" ;
190- };
191-
192- void setSignatureFunction (Future <String > Function (String , String ) func) {
193- getSignature = func;
194- }
195188}
You can’t perform that action at this time.
0 commit comments