build method
- dynamic context
Implementation
@override
Widget build(BuildContext context) {
// Web: full WebRTC view
if (kIsWeb) {
return _buildWebView();
}
// Desktop + Android: Native GStreamer/Texture view
if (_isWindows || _isLinux || _isMacOS || _isAndroid) {
return _buildNativeView();
}
// Fallback for other platforms: WebRTC stub view
return _buildWebView();
}