mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Use non-deprecated AdsMediaSource constructor
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=195468987
This commit is contained in:
parent
2a06e00201
commit
9e122cbaf9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user