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
BMPPlayer
instance.The
BMPPlayer
is 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
BMPPlayer
instance.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]
asanalytics
tocreatePlayerWithPlayerConfig: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
playerConfig
The
BMPPlayer
is configured via the providedplayerConfig
. -
Creates and configures a
BMPPlayer
instance.@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
playerConfig
The
BMPPlayer
is configured via the providedplayerConfig
.analytics
The
BMPAnalyticsPlayerConfig
can be used to customize the analytics data collection, or disable analytics support for theBMPPlayer
instance. -
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
BMPPlayer
instance where Analytics is enabled and configured via the providedBMPPlayerConfig
and 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.");