|
|
@@ -61,6 +61,7 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
bool showHelloWord = false;
|
|
|
bool showWait = false;
|
|
|
num race = 10;
|
|
|
+ HttpServer server;
|
|
|
|
|
|
//获取房间信息
|
|
|
Future<void> getRoomInfo(type) async {
|
|
|
@@ -496,6 +497,14 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
if (timer != null) {
|
|
|
timer.cancel();
|
|
|
}
|
|
|
+
|
|
|
+ HttpServer.bind(InternetAddress.anyIPv4, 8899).then((s) {
|
|
|
+ server = s;
|
|
|
+ s.listen((HttpRequest request) {
|
|
|
+ request.response.write('rtmp://202.79.174.56:1935/myapp/${playerInfo.id}?playerInfoId=${playerInfo.id}');
|
|
|
+ request.response.close();
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
@override
|
|
|
@@ -505,6 +514,9 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
if (timer != null) {
|
|
|
timer.cancel();
|
|
|
}
|
|
|
+ if (server != null) {
|
|
|
+ server.close(force: true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@override
|
|
|
@@ -787,7 +799,7 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
|
|
|
height: 10,
|
|
|
),
|
|
|
Text(
|
|
|
- '注:上方显示数值为前三名的“当前奖励/最高奖励”',
|
|
|
+ '注:上方显示数值���前三名的“当前奖励/最高奖励”',
|
|
|
style: TextStyle(color: Colors.white30, fontSize: 12),
|
|
|
)
|
|
|
],
|