BMPBufferApi

Objective-C

@protocol BMPBufferApi <NSObject>

Swift

protocol BufferApi : NSObjectProtocol

Provides the means to configure buffer settings and to query the current buffer state. Accessible through Player.buffer.

  • Returns the buffer level in seconds for the specified type.

    Declaration

    Objective-C

    - (nonnull BMPBufferLevel *)getLevel:(BMPBufferType)type;

    Swift

    func getLevel(_ type: BufferType) -> BMPBufferLevel

    Parameters

    type

    The type of buffer to return the level for.

  • Sets the target level in seconds for the forward buffer.

    Declaration

    Objective-C

    - (void)setTargetLevel:(NSTimeInterval)value;

    Swift

    func setTargetLevel(_ value: TimeInterval)

    Parameters

    value

    The value to set.