Exoplayer SDK with Nowtilus SSAI JIO
This document explains the process to integrate MM SDK with Google Exoplayer version v2.12.2 and v2.11.8
STEP 1 :
jar cvf <name_of_the_jar>.jar .STEP 2: Add the .jar file as a dependency in the Exoplayer build.gradle file.
api files ('name_of_the_jar.jar')STEP 3: Add the below lines to the Exoplayer PlayerActivity.java.
import com.mediamelon.smartstreaming.MMQBRMode;
import com.mediamelon.smartstreaming.MMSmartStreaming;
import com.mediamelon.smartstreaming.MMSmartStreamingExo2;
import com.mediamelon.smartstreaming.MMSmartStreamingInitializationStatus;
import com.mediamelon.smartstreaming.MMSmartStreamingObserver;
import com.mediamelon.qubit.PropertyReader;STEP 4 :Add the below lines in onCreate method of PlayerActivity.java.
MMSmartStreamingExo2.getInstance().setContext(getApplicationContext()); //Please make sure to provide the application's context
STEP 5: Get the mediaURL and vastURL from the Nowtilus SSAI stream url.
STEP 6: Add the below lines to the initializePlayer() method. Add the lines after the player is initialized and not null.
STEP 7: Add Macro Parameters API
STEP 8: Subscribe to AD EVENTS and Pass the Macros to SSAI .
List of AD EVENTS
Event Callback
Description
Step 9 : Get Ad Related Information.
Step 10 : Get SDK Version Information
Sample Application
Complete Integration
Last updated