Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines statistics collected by the network source. The values in this enumeration define property identifiers (PIDs) for the MFNETSOURCE_STATISTICS property.
To retrieve statistics from the network source, call IMFGetService::GetService with the service identifier MFNETSOURCE_STATISTICS_SERVICE and the interface identifier IID_IPropertyStore. The retrieved pointer is an IPropertyStore pointer. To get the value of a network statistic, construct a PROPERTYKEY with fmtid equal to MFNETSOURCE_STATISTICS and pid equal to a value from this enumeration. Then call IPropertyStore::GetValue with the property key to retrieve the value of the statistic as a PROPVARIANT.
In the descriptions that follow, the data type and value-type tag for the PROPVARIANT are listed in parentheses.
Syntax
typedef enum _MFNETSOURCE_STATISTICS_IDS {
  MFNETSOURCE_RECVPACKETS_ID = 0,
  MFNETSOURCE_LOSTPACKETS_ID,
  MFNETSOURCE_RESENDSREQUESTED_ID,
  MFNETSOURCE_RESENDSRECEIVED_ID,
  MFNETSOURCE_RECOVEREDBYECCPACKETS_ID,
  MFNETSOURCE_RECOVEREDBYRTXPACKETS_ID,
  MFNETSOURCE_OUTPACKETS_ID,
  MFNETSOURCE_RECVRATE_ID,
  MFNETSOURCE_AVGBANDWIDTHBPS_ID,
  MFNETSOURCE_BYTESRECEIVED_ID,
  MFNETSOURCE_PROTOCOL_ID,
  MFNETSOURCE_TRANSPORT_ID,
  MFNETSOURCE_CACHE_STATE_ID,
  MFNETSOURCE_LINKBANDWIDTH_ID,
  MFNETSOURCE_CONTENTBITRATE_ID,
  MFNETSOURCE_SPEEDFACTOR_ID,
  MFNETSOURCE_BUFFERSIZE_ID,
  MFNETSOURCE_BUFFERPROGRESS_ID,
  MFNETSOURCE_LASTBWSWITCHTS_ID,
  MFNETSOURCE_SEEKRANGESTART_ID,
  MFNETSOURCE_SEEKRANGEEND_ID,
  MFNETSOURCE_BUFFERINGCOUNT_ID,
  MFNETSOURCE_INCORRECTLYSIGNEDPACKETS_ID,
  MFNETSOURCE_SIGNEDSESSION_ID,
  MFNETSOURCE_MAXBITRATE_ID,
  MFNETSOURCE_RECEPTION_QUALITY_ID,
  MFNETSOURCE_RECOVEREDPACKETS_ID,
  MFNETSOURCE_VBR_ID,
  MFNETSOURCE_DOWNLOADPROGRESS_ID,
  MFNETSOURCE_UNPREDEFINEDPROTOCOLNAME_ID
} MFNETSOURCE_STATISTICS_IDS;
Constants
| MFNETSOURCE_RECVPACKETS_IDValue: 0 The number of packets received (LONG, VT_I4). | 
| MFNETSOURCE_LOSTPACKETS_IDThe number of packets lost (LONG, VT_I4). | 
| MFNETSOURCE_RESENDSREQUESTED_IDThe number of requests to resend packets (LONG, VT_I4). | 
| MFNETSOURCE_RESENDSRECEIVED_IDThe number of resent packets received (LONG) (VT_I4). | 
| MFNETSOURCE_RECOVEREDBYECCPACKETS_IDThe total number of packets recovered by error correction (LONG, VT_I4). | 
| MFNETSOURCE_RECOVEREDBYRTXPACKETS_IDThe total number of packets recovered by retransmission (LONG, VT_I4). | 
| MFNETSOURCE_OUTPACKETS_IDThe total number of packets returned to user, including recovered packets (LONG, VT_I4). | 
| MFNETSOURCE_RECVRATE_IDThe 10-second average receiving rate (LONG, VT_I4). | 
| MFNETSOURCE_AVGBANDWIDTHBPS_IDThe average bandwidth of the clip (LONG, VT_I4). | 
| MFNETSOURCE_BYTESRECEIVED_IDThe total number of bytes received (ULONGLONG, VT_UI8). | 
| MFNETSOURCE_PROTOCOL_IDThe type of control protocol used to receive the data (LONG, VT_I4). The value is a member of the MFNETSOURCE_PROTOCOL_TYPE enumeration. | 
| MFNETSOURCE_TRANSPORT_IDThe type of control protocol used to receive the data (LONG, VT_I4). The value is a member of the MFNETSOURCE_TRANSPORT_TYPE enumeration. | 
| MFNETSOURCE_CACHE_STATE_IDThe status of cache for a media file or entry (LONG, VT_I4). The value is a member of the MFNETSOURCE_CACHE_STATE enumeration. | 
| MFNETSOURCE_LINKBANDWIDTH_IDThe current link bandwidth, in bits per second (LONG, VT_I4). | 
| MFNETSOURCE_CONTENTBITRATE_IDThe current bit rate of the content (LONG, VT_I4). | 
| MFNETSOURCE_SPEEDFACTOR_IDThe negotiated speed factor used in data transmission (LONG, VT_I4). The sender transmits data at the rate of the speed factor multiplied by the bit rate of the content. | 
| MFNETSOURCE_BUFFERSIZE_IDThe playout buffer size, in milliseconds (LONG, VT_I4). | 
| MFNETSOURCE_BUFFERPROGRESS_IDThe percentage of the playout buffer filled during buffering. The value is an integer in the range 0–100. (LONG, VT_I4). | 
| MFNETSOURCE_LASTBWSWITCHTS_IDThe number of ticks since the last bandwidth switch (LONG, VT_I4). | 
| MFNETSOURCE_SEEKRANGESTART_IDThe start of the seekable range, in 100-nanosecond units (ULONGLONG, VT_UI8). | 
| MFNETSOURCE_SEEKRANGEEND_IDThe end of the seekable range, in 100-nanosecond units (ULONGLONG, VT_UI8). | 
| MFNETSOURCE_BUFFERINGCOUNT_IDThe number of times buffering has occurred, including the initial buffering (LONG, VT_I4). | 
| MFNETSOURCE_INCORRECTLYSIGNEDPACKETS_IDThe number of packets that had incorrect signatures (LONG, VT_I4). | 
| MFNETSOURCE_SIGNEDSESSION_IDBoolean value indicating whether the current session is signed (VARIANT_BOOL, VT_BOOL). | 
| MFNETSOURCE_MAXBITRATE_IDThe current maximum bit rate of the content (LONG, VT_I4). | 
| MFNETSOURCE_RECEPTION_QUALITY_IDThe reception quality (LONG, VT_I4). | 
| MFNETSOURCE_RECOVEREDPACKETS_IDThe total number of recovered packets (LONG, VT_I4). | 
| MFNETSOURCE_VBR_IDBoolean value indicating whether the content has a variable bit rate (VARIANT_BOOL, VT_BOOL). | 
| MFNETSOURCE_DOWNLOADPROGRESS_IDThe percentage of the content that has been downloaded. The value is an integer in the range 0–100. (LONG, VT_I4). | 
| MFNETSOURCE_UNPREDEFINEDPROTOCOLNAME_ID | 
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows Vista [desktop apps | UWP apps] | 
| Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] | 
| Header | mfidl.h |