Exemplo n.º 1
0
    //==========================================================================
    private void OnCurrentSubtitleStreamChanged(SubtitleStream oldValue, SubtitleStream newValue)
    {
      if(MediaPlayer != null)
      {
        int index = -1;

        if(newValue != null)
          index = newValue.Track.Index;

        MediaPlayer.SubtitleTrackIndex = index;
      }
    }
Exemplo n.º 2
0
    //==========================================================================
    private SubtitleStream CoerceCurrentSubtitleStream(SubtitleStream value)
    {
      if(SubtitleStreams == null)
        return null;

      if(!SubtitleStreams.Contains(value))
        return null;

      return value;
    }
Exemplo n.º 3
0
 //==========================================================================
 private void OnSubtitleStreamsChanged(SubtitleStream[] oldValue, SubtitleStream[] newValue)
 {
 }