Skip to content

[3.0] VLCMedia: New media statistics property proposal

Hank Anderson requested to merge Sumou/VLCKit:3.0-VLCMedia-new-stats into 3.0

A proposal for a new media statistics property.

  • Example of use
// ObjC
VLCMedia *media = ...;
VLCMediaStats stats = media.statistics;
int readBytes           = stats.readBytes;
float inputBitrate      = stats.inputBitrate;
int demuxReadBytes      = stats.demuxReadBytes;
float demuxBitrate      = stats.demuxBitrate;
int demuxCorrupted      = stats.demuxCorrupted;
int demuxDiscontinuity  = stats.demuxDiscontinuity;
int decodedVideo        = stats.decodedVideo;
int decodedAudio        = stats.decodedAudio;
int displayedPictures   = stats.displayedPictures;
int lostPictures        = stats.lostPictures;
int playedAudioBuffers  = stats.playedAudioBuffers;
int lostAudioBuffers    = stats.lostAudioBuffers;
int sentBytes           = stats.sentBytes;
int sentPackets         = stats.sentPackets;
float sendBitrate       = stats.sendBitrate;
// Swift
let media: VLCMedia = ...
let stats: VLCMedia.Stats = media.statistics
let readBytes: Int32            = stats.readBytes
let inputBitrate: Float         = stats.inputBitrate
let demuxReadBytes: Int32       = stats.demuxReadBytes
let demuxBitrate: Float         = stats.demuxBitrate
let demuxDiscontinuity: Int32   = stats.demuxDiscontinuity
let decodedVideo: Int32         = stats.decodedVideo
let decodedAudio: Int32         = stats.decodedAudio
let displayedPictures: Int32    = stats.displayedPictures
let lostPictures: Int32         = stats.lostPictures
let playedAudioBuffers: Int32   = stats.playedAudioBuffers
let lostAudioBuffers: Int32     = stats.lostAudioBuffers
let sentBytes: Int32            = stats.sentBytes
let sentPackets: Int32          = stats.sentPackets
let sendBitrate: Float          = stats.sendBitrate

best regards.

Merge request reports

Loading