Get information about profile switch

When the media player switches its current profile to a new profile, you can retrieve information about the switch, such as when it switched or why a different bit rate was used.

  1. Listen for the ProfileChangedEvent event. The PSDK media player dispatches this event when its adaptive bit-rate switching algorithm switches to another profile due to network or machine conditions. (When the bit rate or the period changes.)
  2. When the event occurs, check its properties for information about the switch:
    • profile: Identifier for the new profile being used.
    • time: The stream time at which the switch occurred.
    • description: Textual description of the reason for a bit-rate change, as a string of semicolon-separated key/value pairs. Includes a maximum of one Reason and one Bitrate. If the information is not available or the bit rate did not change, this string is empty.
      Key name Possible values
      Reason
      • Network Adaptation
      • Seek
      • Profile Not Supported
      • Failover
      Bitrate
      • up: The bit rate increased
      • down: The bit rate decreased
      Examples of returned description strings:
      "Bitrate::=up;Reason::=Network Adaptation;"
      
      "Bitrate::=down;Reason::=Failover;"