public override void InitializeForWriting(List <IsochronousTrackInfo> mediaTracksInfo) { foreach (IsochronousTrackInfo trak in mediaTracksInfo) { if (trak.HandlerType.Equals("Video")) { GenericTrackFormat format = new H264Format(); format.Codec = new Codec(CodecTypes.Video); format.Codec.PrivateCodecData = trak.CodecPrivateData; IMediaTrack item = new GenericVideoTrack(format, this); MediaTracks.Add(item); } } base.InitializeForWriting(mediaTracksInfo); }
public override void InitializeForWriting(List<IsochronousTrackInfo> mediaTracksInfo) { foreach (IsochronousTrackInfo trak in mediaTracksInfo) { if (trak.HandlerType.Equals("Video")) { GenericTrackFormat format = new H264Format(); format.Codec = new Codec(CodecTypes.Video); format.Codec.PrivateCodecData = trak.CodecPrivateData; IMediaTrack item = new GenericVideoTrack(format, this); MediaTracks.Add(item); } } base.InitializeForWriting(mediaTracksInfo); }