Example #1
0
        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);
        }
Example #2
0
        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);
        }