public override void MainMethod() { Ensure.Init(); CPU.DisableInts(); GDT.Init(); IDT.Init(); ISR.Init(); Console.Clear(); ACPI.Init(); ACPI.Enable(); PageManager.Init(); Heap.Init(); GC.Init(); Paging.Init(); PIT.Init(); RTC.Init(); Scheduler.Init(); CPU.EnableInts(); DiskDrive.Init(); //FatFileSystem.Init(); PCI.Init(); Driver.Init(); AudioMixer.Init(); new Thread(Event.Init, "Events").Start(); new Thread(new SCI().Main, "Shell").Start(); Scheduler.Idle(); }
public MainWindow() { InitializeComponent(); //initilize webrtc RTC.Init(); rtcControl = new RTCControl(); currParticipants = new List <CurrentParticipants>(); //setup events rtcControl.ErrorConnectSignaling += RtcControl_ErrorConnectSignaling; rtcControl.ConnectedToSignaling += RtcControl_ConnectedToSignaling; rtcControl.RTCInitialized += WebRTCInitialized; rtcControl.UserJoinedMeeting += RtcControl_UserJoinedMeeting; rtcControl.UserLeftMeeting += RtcControl_UserLeftMeeting; rtcControl.ILeftMeeting += RtcControl_ILeftMeeting; rtcControl.IJoinedMeeting += RtcControl_IJoinedMeeting; rtcControl.MeetingMessageReceived += RtcControl_MeetingMessageReceived; model = new AppModel(); this.DataContext = model; model.PropertyChanged += Model_PropertyChanged; //set the initial signaling url .. this is where our signalr server is running from model.SignalingUrl = System.Configuration.ConfigurationManager.AppSettings["SignalingUrl"]; rtcControl.SignalingType = SignalingTypes.Socketio; //SignalingTypes.SignalR; // SignalingTypes.Socketio; rtcControl.SignalingUrl = model.SignalingUrl; SetupCommands(); ShowMessage("Initializing WebRTC", System.Windows.Media.Brushes.MediumBlue, true); rtcControl.Width = 480; rtcControl.Height = 360; //we add our own video to the list of videos videoList.Children.Add(rtcControl); //we initialize webrtc - mandatory call! }
public FrmMain() { //Always intialize the WebRTC engine first! RTC.Init(); InitializeComponent(); currParticipants = new List <CurrentParticipants>(); snd = new SoundPlayer(); ShowStatus("Initializing RTC.."); iconfRTC = new RTCControl { Dock = DockStyle.Fill }; settings = new frmSettings(iconfRTC); //setup the signaling iconfRTC.SignalingUrl = ConfigurationManager.AppSettings["SignalingUrl"]; iconfRTC.SignalingType = SignalingTypes.Socketio; //logging iconfRTC.LoggingEnabled = true; iconfRTC.LogFilePath = Path.GetTempPath() + @"\rtclog.txt"; #region iConfRTC Events iconfRTC.DoubleClick += IconfRTC_DoubleClick; iconfRTC.RTCInitialized += IconfRTC_RTCInitialized; iconfRTC.IJoinedMeeting += IconfRTC_IJoinedMeeting; iconfRTC.UserJoinedMeeting += IconfRTC_UserJoinedMeeting; iconfRTC.UserLeftMeeting += IconfRTC_UserLeftMeeting; iconfRTC.ILeftMeeting += IconfRTC_ILeftMeeting; iconfRTC.NewDevices += IconfRTC_NewDevices; iconfRTC.MeetingMessageReceived += IconfRTC_MeetingMessageReceived; #endregion var pnlMyViewerParent = new OutlookPanelEx() { Width = 480, Height = 360, Visible = true, HeaderText = "" }; pnlMyViewerParent.Controls.Add(iconfRTC); pnlLayout.Controls.Add(pnlMyViewerParent); //rtf text box for chat rtBox = new HtmlPanel { Parent = pnlFill, Dock = DockStyle.Fill, AutoScroll = true }; chatFont = new Font(Font, FontStyle.Bold); pnlLayout.Show(); PositionJoinPanel(); }