Example #1
0
 public JPlayerPlaylist(M3uPlayList m3uPlayList, string toc)    
     : this(m3uPlayList) 
 {
     string[] rows = toc.Split(new string[]  {";", "; "}, StringSplitOptions.RemoveEmptyEntries);
     if (rows.Count() == this.Count())
         for (int i = 0; i < this.Count(); i++)
             this.Tracks[i].title = rows[i].Substring(0, rows[i].IndexOf("My"));
 }
Example #2
0
 public JPlayerPlaylist(M3uPlayList m3uPlayList) {
     this.Tracks = new AudioPlaylistItem[m3uPlayList.Count()];
     for (int i = 0; i < m3uPlayList.Count(); i++)
         this.Tracks[i] = m3uPlayList.GetItem(i);
 }