We have added a couple of new APIs to the Brightcove App SDK for Android. They are related to better support for the Japan region and more options for logging debug messages in the BCPlayerView player. Go to Brightcove App SDK for Android to get links to download the latest version of the Brightcove App SDK for Android, which includes these new APIs.
Some developers had reported an InflateException trying to load layouts and other resources from our projects. These will not occur any more and you can still use and customize the XML layout for the player controls.
In the previous release, Android logging messages were turned on for the BCPlayerView by default. We have changed the default, so that logging is disabled by default. We added the logEnabled(true) API to enable logging.
All BCPlayerView messages are tagged with the same name, BCPlayerView. It is important to note that you should keep logging turned on only during development and any call to logEnabled(true) should be removed before you publish your app. By default, log messages on the BCPlayerView are disabled.
For example:
BCPlayerView mPlayer;
mPlayer = (BCPlayerView) findViewById(R.id.player);
mPlayer.logEnabled(true);
mPlayer.load(pVideo); //video fetched via the media apis, type is Video
mPlayer.start();
The BCPlayerView supports two regions US and Japan (JP). The region is used to track BCPlayerView start streams to the appropriate URLs. The region is usually set by reading the region that the Media API has been set and then passing this to the BCPlayerView. We have added two new APIs to that effect, getRegion() on the Media API and BCPlayerView.setRegion() on the Player API.
For example:
public ReadAPI mReadAPI = new ReadAPI("MyApiToken");
mReadAPI.setRegion(RegionEnum.JP);
BCPlayerView mPlayer;
mPlayer.setRegion(readAPI.getRegion());
As always, do not hesitate to follow up with any questions regarding these updates in our Mobile SDK forum. You can also register for updates and announcements by e-mail about our mobile SDKs.