API Simplified. API Break Changes applied to: ID3, SCTE35, Facebook, Amazon APS.
AmpFacebookAudienceNetworkManager(PLACEMENT_ID, ADS_AT_SECONDS);
replaced with:
Facebook.create(PLACEMENT_ID, ADS_AT_SECONDS);
AmpApsBidder(ampFreewheelManager.getBidderCallback(), this, APS_APP_ID, APS_TIME_OUT_MILLIS, APS_TEST_FLAG);
replaced with:
AmazonBidder.create(ampFreewheelManager.getBidderCallback(), this, APS_APP_ID, APS_TIME_OUT_MILLIS, APS_TEST_FLAG);
apsBidder.requestBids(mediaResource, APS_AD_BREAK_ID_22_MINS);
ID3TagExtractorMessageHandler();
replaced with:
AmpID3TagsManager();
AmpScte35.of(mVideoView, createScteListener());
replaced with:
AmpScte35Manager.of(mVideoView, createScteListener());
toggleDownload
method now looks like this:
void toggleDownload(Context context, MediaResource mediaResource, PrepareDownloadListener prepareDownloadListener);
PrepareDownloadListener
interface new looks like this:
public interface PrepareDownloadListener {
void onSingleDownloadOptionAvailable(MediaResource mediaResource);
void onMultipleDownloadOptionsAvailable(MediaResource mediaResource, MappingTrackSelector.MappedTrackInfo mappedTrackInfo, DefaultTrackSelector.Parameters trackSelectorParameters);
void onFailed(IOException e);
}