예제 #1
0
        void OnPlayBackStarted(MediaPortal.Player.g_Player.MediaType type, string filename)
        {
            if (PlayBackOpIsOfConcern(type, filename))
            {
                MainWindow.keyCommandDelayTimer.Start();
                LogPlayBackOp("started", filename);

                w.RunWorkerAsync(false);

                // ffdshow preset auto loading
                FFDShowHelper ffdshowHelper = new FFDShowHelper();
                // ASync call to avoid mediaportal video treatment sleep
                ffdshowHelper.loadPlayingPresetASync(curEpisode, filename);
            }
        }
예제 #2
0
        void OnPlayBackStarted(MediaPortal.Player.g_Player.MediaType type, string filename)
        {
            if (PlayBackOpIsOfConcern(type, filename))
            {
                LogPlayBackOp("started", filename);

                // really stupid, you have to wait until the player itself sets the properties (a few seconds) and after that set them
                w.RunWorkerAsync(false);

                // ffdshow preset auto loading
                FFDShowHelper ffdshowHelper = new FFDShowHelper();
                // ASync call to avoid mediaportal video treatment sleep
                ffdshowHelper.loadPlayingPresetASync(curEpisode, filename);
            }
        }