Ejemplo n.º 1
0
        public static MediaTrackInfo ToMediaInfo(this libvlc_media_track_info_t tInfo)
        {
            MediaTrackInfo mti = new MediaTrackInfo();
            mti.Channels = tInfo.audio.i_channels;
            mti.Codec = tInfo.i_codec;
            mti.Height = tInfo.video.i_width;
            mti.Id = tInfo.i_id;
            mti.TrackType = (TrackType)(int)tInfo.i_type;
            mti.Level = tInfo.i_level;
            mti.Profile = tInfo.i_profile;
            mti.Rate = tInfo.audio.i_rate;
            mti.Width = tInfo.video.i_width;

            return mti;
        }
Ejemplo n.º 2
0
        public static MediaTrackInfo ToMediaInfo(this libvlc_media_track_info_t tInfo)
        {
            MediaTrackInfo mti = new MediaTrackInfo();

            mti.Channels  = tInfo.audio.i_channels;
            mti.Codec     = tInfo.i_codec;
            mti.Height    = tInfo.video.i_width;
            mti.Id        = tInfo.i_id;
            mti.TrackType = (TrackType)(int)tInfo.i_type;
            mti.Level     = tInfo.i_level;
            mti.Profile   = tInfo.i_profile;
            mti.Rate      = tInfo.audio.i_rate;
            mti.Width     = tInfo.video.i_width;

            return(mti);
        }