/// <summary>
        /// Callback for response to play() device method.
        /// </summary>
        public override void onPlay(SmcAvPlayer device, SmcItem item, SmcAvPlayer.PlayInfo contentInfo, int error)
        {
            if (error != Smc.SUCCESS)
            {
                // Error has occurred.
                return;
            }

            // Notify controller of state change.
            State = PlayerState.PLAYING;
        }
        private void playItem()
        {
            registerListeners();

            State = PlayerState.INITIALIZING;

            SmcItem item = new SmcItem(new SmcItem.LocalContent(mContentUri.Path, mMimeType));

            // If seek() was called before player connected, it stored the position
            // and we can start playback from that position.
            SmcAvPlayer.PlayInfo info = new SmcAvPlayer.PlayInfo(mPosition);
            mPlayer.play(item, info);
            Log.d("MusicPlayer", "Starting playback at: " + mPosition);
        }
        private void playItem()
        {
            registerListeners();

            State = PlayerState.INITIALIZING;

            SmcItem item;

            if (mSubtitlesUri != null)
            {
                item = new SmcItem((new SmcItem.LocalContent(mContentUri.Path, mMimeType)).setSubTitle(mSubtitlesUri.Path));
            }
            else
            {
                item = new SmcItem(new SmcItem.LocalContent(mContentUri.Path, mMimeType));
            }

            // If seek() was called before player connected, it stored the position
            // and we can start playback from that position.
            SmcAvPlayer.PlayInfo info = new SmcAvPlayer.PlayInfo(mPosition);
            mPlayer.play(item, info);
        }
		private void playItem()
		{
			registerListeners();

			State = PlayerState.INITIALIZING;

			SmcItem item;
			if (mSubtitlesUri != null)
			{
				item = new SmcItem((new SmcItem.LocalContent(mContentUri.Path, mMimeType)).setSubTitle(mSubtitlesUri.Path));
			}
			else
			{
				item = new SmcItem(new SmcItem.LocalContent(mContentUri.Path,mMimeType));
			}

			// If seek() was called before player connected, it stored the position
			// and we can start playback from that position.
			SmcAvPlayer.PlayInfo info = new SmcAvPlayer.PlayInfo(mPosition);
			mPlayer.play(item, info);
		}
		private void playItem()
		{
			registerListeners();

			State = PlayerState.INITIALIZING;

			SmcItem item = new SmcItem(new SmcItem.LocalContent(mContentUri.Path,mMimeType));
			// If seek() was called before player connected, it stored the position
			// and we can start playback from that position.
			SmcAvPlayer.PlayInfo info = new SmcAvPlayer.PlayInfo(mPosition);
			mPlayer.play(item, info);
			Log.d("MusicPlayer", "Starting playback at: " + mPosition);
		}