Код: Выделить всё
dependencies:
flutter:
sdk: flutter
flutter_vlc_player: ^7.4.2 # To play RTSP streams
media_kit: ^1.1.11 # Primary package
media_kit_video: ^1.2.5 # For video rendering.
media_kit_libs_video: ^1.0.5 # Native video dependencies
Код: Выделить всё
flutter/third_party/dart/runtime/vm/virtual_memory_posix.cc: 69: error: mmap failed: 1 (Operation not permitted)'
eax 00000000 ebx 000052b5 ecx 000052d0 edx 00000006
esi a007f978 edi a007f920
xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
eip abe6a424 ebp a007db08 esp a007daac flags 00000292
Код: Выделить всё
return Scaffold(
appBar: AppBar(title: const Text('Video Grid')),
body: Center(
child: Wrap(
alignment: WrapAlignment.center,
spacing: 0,
runSpacing: 0,
children: List.generate(controllers.length, (index) {
return FutureBuilder(
future: Future.delayed(Duration(seconds: index)),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
return SizedBox(
width: videoWidth,
height: videoHeight,
child: Video(
filterQuality: FilterQuality.medium,
controller: controllers[index],
fit: BoxFit.contain,
),
);
} else {
return SizedBox(
width: videoWidth,
height: videoHeight,
child: Center(child: CircularProgressIndicator()),
);
}
},
);
}),
),
),
);
Подробнее здесь: https://stackoverflow.com/questions/793 ... -permitted