コード例 #1
0
ファイル: App.xaml.cs プロジェクト: jwming05/FCSPlayout
        protected override void OnStartup(StartupEventArgs e)
        {
            //MediaSourcePathResolver.Current = new DefaultMediaSourcePathResolver(
            //    ConfigurationManager.AppSettings["primaryStorage"],
            //    ConfigurationManager.AppSettings["secondaryStorage"]);

            //PlayoutRepository.GetSettings();

            ChannelInfo channel = PlayoutRepository.GetAutoPaddingChannel();

            if (channel != null)
            {
                PlayoutConfiguration.Current.AutoPaddingMediaSource = new ChannelMediaSource(channel);
                //Playbill.PaddingMediaSource = new ChannelMediaSource(channel);
            }

            this.Initialize();
            base.OnStartup(e);
            var bootstrapper = new Bootstrapper();

            bootstrapper.Run();
        }