mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Restrict the visibility of some DefaultDrmSession methods
These are only used from within the package, so demote them from public to package-private. PiperOrigin-RevId: 515029018
This commit is contained in:
parent
68578be372
commit
0477d0d338
2 changed files with 12 additions and 4 deletions
|
|
@ -16,6 +16,14 @@
|
|||
`AudioProcessors` are active, e.g. for gapless trimming
|
||||
([#10847](https://github.com/google/ExoPlayer/issues/10847)).
|
||||
* Encapsulate Opus frames in Ogg packets in direct playbacks (offload).
|
||||
* DRM:
|
||||
* Reduce the visibility of several internal-only methods on
|
||||
`DefaultDrmSession` that aren't expected to be called from outside the
|
||||
DRM package:
|
||||
* `void onMediaDrmEvent(int)`
|
||||
* `void provision()`
|
||||
* `void onProvisionCompleted()`
|
||||
* `onProvisionError(Exception, boolean)`
|
||||
* Transformer:
|
||||
* Remove `Transformer.Builder.setMediaSourceFactory(MediaSource.Factory)`.
|
||||
Use `ExoPlayerAssetLoader.Factory(MediaSource.Factory)` and
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
return Arrays.equals(this.sessionId, sessionId);
|
||||
}
|
||||
|
||||
public void onMediaDrmEvent(int what) {
|
||||
/* package */ void onMediaDrmEvent(int what) {
|
||||
switch (what) {
|
||||
case ExoMediaDrm.EVENT_KEY_REQUIRED:
|
||||
onKeysRequired();
|
||||
|
|
@ -228,7 +228,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
|
||||
// Provisioning implementation.
|
||||
|
||||
public void provision() {
|
||||
/* package */ void provision() {
|
||||
currentProvisionRequest = mediaDrm.getProvisionRequest();
|
||||
Util.castNonNull(requestHandler)
|
||||
.post(
|
||||
|
|
@ -237,13 +237,13 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
/* allowRetry= */ true);
|
||||
}
|
||||
|
||||
public void onProvisionCompleted() {
|
||||
/* package */ void onProvisionCompleted() {
|
||||
if (openInternal()) {
|
||||
doLicense(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void onProvisionError(Exception error, boolean thrownByExoMediaDrm) {
|
||||
/* package */ void onProvisionError(Exception error, boolean thrownByExoMediaDrm) {
|
||||
onError(
|
||||
error,
|
||||
thrownByExoMediaDrm
|
||||
|
|
|
|||
Loading…
Reference in a new issue