Esempio 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.Level = tInfo.i_level;
             mti.Profile = tInfo.i_profile;
             mti.Rate = tInfo.audio.i_rate;
             mti.Width = tInfo.video.i_width;

             return mti;
        }
Esempio n. 2
0
        public static MediaTrackInfo ToMediaInfo(this LibvlcMediaTrackInfoT tInfo)
        {
            var mti = new MediaTrackInfo();
            mti.Channels = tInfo.audio_video.audio.i_channels;
            mti.Codec = tInfo.i_codec;
            mti.Height = tInfo.audio_video.video.i_height;
            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_video.audio.i_rate;
            mti.Width = tInfo.audio_video.video.i_width;

            return mti;
        }