protected void Update()
        {
            IPlayerContextManager playerContextManager = ServiceRegistration.Get <IPlayerContextManager>();
            IWorkflowManager      workflowManager      = ServiceRegistration.Get <IWorkflowManager>();
            IPlayerContext        pcPrimary            = playerContextManager.PrimaryPlayerContext;
            IPlayer      primaryPlayer = pcPrimary == null ? null : pcPrimary.CurrentPlayer;
            IImagePlayer pp            = primaryPlayer as IImagePlayer;
            IVideoPlayer vp            = primaryPlayer as IVideoPlayer;
            IAudioPlayer ap            = primaryPlayer as IAudioPlayer;
            bool         visible       = (pp != null || vp != null || ap != null) &&
                                         !workflowManager.IsStateContainedInNavigationStack(pcPrimary.FullscreenContentWorkflowStateId);
            IResourceString displayTitleRes;

            if (ap != null)
            {
                displayTitleRes = LocalizationHelper.CreateResourceString(Consts.RES_AUDIO_VISUALIZATION);
            }
            else if (vp != null)
            {
                displayTitleRes = LocalizationHelper.CreateStaticString(
                    LocalizationHelper.CreateResourceString(Consts.RES_FULLSCREEN_VIDEO).Evaluate(vp.Name));
            }
            else
            {
                displayTitleRes = LocalizationHelper.CreateResourceString(Consts.RES_FULLSCREEN_IMAGE);
            }
            lock (_syncObj)
            {
                _isVisible            = visible;
                _displayTitleResource = displayTitleRes;
            }
            FireStateChanged();
        }
        public void Initialize(MediaWorkflowStateType stateType, IPlayer player)
        {
            _playerContext          = stateType == MediaWorkflowStateType.CurrentlyPlaying ? PlayerChoice.CurrentPlayer : PlayerChoice.PrimaryPlayer;
            _mediaWorkflowStateType = stateType;
            _player = player as IImagePlayer;

            _imageWidthProperty        = new WProperty(typeof(int), null);
            _imageHeightProperty       = new WProperty(typeof(int), null);
            _cameraMakeProperty        = new WProperty(typeof(string), string.Empty);
            _cameraModelProperty       = new WProperty(typeof(string), string.Empty);
            _imageExposureBiasProperty = new WProperty(typeof(double), null);
            _imageExposureTimeProperty = new WProperty(typeof(string), string.Empty);
            _imageFlashModeProperty    = new WProperty(typeof(string), string.Empty);
            _imageFNumberProperty      = new WProperty(typeof(string), string.Empty);
            _imageDimensionsProperty   = new WProperty(typeof(string), string.Empty);
            _imageISOSpeedProperty     = new WProperty(typeof(string), string.Empty);
            _imageMeteringModeProperty = new WProperty(typeof(string), string.Empty);
        }
    public void Initialize(MediaWorkflowStateType stateType, IPlayer player)
    {
      _playerContext = stateType == MediaWorkflowStateType.CurrentlyPlaying ? PlayerChoice.CurrentPlayer : PlayerChoice.PrimaryPlayer;
      _mediaWorkflowStateType = stateType;
      _player = player as IImagePlayer;

      _imageWidthProperty = new WProperty(typeof(int), null);
      _imageHeightProperty = new WProperty(typeof(int), null);
      _cameraMakeProperty = new WProperty(typeof(string), string.Empty);
      _cameraModelProperty = new WProperty(typeof(string), string.Empty);
      _imageExposureBiasProperty = new WProperty(typeof(double), null);
      _imageExposureTimeProperty = new WProperty(typeof(string), string.Empty);
      _imageFlashModeProperty = new WProperty(typeof(string), string.Empty);
      _imageFNumberProperty = new WProperty(typeof(string), string.Empty);
      _imageDimensionsProperty = new WProperty(typeof(string), string.Empty);
      _imageISOSpeedProperty = new WProperty(typeof(string), string.Empty);
      _imageMeteringModeProperty = new WProperty(typeof(string), string.Empty);
      _imageCountryProperty = new WProperty(typeof(string), string.Empty);
      _imageStateProperty = new WProperty(typeof(string), string.Empty);
      _imageCityProperty = new WProperty(typeof(string), string.Empty);
    }
 public void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
     _playerContext          = stateType == MediaWorkflowStateType.CurrentlyPlaying ? PlayerChoice.CurrentPlayer : PlayerChoice.PrimaryPlayer;
     _mediaWorkflowStateType = stateType;
     _player = player as IImagePlayer;
 }
 public void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
   _playerContext = stateType == MediaWorkflowStateType.CurrentlyPlaying ? PlayerChoice.CurrentPlayer : PlayerChoice.PrimaryPlayer;
   _mediaWorkflowStateType = stateType;
   _player = player as IImagePlayer;
 }