/// <summary>
        /// Initializes a new instance of the <see cref="TimeShifter"/> class.
        /// </summary>
        /// <param name="cardHandler">The card handler.</param>
        public TimeShifter(ITvCardHandler cardHandler) : base(cardHandler)
        {
            _cardHandler = cardHandler;
            var layer = new TvBusinessLayer();

            _linkageScannerEnabled = (layer.GetSetting("linkageScannerEnabled", "no").Value == "yes");

            _linkageGrabber = new ChannelLinkageGrabber(cardHandler.Card);
            _timeshiftingEpgGrabberEnabled = (layer.GetSetting("timeshiftingEpgGrabberEnabled", "no").Value == "yes");

            _timeAudioEvent = DateTime.MinValue;
            _timeVideoEvent = DateTime.MinValue;
        }
Пример #2
0
    /// <summary>
    /// Initializes a new instance of the <see cref="TimeShifter"/> class.
    /// </summary>
    /// <param name="cardHandler">The card handler.</param>
    public TimeShifter(ITvCardHandler cardHandler) : base(cardHandler)
    {
      

      _cardHandler = cardHandler;
      var layer = new TvBusinessLayer();
      _linkageScannerEnabled = (layer.GetSetting("linkageScannerEnabled", "no").Value == "yes");

      _linkageGrabber = new ChannelLinkageGrabber(cardHandler.Card);
      _timeshiftingEpgGrabberEnabled = (layer.GetSetting("timeshiftingEpgGrabberEnabled", "no").Value == "yes");

      _timeAudioEvent = DateTime.MinValue;
      _timeVideoEvent = DateTime.MinValue;
    }    
Пример #3
0
    /// <summary>
    /// Initializes a new instance of the <see cref="TimeShifter"/> class.
    /// </summary>
    /// <param name="cardHandler">The card handler.</param>
    public TimeShifter(ITvCardHandler cardHandler)
    {
      _eventAudio.Reset();
      _eventVideo.Reset();

      _cardHandler = cardHandler;
      TvBusinessLayer layer = new TvBusinessLayer();
      _linkageScannerEnabled = (layer.GetSetting("linkageScannerEnabled", "no").Value == "yes");

      _linkageGrabber = new ChannelLinkageGrabber(cardHandler.Card);
      _timeshiftingEpgGrabberEnabled = (layer.GetSetting("timeshiftingEpgGrabberEnabled", "no").Value == "yes");

      _waitForTimeshifting = Int32.Parse(layer.GetSetting("timeshiftWaitForTimeshifting", "15").Value);

      _timeAudioEvent = DateTime.MinValue;
      _timeVideoEvent = DateTime.MinValue;
    }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TimeShifter"/> class.
        /// </summary>
        /// <param name="cardHandler">The card handler.</param>
        public TimeShifter(ITvCardHandler cardHandler)
        {
            _eventAudio.Reset();
            _eventVideo.Reset();

            _cardHandler = cardHandler;
            TvBusinessLayer layer = new TvBusinessLayer();

            _linkageScannerEnabled = (layer.GetSetting("linkageScannerEnabled", "no").Value == "yes");

            _linkageGrabber = new ChannelLinkageGrabber(cardHandler.Card);
            _timeshiftingEpgGrabberEnabled = (layer.GetSetting("timeshiftingEpgGrabberEnabled", "no").Value == "yes");

            _waitForTimeshifting = Int32.Parse(layer.GetSetting("timeshiftWaitForTimeshifting", "15").Value);

            _timeAudioEvent = DateTime.MinValue;
            _timeVideoEvent = DateTime.MinValue;
        }