mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00: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
1 changed files with 1 additions and 7 deletions
|
|
@ -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…
Reference in a new issue