MediaTrack CreateMediaTrack(XElement src, string password = null) { MediaTrack rz = new MediaTrack(this, 0); rz.ApplyConfiguration(src, password); return(rz); }
MediaTrack CreateMediaTrack(IContentSource src) { MediaTrack rz = new MediaTrack(this, this.GetNextTrackId(), src); rz.Title = src.Title; if (src.MediaType == MediaTypes.Image) { rz.DurationS = 7; } else { rz.DurationS = src.DurationS; } rz.Description = src.Description; return(rz); }