v3.9.2
Plugin Playkit Support
v3.9.2
Bug Fixes
- FEM-2442| Add support in Device Specific data on the youbora config Json
"device":{
"deviceCode": "AndroidTV",
"brand": "Xiaomi",
"model": "Mii3",
"type": "TvBox",
"osName": "Android/Oreo",
"osVersion": "8.1"
}
Example for adding Device specific data to Youbora config
private JsonObject getYouboraJsonObject(boolean isLive, String title) {
JsonObject pluginEntry = new JsonObject();
pluginEntry.addProperty("accountCode", "test");
pluginEntry.addProperty("username", "[email protected]");
pluginEntry.addProperty("haltOnError", true);
pluginEntry.addProperty("enableAnalytics", true);
pluginEntry.addProperty("enableSmartAds", true);
//Device json.
JsonObject deviceJson = new JsonObject();
deviceJson.addProperty("deviceCode", "AndroidTV");
deviceJson.addProperty("brand", "Xiaomi");
deviceJson.addProperty("model", "Mii3");
deviceJson.addProperty("type", "TvBox");
deviceJson.addProperty("osName", "Android/Oreo");
deviceJson.addProperty("osVersion", "8.1");
//Media entry json.
JsonObject mediaEntryJson = new JsonObject();
mediaEntryJson.addProperty("isLive", isLive);
mediaEntryJson.addProperty("title", title);
//Youbora ads configuration json.
JsonObject adsJson = new JsonObject();
adsJson.addProperty("adsExpected", true);
adsJson.addProperty("campaign", "zzz");
//Configure custom properties here:
JsonObject propertiesJson = new JsonObject();
propertiesJson.addProperty("genre", "");
propertiesJson.addProperty("type", "");
propertiesJson.addProperty("transaction_type", "");
propertiesJson.addProperty("year", "");
propertiesJson.addProperty("cast", "");
propertiesJson.addProperty("director", "");
propertiesJson.addProperty("owner", "");
propertiesJson.addProperty("parental", "");
propertiesJson.addProperty("price", "");
propertiesJson.addProperty("rating", "");
propertiesJson.addProperty("audioType", "");
propertiesJson.addProperty("audioChannels", "");
propertiesJson.addProperty("device", "");
propertiesJson.addProperty("quality", "");
//You can add some extra params here:
JsonObject extraParamJson = new JsonObject();
extraParamJson.addProperty("param1", "param1");
extraParamJson.addProperty("param2", "param2");
//Add all the json objects created before to the pluginEntry json.
pluginEntry.add("device", deviceJson);
pluginEntry.add("media", mediaEntryJson);
pluginEntry.add("ads", adsJson);
pluginEntry.add("properties", propertiesJson);
pluginEntry.add("extraParams", extraParamJson);
return pluginEntry;
}
Gradle
- implementation 'com.kaltura.playkit:youboraplugin:3.9.2'