Example #1
0
 public static PIffTrackMediaInfo CreateVideo(
     PiffVideoManifest video, DateTime created, int timeScale, Guid keyId)
 {
     return(new PIffTrackMediaInfo(new PiffMediaHeader(created, video.Duration, timeScale),
                                   new PiffHandlerType(PiffTrackTypes.Video),
                                   PiffMediaInformation.CreateVideo(video, keyId)));
 }
Example #2
0
 public static PIffTrackMediaInfo CreateAudio(
     PiffAudioManifest audio, DateTime created, long duration, int timeScale, Guid keyId)
 {
     return(new PIffTrackMediaInfo(
                new PiffMediaHeader(created, duration, timeScale),
                new PiffHandlerType(PiffTrackTypes.Audio),
                PiffMediaInformation.CreateAudio(audio, keyId)));
 }
Example #3
0
 private PIffTrackMediaInfo(PiffMediaHeader header, PiffHandlerType handler, PiffMediaInformation info)
 {
     Header  = header;
     Handler = handler;
     Info    = info;
 }