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;

Analytics

  • 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] to createPlayerWithPlayerConfig: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] as analytics to createPlayerWithPlayerConfig: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 provided playerConfig.

  • 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] as 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
                           analytics:(nonnull BMPAnalyticsPlayerConfig *)analytics;

    Parameters

    playerConfig

    The BMPPlayer is configured via the provided playerConfig.

    analytics

    The BMPAnalyticsPlayerConfig can be used to customize the analytics data collection, or disable analytics support for the BMPPlayer instance.

  • Deprecated

    Use createPlayerWithPlayerConfig:analytics: instead.

    Creates a BMPPlayer instance where Analytics is enabled and configured via the BMAAnalyticsConfig.

    Declaration

    Objective-C

    + (nonnull id<BMPPlayer>)createWithAnalyticsConfig:
        (nonnull BMAAnalyticsConfig *)analyticsConfig;
  • 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 provided BMPPlayerConfig and the BMAAnalyticsConfig.

    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.");