The JWP SDK for Android supports localizing error strings and setting the language in the IMA SDK.
The following default error messages can be overridden by defining string resources in your application's strings.xml file.
|Displayed when the content URL doesn't point to video, or is being redirected to a WiFi portal or proxy.|
|Displayed when the device does not have a hardware decoder that can decode the video content.|
|Displayed when any IO exception occurs - e.g. interrupted stream, failed to read local file.|
|Displayed when an illegal argument is passed to ExoPlayer.|
|Displayed when an HTTP request recieves an unsupported response code - e.g. 500, 404.|
|Displayed when ExoPlayer fails to fetch a segment of content - e.g. attempting to buffer while offline.|
|Displayed when casting is attempted with an unsupported media type.|
|Displayed when loading fails during casting.|
|Displayed when loading failed during casting and a status code is available.|
|Displayed when connecting to Chromecast fails|
To localize the language used during IMA ads:
ImaSdkSettings imaSdkSettings = new ImaSdkSettings(); // Use the 2-letter ISO 639-1 language code for your desired language imaSdkSettings.setLanguage("NL"); ImaAdvertising imaAdvertising = new ImaAdvertising(schedule, imaSdkSettings); playerConfig.setAdvertising(imaAdvertising);
Updated 3 months ago