Beispiel #1
0
        public static MediaStatistics ToMediaStatistics(this libvlc_media_stats_t stats)
        {
            MediaStatistics ms = new MediaStatistics();

            ms.DecodedAudio       = stats.i_decoded_audio;
            ms.DecodedVideo       = stats.i_decoded_video;
            ms.DemuxBitrate       = stats.f_demux_bitrate;
            ms.DemuxCorrupted     = stats.i_demux_corrupted;
            ms.DemuxDiscontinuity = stats.i_demux_discontinuity;
            ms.DemuxReadBytes     = stats.i_demux_read_bytes;
            ms.DisplayedPictures  = stats.i_displayed_pictures;
            ms.InputBitrate       = stats.f_input_bitrate;
            ms.LostAbuffers       = stats.i_lost_abuffers;
            ms.LostPictures       = stats.i_lost_pictures;
            ms.PlayedAbuffers     = stats.i_played_abuffers;
            ms.ReadBytes          = stats.i_read_bytes;
            ms.SendBitrate        = stats.f_send_bitrate;
            ms.SentBytes          = stats.i_sent_bytes;
            ms.SentPackets        = stats.i_sent_packets;

            return(ms);
        }
Beispiel #2
0
 public static extern int libvlc_media_get_stats(IntPtr p_md, out libvlc_media_stats_t p_stats);