Future main() async {
fvp.registerWith();
await Global.init();
runApp(const MyApp());
}
String testLive = 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4';
String testLive1 = 'https://cdn.theoplayer.com/video/big_buck_bunny/stream-3-3000000/index.m3u8';
_controller = VideoPlayerController.networkUrl(Uri.parse(testLive));
_controller?.setLooping(true);
_controller?.initialize().then((value) {}
下面这个地址能播,上面的地址不能播。 我项目获取的来自后端返回的地址大多数播放不了。 直接报错invalid or unsupported media
Future main() async {
fvp.registerWith();
await Global.init();
runApp(const MyApp());
}
String testLive = 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4';
String testLive1 = 'https://cdn.theoplayer.com/video/big_buck_bunny/stream-3-3000000/index.m3u8';
_controller = VideoPlayerController.networkUrl(Uri.parse(testLive));
_controller?.setLooping(true);
_controller?.initialize().then((value) {}
下面这个地址能播,上面的地址不能播。 我项目获取的来自后端返回的地址大多数播放不了。 直接报错invalid or unsupported media