Example #1
0
        protected override void Initialize(libvlc_media_track_info_t *mediaTrack)
        {
            base.Initialize(mediaTrack);

            Height = mediaTrack->video.i_height;
            Width  = mediaTrack->video.i_width;
        }
Example #2
0
 protected virtual void Initialize(libvlc_media_track_info_t *mediaTrack)
 {
     Codec   = mediaTrack->i_codec;
     Id      = mediaTrack->i_id;
     Type    = (TrackType)mediaTrack->i_type;
     Profile = mediaTrack->i_profile;
     Level   = mediaTrack->i_level;
 }
Example #3
0
        /// <summary>
        ///     Create a media track from a pointer, it will distinguish type of media track auto.
        /// </summary>
        /// <param name="pointer">pointer of media track</param>
        /// <returns>a audio track, video track, subtitle track or unknown track</returns>
        public static MediaTrackInfo CreateFromPointer(libvlc_media_track_info_t *pointer)
        {
            switch ((TrackType)pointer->i_type)
            {
            case TrackType.Audio:
                return(new AudioTrackInfo(pointer));

            case TrackType.Video:
                return(new VideoTrackInfo(pointer));

            default:
                return(new UnknownTrackInfo(pointer));
            }
        }
Example #4
0
 internal VideoTrackInfo(libvlc_media_track_info_t *mediaTrack) : base(mediaTrack)
 {
 }
Example #5
0
 protected override void Initialize(libvlc_media_track_info_t *mediaTrack)
 {
     base.Initialize(mediaTrack);
     Channels = mediaTrack->audio.i_channels;
     Rate     = mediaTrack->audio.i_rate;
 }
Example #6
0
 protected MediaTrackInfo(libvlc_media_track_info_t *mediaTrack)
 {
     Initialize(mediaTrack);
 }
Example #7
0
 internal UnknownTrackInfo(libvlc_media_track_info_t *mediaTrack) : base(mediaTrack)
 {
 }