Skip to main content

Configuration and Functions

To find the detailed configuration and functions please refer to Bambuser Player API Reference

Button Configurations

Each button type has different modes of operation:

  • none → will hide the button.
  • event → emits an event to be captured by your event handler.
  • auto → uses the SDK's default behavior.

Dismiss Button

Property NameValueDescription
dismissnoneHides the button, no events emits
dismisseventEmits an event that can be handled by your custom event handler.
dismissminimizeNot applicable in the Mobile SDK.

Product Button Configs

Property NameValueDescription
productnoneEmits an event – implement your own product view logic.
producteventEmits an event that can be handled by your custom handler.
productautoDefault behavior – opens the product detail modal.

Checkout Button Configs

Property NameValueDescription
checkoutnoneEmits an event – implement your own checkout flow.
checkoutautoDefault behavior – opens the product detail modal.

ActionCard Button Configs

Property NameValueDescription
actionCardnoneEmits an event – handle navigation in your app.
actionCardautoEmits an event – Default behavior – opens configured link in a webview. ⚠️ Recommended: Use none and handle redirection from your app.
configuration: [
"buttons": [
"dismiss": "none", // "none" | "event" | "auto"
"product": "none", // "none" | "event" | "auto"
"checkout": "none", // "none" | "auto"
"actionCard": "none", // "none" | "auto"
]
]

UI Configurations

⚠️ All UI flags must be nested under a "ui" dictionary — not at the top level of configuration.

configuration: [
"ui": [
"hideEmojiOverlay": true,
"hideActionBar": false,
"hideShareButton": false,
"hideVolumeButton": false,
"hideClosedCaptionsButton": false,
"hidePlaybackRateButton": false,
"hidePromotedShows": false,
]
]
Property NameTypeDescription
hideActionBarbooleanHides the full action bar. No button will be displayed.
hideCartViewbooleanHides the cart view in the modal, showing only product listing.
hideChatOverlaybooleanHides the chat overlay.
hideEmojiOverlaybooleanHides the emoji overlay on the player.
hideProductListbooleanHides the product list.
hideShareButtonbooleanHides the share button.
hideShareViewbooleanHides the share view.
hideVolumeButtonbooleanHides the volume control button.
hideClosedCaptionsButtonbooleanHides the closed captions / subtitles button.
hidePlaybackRateButtonbooleanHides the playback speed button.
hidePromotedShowsbooleanHides the promoted shows carousel inside the player.

Tracking Configurations

Property NameTypeDescription
enableTrackingPointbooleanSends all tracking information. You will receive notifications in the onNewEventReceived delegate method.

Player Behavior Configurations

Property NameTypeDefaultDescription
autoplaybooleantrueAutomatically starts playback when the player is presented. The player transitions through .loading then .playing states. When false, call playerView.play() manually to start playback.
configuration: [
"autoplay": false // Player will not start automatically — call playerView.play() when ready
]

Full Configuration Example

let config = BambuserVideoConfiguration(
type: .live(id: "your-show-id"),
events: ["*"],
configuration: [
"buttons": [
"dismiss": "none", // Hides dismiss button, emits event
"product": "none", // Emits event on product tap
],
"ui": [
"hideEmojiOverlay": true,
"hidePlaybackRateButton": false,
"hidePromotedShows": false,
],
"autoplay": true,
"currency": "USD", // Required for product hydration
"locale": "en-US", // Required for product hydration
]
)