コード例 #1
0
        public void Initialize(IHLSController controller, MediaPlayer player)
        {
            _data            = new PlaybackStatusData(controller, player);
            this.DataContext = _data;
            _player          = player;
            _controller      = controller;

            _player.MediaOpened   += _player_MediaOpened;
            _player.SeekCompleted += _player_SeekCompleted;
            _controller.PrepareResourceRequest += _controller_PrepareResourceRequest;
        }
コード例 #2
0
    public void Initialize(IHLSController controller, MediaPlayer player)
    {
      _data = new PlaybackStatusData(controller, player);
      this.DataContext = _data;
      _player = player;
      _controller = controller;

      _player.MediaOpened += _player_MediaOpened;
      _player.SeekCompleted += _player_SeekCompleted;
      _controller.PrepareResourceRequest += _controller_PrepareResourceRequest;


    }
コード例 #3
0
        public void Reset()
        {
            if (_data != null)
            {
                _data.Reset();
            }
            if (_player != null)
            {
                _player.MediaOpened -= _player_MediaOpened;
            }
            if (_controller != null)
            {
                _controller.PrepareResourceRequest -= _controller_PrepareResourceRequest;
            }
            _data            = null;
            this.DataContext = null;

            noplaybackStatus.Visibility = Visibility.Visible;
        }
コード例 #4
0
    public void Reset()
    {
      if (_data != null) _data.Reset();
      if (_player != null) _player.MediaOpened -= _player_MediaOpened;
      if (_controller != null) _controller.PrepareResourceRequest -= _controller_PrepareResourceRequest;
      _data = null;
      this.DataContext = null;

      noplaybackStatus.Visibility = Visibility.Visible;
    }