Bitmovin iOS v3.44 with Content Provider Metrics
Step by step integration of the MediaMelon Player SDK with Bitmovin Player 3.44
Integrating the MediaMelonSmartStreaming Framework
1. Import Frameworks
import BitmovinPlayer
import MMGenericFramework 2. Provide Asset information
private func configureMMSDK(mediaURL: String, vastURL: String) {
let assetInfo = MMAssetInformation(assetURL: mediaURL, assetID: "ASSET_ID", assetName: "ASSET_NAME", videoId: "VIDEO_ID")
assetInfo.setContentType("CONTENT_TYPE")
assetInfo.setDrmProtection("DRM_PROTECTION")
assetInfo.setEpisodeNumber("EPISODE_NUMBER")
assetInfo.setSeriesTitle("SERIES_TITLE")
assetInfo.setSeason("SEASON")
assetInfo.setGenre("GENRE")
// Optional custom metadata
assetInfo.addCustomKVP("KEY1", "VALUE2")
assetInfo.addCustomKVP("KEY2", "VALUE2")
assetInfo.setQBRMode(.QBRModeDisabled, withMetaURL: nil)
let registrationInfo = MMRegistrationInformation(customerID: "CUSTOMER_ID", playerName: "PLAYER_NAME")
registrationInfo.setSubscriberInformation(subscriberID: "SUBSCRIBER_ID", subscriberType: "SUBSCRIBER_TYPE", subscriberTag: "SUBSCRIBER_TAG", hashSubscriberID: true)
BitmovinPlayerIntegrationWrapper.setPlayerRegistrationInformation(registrationInformation: registrationInfo, player: player)
BitmovinPlayerIntegrationWrapper.shared.reportAppData(appName: "APP_NAME", appVersion: "APP_VERSION")
BitmovinPlayerIntegrationWrapper.shared.reportDeviceMarketingName(deviceMarketingName: "DEVICE_MARKETING_NAME")
let isLive = false; //Set this to true for a live stream or false for a VOD stream
// If isLive is not set here, it will be handled internally by the SDK.
BitmovinPlayerIntegrationWrapper.initializeAssetForPlayer(assetInfo: assetInfo, registrationInformation: registrationInfo, player: player, isLive: isLive)
}
3. Cleaning up the SDK Session
4. Create a new session and update the asset information
5. Enabling Content Provider Metrics
Parameter
Value
Last updated