//========================================================================== private void OnCurrentAudioStreamChanged(AudioStream oldValue, AudioStream newValue) { if(MediaPlayer != null) { int index = -1; if(newValue != null) index = newValue.Track.Index; MediaPlayer.AudioTrackIndex = index; } }
//========================================================================== private AudioStream CoerceCurrentAudioStream(AudioStream value) { if(AudioStreams == null) return null; if(!AudioStreams.Contains(value)) return null; return value; }
//========================================================================== private void OnAudioStreamsChanged(AudioStream[] oldValue, AudioStream[] newValue) { }