// import 'dart:async';
//
// import 'package:diplomaticquarterapp/pages/conference/web_rtc/widgets/cam_view_widget.dart';
// import 'package:diplomaticquarterapp/pages/conference/widgets/noise_box.dart';
// import 'package:diplomaticquarterapp/pages/webRTC/signaling.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter/services.dart';
// // import 'package:flutter_webrtc/flutter_webrtc.dart';
//
// import '../conference_button_bar.dart';
//
// class CallHomePage extends StatefulWidget {
//   final String receiverId;
//   final String callerId;
//
//   const CallHomePage({Key key, this.receiverId, this.callerId}) : super(key: key);
//
//   @override
//   _CallHomePageState createState() => _CallHomePageState();
// }
//
// class _CallHomePageState extends State<CallHomePage> {
//   bool showNoise = false;
//   // RTCVideoRenderer _localRenderer = RTCVideoRenderer();
//   // RTCVideoRenderer _remoteRenderer = RTCVideoRenderer();
//
//   final StreamController<bool> _audioButton = StreamController<bool>.broadcast();
//   final StreamController<bool> _videoButton = StreamController<bool>.broadcast();
//   final StreamController<bool> _onButtonBarVisibleStreamController = StreamController<bool>.broadcast();
//   final StreamController<double> _onButtonBarHeightStreamController = StreamController<double>.broadcast();
//
//   //Stream to enable video
//   // MediaStream localMediaStream;
//   // MediaStream remoteMediaStream;
//   Signaling signaling = Signaling()..init();
//
//   @override
//   void initState() {
//     // TODO: implement initState
//     super.initState();
//     startCall();
//   }
//
//   startCall() async{
//     // await _localRenderer.initialize();
//     // await _remoteRenderer.initialize();
//   }
//
//   Future<void> _disposeStreamsAndSubscriptions() async {
//     if (_onButtonBarVisibleStreamController != null) await _onButtonBarVisibleStreamController.close();
//     if (_onButtonBarHeightStreamController != null) await _onButtonBarHeightStreamController.close();
//   }
//
//   @override
//   Widget build(BuildContext context) {
//     return Scaffold(
//       backgroundColor: Colors.white,
//       body: Container() //showNoise ? _buildNoiseBox() : buildLayout(),
//     );
//   }
// }
