Exemplo n.º 1
0
 public MediaTrack(MediaTrackType type, string language, int id, string title)
 {
     Type     = type;
     Language = language;
     Id       = id;
     Title    = title;
 }
Exemplo n.º 2
0
        private int findTrackIndexFor(MediaTrackType mediaTrackType, MediaPlayer.TrackInfo[] trackInfo)
        {
            int index = -1;

            for (int i = 0; i < trackInfo.Length; i++)
            {
                if (trackInfo[i].TrackType == mediaTrackType)
                {
                    return(i);
                }
            }
            return(index);
        }