Protocols
The following protocols are available globally.
-
The VideoPlayerDelegate provides event callbacks for the VideoPlayer. VideoPlayerDelegate provides a small set of delegate methods in favor of notifications to allow multiple receivers of the VideoPlayer event callbacks since only one player is typically used in an application. - warning: These callbacks don’t necessarily occur on the main thread so make sure you wrap any UI code in a GCD block: @code dispatch_async(dispatch_get_main_queue(), ^{ // Update UI });
See moreDeclaration
Objective-C
@protocol VideoPlayerDelegate <NSObject>
Swift
protocol VideoPlayerDelegate : NSObjectProtocol