Open kiam123 opened 2 years ago
Not yet supported
It would be fine if I changed it to this, but don't know when this is the standard (如果我将它改成这样就可以了,但不知道这样的做法时候标准)
load() async{
final videoData = await rootBundle.load('assets/rtp.sdp');
final videoBytes = Uint8List.view(videoData.buffer);
var dir = (await getTemporaryDirectory()).path;
var tempVideo = File('$dir/temp.file');
tempVideo.writeAsBytesSync(videoBytes);
await Future.delayed(Duration(seconds: 1));
if (await tempVideo.exists()) {
await _controller.setDataSource(path: tempVideo.path);
}
}
Hi, i'm using your example, switch to open sdp, but can't use it
pubspec.yaml
assets/rtp.sdp
main.dart
ps: sorry, I'm new hand to flutter