BMPRemoteControlConfiguration

Objective-C


@interface BMPRemoteControlConfiguration : BMPConfiguration

Swift

class RemoteControlConfiguration : Configuration

Contains configuration values which can be used to alter the behaviour of the player when it comes to remote playback.

  • A URL to a CSS file the Chromecast receiver app loads. Can be used to style the receiver app.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSURL *receiverStylesheetUrl;

    Swift

    var receiverStylesheetUrl: URL? { get set }
  • Arbitrary configuration values that are sent to the remote control receiver.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSMutableDictionary<NSString *, NSString *> *_Nonnull customReceiverConfiguration;

    Swift

    var customReceiverConfiguration: NSMutableDictionary { get set }
  • This block can be used to prepare a different BMPSourceConfiguration to be used for remote playback that for local playback. This can be useful when the remote playback device supports different streaming formats, DRM systems, etc. than the local device.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) BMPSourceItem *_Nullable (^) (BMPRemoteControlType, BMPSourceItem *_Nonnull) prepareSource;

    Swift

    var prepareSource: ((BMPRemoteControlType, SourceItem) -> SourceItem?)? { get set }
  • Indicates whether the player should automatically switch to “external playback” mode while the “external screen” mode is active in order to play video content and switch back to “external screen” mode as soon as playback is done. Brief transition may be visible on the external display when automatically switching between the two modes. Default value is NO.

    NOTE: This is only supported with AirPlay.

    Declaration

    Objective-C

    @property (nonatomic) BOOL usesExternalPlaybackWhileExternalScreenIsActive;

    Swift

    var usesExternalPlaybackWhileExternalScreenIsActive: Bool { get set }
  • Indicates whether cookies and credentials will be sent along manifest requests on the Cast receiver

    Default value is NO. NOTE: This is only supported with CAF (v3) receivers.

    Declaration

    Objective-C

    @property (nonatomic) BOOL sendManifestRequestsWithCredentials;

    Swift

    var sendManifestRequestsWithCredentials: Bool { get set }
  • Indicates whether cookies and credentials will be sent along segment requests on the Cast receiver

    Default value is NO. NOTE: This is only supported with CAF (v3) receivers.

    Declaration

    Objective-C

    @property (nonatomic) BOOL sendSegmentRequestsWithCredentials;

    Swift

    var sendSegmentRequestsWithCredentials: Bool { get set }
  • Indicates whether cookies and credentials will be sent along DRM licence requests on the Cast receiver

    Default value is NO. NOTE: This is only supported with CAF (v3) receivers.

    Declaration

    Objective-C

    @property (nonatomic) BOOL sendDrmLicenseRequestsWithCredentials;

    Swift

    var sendDrmLicenseRequestsWithCredentials: Bool { get set }