Windows MediaPlayer average and peak bitrate

Shikhar Jain 1 Reputation point
2021-09-27T08:04:41.293+00:00

Hello,

While using Windows MediaPlayer in the application, we want to collect the average and peak bitrate of the currentplayback stream. However, I can only find the API for currentplayback bitrate.

Are there any API to report peak and average bitrate for a playback?
Also, CurrentPlaybackBitrate property will return peak or average or any available bitrate?

Best Regards,
Shikhar

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,236 Reputation points Microsoft Vendor
    2021-10-06T02:35:20.183+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Based on the information I got from the team, if you want to get the average and peak bitrate, you might need to look at each stream to get the information. Currently, the easiest way to do this is to check the MF property bags. Some of these (especially when talking about peak / variable bitrates) are content specific. And it might also have differences when you are using adaptive streaming or local file playback.

    You may want to start here: MF_MT_AVG_BITRATE attribute (Mfapi.h) - Win32 apps | Microsoft Learn.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments