Use non-deprecated AdsMediaSource constructor

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=195468987
This commit is contained in:
andrewlewis 2018-05-04 14:09:10 -07:00 committed by Oliver Woodman
parent 2a06e00201
commit 9e122cbaf9

View File

@ -576,13 +576,7 @@ public class PlayerActivity extends Activity
return new int[] {C.TYPE_DASH, C.TYPE_SS, C.TYPE_HLS, C.TYPE_OTHER};
}
};
return new AdsMediaSource(
mediaSource,
adMediaSourceFactory,
adsLoader,
adUiViewGroup,
/* eventHandler= */ null,
/* eventListener= */ null);
return new AdsMediaSource(mediaSource, adMediaSourceFactory, adsLoader, adUiViewGroup);
} catch (ClassNotFoundException e) {
// IMA extension not loaded.
return null;