Ejemplo n.º 1
0
 public WebPlaylistItem(WebMusicTrackBasic track)
 {
     this.Id = track.Id;
     this.PID = track.PID;
     this.Title = track.Title;
     this.Type = track.Type;
     this.Duration = track.Duration;
     this.DateAdded = track.DateAdded;
     this.Path = track.Path;
 }
Ejemplo n.º 2
0
 public string GetTranscoderForTrack(WebMusicTrackBasic track)
 {
     if (track.Path.First().EndsWith(".mp3") && TranscoderProfile.MIME == "audio/mpeg")
     {
         return "Direct";
     }
     else
     {
         return Transcoder;
     }
 }