Skip to main content

BBNativeShorts

class BBNativeShorts

A Utility class to create players

Functions

createJsonEmbedUrl

static func createJsonEmbedUrl(baseUrl: String, appIndicator: String, appId: String, contentIndicator: String? = nil, contentId: String? = nil) -> String

Create a json embed URL

  • Parameter baseUrl the base URL, e.g. "https://demo.bbvms.com"
  • Parameter appIndicator the application indicator, e.g. "sh" for shorts experience
  • Parameter appId the application config id, e.g. the shorts experience id
  • Parameter contentIndicator the content indicator (optional), reserved for future use
  • Parameter contentId the content id (optional), reserved for future use
  • Returns the json embed URL

createShortsView

static func createShortsView(uiViewController: UIViewController, frame: CGRect, jsonUrl: String, options: [String : Any]?) -> BBNativeShortsView

BBNativeShortsView Factory

Parameters:

NameDescription
frameThe size of the player
jsonUrlThe EMBED url the player will use to setup
optionsA dictionary with options to send to the player st creation. - Options: - "displayFormat": String full

Returns: BBNativeShortsView

createShortsView

static func createShortsView(uiViewController: UIViewController, frame: CGRect, jsonUrl: String) -> BBNativeShortsView

BBNativeShortsView Factory

Parameters:

NameDescription
frameThe size of the player
jsonUrlThe EMBED url the player will use to setup

Returns: BBNativeShortsView