Exoplayer SDK with Nowtilus SSAI
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 :Register Mediamelon SDK using your assigned customerID.
Variable
Description
STEP 5 : Disable manifest fetching by the SDK.
STEP 6: Create the Content Metadata object inside the initializePlayer() method of PlayerActivity.java .
STEP 7: Get the mediaURL and vastURL from the Nowtilus SSAI stream url.
STEP 8: Add the below lines to the initializePlayer() method. Add the lines after the player is initialized and not null.
STEP 9: Subscribe to AD EVENTS .
List of AD EVENTS
Event Callback
Description
STEP 10: Add the below lines to the releasePlayer() method.
Step 11 : Get Ad Related Information.
Sample Application
Complete Integration
Last updated