Esempio n. 1
0
		private void StateChanged(VideoDemonstrationController.VideoState state)
		{
			_currentState = state;
			switch(_currentState)
			{
			case VideoDemonstrationController.VideoState.paused:
			case VideoDemonstrationController.VideoState.stoped:
				_buttonLabel.text = PlayLabel;
				break;
			case VideoDemonstrationController.VideoState.played:
				_buttonLabel.text = PauseLabel;
				break;
			}
		}
Esempio n. 2
0
        private void StateChanged(VideoDemonstrationController.VideoState state)
        {
            _currentState = state;
            switch (_currentState)
            {
            case VideoDemonstrationController.VideoState.paused:
            case VideoDemonstrationController.VideoState.stoped:
                _buttonLabel.text = PlayLabel;
                break;

            case VideoDemonstrationController.VideoState.played:
                _buttonLabel.text = PauseLabel;
                break;
            }
        }