Example #1
0
        protected override void Initialize(Interop.Media.MediaTrack mediaTrack)
        {
            base.Initialize(mediaTrack);

            var subtitleTrack =
                (Interop.Media.SubtitleTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.SubtitleTrack));

            Encoding = InteropHelper.PtrToString(subtitleTrack.Encoding);
        }
Example #2
0
        protected override void Initialize(Interop.Media.MediaTrack mediaTrack)
        {
            base.Initialize(mediaTrack);

            var audioTrack = (Interop.Media.AudioTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.AudioTrack));

            Channels = audioTrack.Channels;
            Rate     = audioTrack.Rate;
        }
Example #3
0
 protected virtual void Initialize(Interop.Media.MediaTrack mediaTrack)
 {
     Codec          = mediaTrack.Codec;
     OriginalFourcc = mediaTrack.OriginalFourcc;
     Id             = mediaTrack.Id;
     Type           = mediaTrack.Type;
     Profile        = mediaTrack.Profile;
     Level          = mediaTrack.Level;
     Bitrate        = mediaTrack.Bitrate;
     Language       = InteropHelper.PtrToString(mediaTrack.Language);
     Description    = InteropHelper.PtrToString(mediaTrack.Description);
     Track          = mediaTrack.Track;
 }
Example #4
0
        protected override void Initialize(Interop.Media.MediaTrack mediaTrack)
        {
            base.Initialize(mediaTrack);

            var videoTrack = (Interop.Media.VideoTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.VideoTrack));

            Height       = videoTrack.Height;
            Width        = videoTrack.Width;
            SarNum       = videoTrack.SarNum;
            SarDen       = videoTrack.SarDen;
            FrameRateNum = videoTrack.FrameRateNum;
            FrameRateDen = videoTrack.FrameRateDen;
        }
Example #5
0
 internal AudioTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Example #6
0
 internal UnkownTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Example #7
0
 internal SubtitleTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Example #8
0
 protected MediaTrack(Interop.Media.MediaTrack mediaTrack)
 {
     Initialize(mediaTrack);
 }
Example #9
0
 internal VideoTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }