BMPSourceConfiguration

Deprecated

Use SourceItem instead.

Objective-C


@interface BMPSourceConfiguration : BMPConfiguration

Swift

class SourceConfiguration : Configuration

Contains configuration values regarding the media which should be played by the player.

  • The playback type of the source configuration. Possible values are defined in BMPPlaybackType.h.

    Declaration

    Objective-C

    @property (nonatomic) BMPPlaybackType playbackType;

    Swift

    var playbackType: BMPPlaybackType { get set }
  • Indicates whether to repeat all sources after being played.

    Declaration

    Objective-C

    @property (nonatomic) BOOL repeatAll;

    Swift

    var repeatAll: Bool { get set }
  • The first source item to be played.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) BMPSourceItem *firstSourceItem;

    Swift

    var firstSourceItem: SourceItem? { get }
  • Adds a new source item based on the provided URL string.

    Declaration

    Objective-C

    - (BOOL)addSourceItemWithString:(nonnull NSString *)urlString
                              error:(NSError *_Nullable *_Nullable)error;

    Swift

    func addSourceItem(urlString: String) throws

    Parameters

    urlString

    The URL to a DASH, HLS or Progressive MP4 source which is used to create a new source item to be added.

    Return Value

    YES if the source item was added correctly, NO otherwise.

  • Adds a new source item based on the provided URL.

    Declaration

    Objective-C

    - (BOOL)addSourceItemWithUrl:(nonnull NSURL *)url
                           error:(NSError *_Nullable *_Nullable)error;

    Swift

    func addSourceItem(url: URL) throws

    Parameters

    url

    The URL to a DASH, HLS or Progressive MP4 source which is used to create a new SourceItem to be added.

    Return Value

    YES if the source item was added correctly, NO otherwise.

  • Adds a new source item.

    Declaration

    Objective-C

    - (void)addSourceItem:(nonnull BMPSourceItem *)sourceItem;

    Swift

    func addSourceItem(item sourceItem: SourceItem)

    Parameters

    sourceItem

    The source item to be added.