Example #1
0
 public static PiffTrack CreateAudio(
     int trackId, PiffAudioManifest audio, DateTime created, int timeScale, Guid keyId)
 {
     return(new PiffTrack(PiffTrackHeader.CreateAudio(trackId, created, audio.Duration),
                          PIffTrackMediaInfo.CreateAudio(audio, created, audio.Duration, timeScale, keyId)));
 }
Example #2
0
 public static PiffTrack CreateVideo(
     int trackId, PiffVideoManifest video, DateTime created, int timeScale, Guid keyId)
 {
     return(new PiffTrack(PiffTrackHeader.CreateVideo(trackId, created, video),
                          PIffTrackMediaInfo.CreateVideo(video, created, timeScale, keyId)));
 }
Example #3
0
 private PiffTrack(PiffTrackHeader header, PIffTrackMediaInfo info)
 {
     Header = header;
     Media  = info;
 }