x1ongzhu пре 6 година
родитељ
комит
23a8f0a83b

+ 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:8202/';
+  static String baseUrl = 'http://123.58.240.138:9000/';
   // static String baseUrl='http://192.168.50.226:8080/';
   static String token;
   static bool debug;

+ 2 - 2
lib/pages/VideoPlayer.dart

@@ -21,7 +21,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 {
@@ -31,7 +31,7 @@ class _VideoPlayerPageState extends State<VideoPlayerPage> {
     } else {
       isNet = true;
     }
-    // _defalutUrl='http://47.96.141.102:8080/videos/2019-05-24-04-47-48-4bzyynao.mp4';
+    // _defalutUrl='http://123.58.240.138:8080/videos/2019-05-24-04-47-48-4bzyynao.mp4';
     print(_defalutUrl);
     print(isNet);
   }

+ 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:8202/playerInfo/uploadVideo")
+                            String uploadId = new MultipartUploadRequest(VideoProcessService.this, "http://123.58.240.138:9000/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/yuanren/%@?playerInfoId=%@", playerInfoId, playerInfoId];
+        NSString *rtmpUrl = [NSString stringWithFormat:@"rtmp://123.58.240.138:1935/yuanren/%@?playerInfoId=%@", playerInfoId, playerInfoId];
         NSUserDefaults *userDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.izouma.wnnaBattle"];
         [userDefaults setValue:rtmpUrl forKey:@"rtmpUrl"];
         [userDefaults synchronize];