BMPPlayerFactory
@interface BMPPlayerFactory : NSObject
Factory to create a Player instance.
-
Returns the player SDK version number.
Declaration
Objective-C
@property (class, nonatomic, readonly) NSString *_Nonnull sdkVersion; -
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE; -
Deprecated
Use createPlayerWithPlayerConfig: instead.
Creates a player instance configured via the provided PlayerConfig.
Declaration
Objective-C
+ (nonnull id<BMPPlayer>)createWithPlayerConfig: (nonnull BMPPlayerConfig *)playerConfig; -
Deprecated
Use createPlayer instead.
Creates a player instance with the default PlayerConfig.
Declaration
Objective-C
+ (nonnull id<BMPPlayer>)create;
-
Creates and configures a
BMPPlayerinstance.The
BMPPlayeris configured with a default configuration. Analytics data collection is enabled with default configuration.@Note If you have manually configured Bitmovin Analytics using the
BitmovinAnalyticsCollector, either migrate to the analytics namespace from the player or disable analytics by passing[BMPAnalyticsPlayerConfig disabled]tocreatePlayerWithPlayerConfig:analytics:. Using both, analytics on the player and a manually configured collector will result in a crash.Declaration
Objective-C
+ (nonnull id<BMPPlayer>)createPlayer; -
Creates and configures a
BMPPlayerinstance.Analytics data collection is enabled with default configuration.
@Note If you have manually configured Bitmovin Analytics using the
BitmovinAnalyticsCollector, either migrate to the bundled collector or disable bundled analytics by passing[BMPAnalyticsPlayerConfig disabled]asanalyticstocreatePlayerWithPlayerConfig:analytics:. Using both, the bundled and the manually configured collector will result in a crash.Declaration
Objective-C
+ (nonnull id<BMPPlayer>)createPlayerWithPlayerConfig: (nonnull BMPPlayerConfig *)playerConfig;Parameters
playerConfigThe
BMPPlayeris configured via the providedplayerConfig. -
Creates and configures a
BMPPlayerinstance.@Note If you have manually configured Bitmovin Analytics using the
BitmovinAnalyticsCollector, either migrate to the bundled collector or disable bundled analytics by using[BMPAnalyticsPlayerConfig disabled]asanalytics. Using both, the bundled and the manually configured collector will result in a crash.Declaration
Objective-C
+ (nonnull id<BMPPlayer>) createPlayerWithPlayerConfig:(nonnull BMPPlayerConfig *)playerConfig analytics:(nonnull BMPAnalyticsPlayerConfig *)analytics;Parameters
playerConfigThe
BMPPlayeris configured via the providedplayerConfig.analyticsThe
BMPAnalyticsPlayerConfigcan be used to customize the analytics data collection, or disable analytics support for theBMPPlayerinstance. -
Deprecated
Use createPlayerWithPlayerConfig:analytics: instead.
Undocumented
Declaration
Objective-C
+ (id<BMPPlayer>)createWithAnalyticsConfig:(BMAAnalyticsConfig *)analyticsConfig defaultMetadata:(BMADefaultMetadata *)defaultMetadata __deprecated_msg("Use createPlayerWithPlayerConfig:analytics: instead."); -
Deprecated
Use createPlayerWithPlayerConfig:analytics: instead.
Creates a
BMPPlayerinstance where Analytics is enabled and configured via the providedBMPPlayerConfigand theBMAAnalyticsConfig.Declaration
Objective-C
+ (nonnull id<BMPPlayer>) createWithPlayerConfig:(nonnull BMPPlayerConfig *)playerConfig analyticsConfig:(nonnull BMAAnalyticsConfig *)analyticsConfig; -
Deprecated
Use createPlayerWithPlayerConfig:analytics: instead.
Undocumented
Declaration
Objective-C
+ (id<BMPPlayer>)createWithPlayerConfig:(BMPPlayerConfig *)playerConfig analyticsConfig:(BMAAnalyticsConfig *)analyticsConfig defaultMetadata:(BMADefaultMetadata *)defaultMetadata __deprecated_msg("Use createPlayerWithPlayerConfig:analytics: instead.");
BMPPlayerFactory Class Reference