public ObsController(OBSWebsocket obs, Application ppt)
        {
            Obs = new(obs);
            Ppt = new(ppt);

            Obs.SceneChanged += Obs_SceneChanged;

            Obs.Connect().GetAwaiter().GetResult();
        }
예제 #2
0
        public PptController(OBSWebsocket obs, Application ppt)
        {
            Obs = new(obs);
            Ppt = new(ppt);

            Ppt.Application.SlideShowNextSlide += App_SlideShowNextSlide;
            _connectionTimer = new System.Threading.Timer(
                ConnectionTimerCallback,
                null,
                TimeSpan.FromSeconds(5),
                TimeSpan.FromSeconds(5));

            InitObs();
        }