cjl_macbook před 6 roky
rodič
revize
86f7567132
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 7 2
      lib/src/controller.dart

+ 7 - 2
lib/src/controller.dart

@@ -32,7 +32,7 @@ class IjkMediaController extends ChangeNotifier {
       await _plugin?.dispose();
     }
     await _initIjk();
-    await _plugin?.setDataSource(uri: url);
+    await _plugin?.setNetworkDataSource(uri: url);
     this.notifyListeners();
   }
 
@@ -81,7 +81,8 @@ class _IjkPlugin {
     channel.invokeMethod("stop");
   }
 
-  Future<void> setDataSource({String uri}) async {
+  Future<void> setNetworkDataSource({String uri}) async {
+    // todo
     print("id = $textureId uri = $uri");
     channel.invokeMethod("setDataSource", {"uri": uri});
   }
@@ -93,4 +94,8 @@ class _IjkPlugin {
       "package": package,
     });
   }
+
+  Future<void> setFileDataSource(String path) async {
+    // todo 
+  }
 }