示例#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);
        }
示例#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);
        }