Bitmovin IOS v2.66(Nowtilus SSAI)
Step by step integration of the Mediamelon Player SDK with Nowtilus SSAI with Bitmovin Player 2.66
Step 0: Creating Bitmovin Player based media player application
Create a directory for integration by doing the following. Open the terminal, change directory to the home directory, and create a folder sampleintegration
cd ~/
mkdir sampleintegration
cd sampleintegration/Pull the Sample Application from https://sdk.mediamelon.com/$CustomerID/iOS/SampleBitmovinPlayer_iOS_v2.66_<Cocoapod Version>_v<Core iOS SDK version>.zipand unzip it
wget https://sdk.mediamelon.com/$CustomerID/iOS/SampleBitmovinPlayer_iOS_v2.66_<Cocoapod Version>_v<Core iOS SDK version>.zip Get the sample app dependencies by changing the directory to the ~/sampleintegration/https://sdk.mediamelon.com/$CustomerID/iOS/SampleBitmovinPlayer_iOS_v2.66_<Cocoapod Version>_v<Core iOS SDK version> and execute the following commands
Step 1: Building the MediaMelonSmartStreaming Framework
Execute the following two commands on the terminal in the folder ~/sampleintegration/SampleBitmovinPlayer_iOS_v2.66_<Cocoapod Version>_v<Core iOS SDK version>
sudo gem install cocoapods
pod init
touch Podfile
open PodfileEdit the Podfile
target 'BasicPlayback' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'MMSmartStreamingSDK', git: 'https://bitbucket.org/mediameloninc/mmsmartstreamingios-genericpods.git', tag: '0.3.2'
source 'https://github.com/bitmovin/cocoapod-specs.git'
pod 'BitmovinPlayer','~>2.66'
# Pods for BasicPlayback
endFinally, install the pod pod install
Step 2: Integrating the MediaMelonSmartStreaming Framework
There are five steps involved for integrating the MediaMelon Player SDK using the MediaMelonSmartStreaming Framework:
Importing the framework
Providing asset information for the content before starting the player and after creating its instance
Cleaning up the SDK integration session
Disable manifest fetching by the SDK
Initializing SSAI
Open the project file ~/sampleintegration/SampleBitmovinPlayer_v2.66_SSAI/BasicPlayback.workspace in XCode and edit the file ViewController.swiftas mentioned below
1. Import Frameworks
2. Provide Asset information
3. Cleaning up the SDK Session
5. Disable manifest fetching by the SDK
If your workflow restricts the manifest to be accessible from both player and the MediaMelon Player SDK simultaneously, then, you can disable the fetch of manifest via disableManifestsFetch() in method _configureMMSDKwithURL()
5. Add the SSAIManagerDelegate
Add the SSAIManagerDelegate to the ViewController class in ViewController.swift
6. Initialize the SSAI Ad Manager
Initialize the SSAI Ad Manager to track the Ads and report Ad related metrics
7. Create a new session and update the asset information
During playback updateAssetInfo can be used to create a new session and update the asset information. The usage can be seen in the updateAsset function in the ViewController
8. Getting the mediaURL and vastURL from the Session Resolver URL
The session resolver URL as provided by Nowtilus needs to be used to generate the mediaURL and the vastURL. This is done in code as follows
Call thenitialize the SSAI Ad Manager to track the Ads and report Ad related metrics. The mediaURL and vastURL is retur
Last updated
Was this helpful?