I'm working on WebRTC for video calling in Flutter. Everything is working like charm, but when I run the app it does not show the camera both local camera and remote (Camera Permission is given), but if I hot reload the app the camera shows.
This is my code.
Here is my UI.
Expanded(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(child: RTCVideoView(_localRenderer, mirror: true)),
Expanded(child: RTCVideoView(_remoteRenderer)),
],
),
),
),`