![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
A protocol for handling playback source refresh results, which developers need to implement. More...
#include "AVPDelegate.h"
Instance Methods | |
| (void) | - onError: |
| Called by the player when the refresh operation fails. | |
| (void) | - onSuccess: |
| Called by the player when the refresh operation succeeds. | |
A protocol for handling playback source refresh results, which developers need to implement.
This protocol notifies developers when the player requests playback source refresh, such as when a resource has expired or needs updating. The methods in this protocol are called to provide the refresh results to the developer, including success or failure.
| - (void) onError: | (NSString *) | errorMsg |
Called by the player when the refresh operation fails.
| errorMsg | A string describing the reason for the failure. |
This method indicates that the refresh operation has failed. Developers can use errorMsg to capture failure details and handle subsequent processing accordingly.
| - (void) onSuccess: | (id) | newSource |
Called by the player when the refresh operation succeeds.
| newSource | The new playback source object containing the updated information. |
This method indicates that the refresh operation has been successfully completed. Developers need to pass the updated newSource back to the player so that it can load the latest resource.