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;
			}
		}
Exemple #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;
            }
        }