public TSPlaylistFile( BDROM bdrom, string name, List <TSStreamClip> clips) { BDROM = bdrom; Name = name; IsCustom = true; foreach (TSStreamClip clip in clips) { TSStreamClip newClip = new TSStreamClip( clip.StreamFile, clip.StreamClipFile); newClip.Name = clip.Name; newClip.TimeIn = clip.TimeIn; newClip.TimeOut = clip.TimeOut; newClip.Length = newClip.TimeOut - newClip.TimeIn; newClip.RelativeTimeIn = TotalLength; newClip.RelativeTimeOut = newClip.RelativeTimeIn + newClip.Length; newClip.AngleIndex = clip.AngleIndex; newClip.Chapters.Add(clip.TimeIn); StreamClips.Add(newClip); if (newClip.AngleIndex > AngleCount) { AngleCount = newClip.AngleIndex; } if (newClip.AngleIndex == 0) { Chapters.Add(newClip.RelativeTimeIn); } } LoadStreamClips(); IsInitialized = true; }
public TSPlaylistFile( BDROM bdrom, string name, List<TSStreamClip> clips) { BDROM = bdrom; Name = name; IsCustom = true; foreach (TSStreamClip clip in clips) { TSStreamClip newClip = new TSStreamClip( clip.StreamFile, clip.StreamClipFile); newClip.Name = clip.Name; newClip.TimeIn = clip.TimeIn; newClip.TimeOut = clip.TimeOut; newClip.Length = newClip.TimeOut - newClip.TimeIn; newClip.RelativeTimeIn = TotalLength; newClip.RelativeTimeOut = newClip.RelativeTimeIn + newClip.Length; newClip.AngleIndex = clip.AngleIndex; newClip.Chapters.Add(clip.TimeIn); StreamClips.Add(newClip); if (newClip.AngleIndex > AngleCount) { AngleCount = newClip.AngleIndex; } if (newClip.AngleIndex == 0) { Chapters.Add(newClip.RelativeTimeIn); } } LoadStreamClips(); IsInitialized = true; }
public TSPlaylistFile( BDROM bdrom, FileInfo fileInfo) { BDROM = bdrom; FileInfo = fileInfo; Name = fileInfo.Name.ToUpper(); }