x1ongzhu 6 lat temu
rodzic
commit
c8b651d5bf

+ 1 - 1
lib/net/HttpManager.dart

@@ -3,7 +3,7 @@ import 'Result.dart';
 import 'package:intl/intl.dart';
 
 class HttpManager {
-   static String baseUrl = 'http://47.96.141.102:8203/';
+   static String baseUrl = 'http://123.58.240.138:8090/';
 //  static String baseUrl = 'http://192.168.50.132:8080/';
   static String token;
   static bool debug;

+ 6 - 2
lib/pages/RoomInfo.dart

@@ -344,7 +344,9 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
           Navigator.of(context).pop();
           return Future.value(false);
         } else {
-          Toast.show(context, '比赛即将开始,暂不能离开房间', 1500, 'info');
+          showCustomDialog(context, '比赛即将开始,确定离开房间?', isCancel: true, onsubmit: () {
+            Navigator.of(context).pop();
+          });
         }
         return Future.value(false);
       },
@@ -425,7 +427,9 @@ class RoomInfoState extends State<RoomInfo> with SingleTickerProviderStateMixin
                                     Navigator.of(context).pop();
                                     return Future.value(false);
                                   } else {
-                                    Toast.show(context, '比赛即将开始,暂不能离开房间', 1500, 'info');
+                                    showCustomDialog(context, '比赛即将开始,确定离开房间?', isCancel: true, onsubmit: () {
+                                      Navigator.of(context).pop();
+                                    });
                                   }
                                 },
                                 child: Text(

+ 1 - 1
lib/pages/VideoPlayer.dart

@@ -20,7 +20,7 @@ class _VideoPlayerPageState extends State<VideoPlayerPage> {
 
     if (widget.videoUrl != '' && widget.videoUrl != null) {
       if (widget.fileType == 'netWork') {
-        String url = widget.videoUrl.replaceAll('/var', 'http://47.96.141.102:8080');
+        String url = widget.videoUrl.replaceAll('/var', 'http://123.58.240.138:8080');
         _defalutUrl = url;
         isNet = true;
       } else {

+ 1 - 1
pubspec.yaml

@@ -1,7 +1,7 @@
 name: wanna_battle
 description: A new Flutter project.
 
-version: 1.0.0+1
+version: 1.0.0+3
 
 environment:
   sdk: ">=2.1.0 <3.0.0"

+ 1 - 1
screen_stream_plugin/android/src/main/java/com/izouma/screen_stream_plugin/ImageAvailableListener.java

@@ -74,7 +74,7 @@ public class ImageAvailableListener implements ImageReader.OnImageAvailableListe
 
                 Bitmap bitmap = Bitmap.createBitmap(1280, 720, Bitmap.Config.ARGB_8888);
                 bitmap.copyPixelsFromBuffer(buffer);
-                if (frameCount % 5 == 0) {
+                if (frameCount % 2 == 0) {
                     bitmap.recycle();
                     return;
                 }

+ 1 - 1
screen_stream_plugin/android/src/main/java/com/izouma/screen_stream_plugin/VideoProcessService.java

@@ -104,7 +104,7 @@ public class VideoProcessService extends Service implements ImageAvailableListen
                             e.printStackTrace();
                         }
                         try {
-                            String uploadId = new MultipartUploadRequest(VideoProcessService.this, "http://47.96.141.102:8203/playerInfo/uploadVideo")
+                            String uploadId = new MultipartUploadRequest(VideoProcessService.this, "http://123.58.240.138:8090/playerInfo/uploadVideo")
                                     .addFileToUpload(imageAvailableListener.getVideoPath(), "video")
                                     // .addFileToUpload("/storage/emulated/0/Android/data/com.izouma.mobilecybergames/files/record/record1553655902913.flv", "video")
                                     .addParameter("id", String.valueOf(playerInfoId))

+ 1 - 1
screen_stream_plugin/ios/Classes/ScreenStreamPlugin.m

@@ -37,7 +37,7 @@
 - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result {
     if ([@"start" isEqualToString:call.method]) {
         NSString *playerInfoId = call.arguments[@"playerInfoId"];
-        NSString *rtmpUrl = [NSString stringWithFormat:@"rtmp://47.96.141.102:1935/weidianjing/%@?playerInfoId=%@", playerInfoId, playerInfoId];
+        NSString *rtmpUrl = [NSString stringWithFormat:@"rtmp://123.58.240.138:1935/weidianjing/%@?playerInfoId=%@", playerInfoId, playerInfoId];
         NSUserDefaults *userDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.izouma.wnnaBattle"];
         [userDefaults setValue:rtmpUrl forKey:@"rtmpUrl"];
         [userDefaults synchronize];