예제 #1
0
        MediaTrack CreateMediaTrack(XElement src, string password = null)
        {
            MediaTrack rz = new MediaTrack(this, 0);

            rz.ApplyConfiguration(src, password);
            return(rz);
        }
예제 #2
0
        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);
        }