AVPlayer with Google DAI (Cocoapods)
This guide provides detailed instructions on integrating the MediaMelon Player SDK into an iOS Media Player Application that supports Google Dynamic Ad Insertion
Step 0: Creating AVPlayer based media player application
cd ~/
mkdir sampleintegration
cd sampleintegration/wget https://sdk.mediamelon.com/<Customer ID>/AVPlayerWithGoogleIMA.zipStep 1: Building the MediaMelonSmartStreaming Framework
sudo gem install cocoapods
pod init
touch Podfile
open Podfiletarget 'AVPlayerWithGoogleIMA' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'MediaMelonSmartStreaming/AVPlayerWithGoogleDAI', '~> 1.1.13'
# Pods for SwiftDemo
endStep 2: Integrating the MediaMelonSmartStreaming Framework
1. Import Frameworks
2. Provide Asset information
3. Cleaning up the SDK Session
5. Disable manifest fetching by the SDK
6. Reporting events and errors
Last updated