Releases: kaltura/playkit-android-youbora
Releases · kaltura/playkit-android-youbora
v4.8.3
v4.8.2
v4.8.1
v4.8.0
v4.7.0
Changes from v4.6.0
Plugin Playkit Support
v4.7.0
Upgrades
- FEC-9916 | Upgrade to youbora v6.7.3
Bug Fixes
-
FEC-9958 | Prevent fatal error to be sent more than once
-
FEM-9957 | Add missing support in
appName
&appReleaseVersion
Example1:
JsonObject pluginEntry = new JsonObject();
pluginEntry.addProperty("accountCode", "kalturatest");
pluginEntry.addProperty("username", "[email protected]");
pluginEntry.addProperty("haltOnError", true);
pluginEntry.addProperty("appName", "TestApp");
pluginEntry.addProperty("appReleaseVersion", "v1.0");
//Optional - Device json o/w youbora will decide by its own.
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);
//Set plugin entry to the plugin configs.
pluginConfigs.setPluginConfig(YouboraPlugin.factory.getName(), pluginEntry);
return pluginConfigs;
}
Example 2
private fun getYouboraBundle(): Bundle {
val optBundle = Bundle()
//Youbora config bundle. Main config goes here.
optBundle.putString(KEY_ACCOUNT_CODE, ACCOUNT_CODE)
optBundle.putString(KEY_USERNAME, UNIQUE_USER_NAME)
optBundle.putBoolean(KEY_ENABLED, true)
optBundle.putString(KEY_APP_NAME, "TestApp");
optBundle.putString(KEY_APP_RELEASE_VERSION, "v1.0");
//Media entry bundle.
optBundle.putString(KEY_CONTENT_TITLE, MEDIA_TITLE)
//Optional - Device bundle o/w youbora will decide by its own.
optBundle.putString(KEY_DEVICE_CODE, "AndroidTV")
optBundle.putString(KEY_DEVICE_BRAND, "Xiaomi")
optBundle.putString(KEY_DEVICE_MODEL, "Mii3")
optBundle.putString(KEY_DEVICE_TYPE, "TvBox")
optBundle.putString(KEY_DEVICE_OS_NAME, "Android/Oreo")
optBundle.putString(KEY_DEVICE_OS_VERSION, "8.1")
//Youbora ads configuration bundle.
optBundle.putString(KEY_AD_CAMPAIGN, CAMPAIGN)
//Configure custom properties here:
optBundle.putString(KEY_CONTENT_GENRE, GENRE)
optBundle.putString(KEY_CONTENT_TYPE, TYPE)
optBundle.putString(KEY_CONTENT_TRANSACTION_CODE, TRANSACTION_TYPE)
optBundle.putString(KEY_CONTENT_PRICE, PRICE)
optBundle.putString(KEY_CONTENT_ENCODING_AUDIO_CODEC, AUDIO_TYPE)
optBundle.putString(KEY_CONTENT_CHANNEL, AUDIO_CHANNELS)
val contentMetadataBundle = Bundle()
contentMetadataBundle.putString(KEY_CONTENT_METADATA_YEAR, YEAR)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_CAST, CAST)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_DIRECTOR, DIRECTOR)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_OWNER, OWNER)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_PARENTAL, PARENTAL)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_RATING, RATING)
contentMetadataBundle.putString(KEY_CONTENT_METADATA_QUALITY, QUALITY)
optBundle.putBundle(KEY_CONTENT_METADATA, contentMetadataBundle)
//You can add some extra params here:
optBundle.putString(KEY_CUSTOM_DIMENSION_1, EXTRA_PARAM_1)
optBundle.putString(KEY_CUSTOM_DIMENSION_2, EXTRA_PARAM_2)
return optBundle
}
Gradle
- implementation 'com.kaltura.playkit:youboraplugin:4.7.0'
v4.6.0
v4.5.0
Changes from v4.4.0
Plugin Playkit Support
v4.5.0
Upgrades
- Upgrade to youbora v6.6.4
Bug Fixes
-
FEM-2792 | remove default false value as false for isLive in youbora config so if not passed will be calculated automatically
-
FEM-2782 | add support in kalturaInfo in youbora properties
-
FEM-2747 | upgrade plugin to 6.6.4
Gradle
- implementation 'com.kaltura.playkit:youboraplugin:4.5.0'