mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Register modules with common
PiperOrigin-RevId: 402267733
This commit is contained in:
parent
63844a58fe
commit
69f2692389
4 changed files with 19 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ import androidx.work.OneTimeWorkRequest;
|
|||
import androidx.work.WorkManager;
|
||||
import androidx.work.Worker;
|
||||
import androidx.work.WorkerParameters;
|
||||
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
|
||||
import com.google.android.exoplayer2.scheduler.Requirements;
|
||||
import com.google.android.exoplayer2.scheduler.Scheduler;
|
||||
import com.google.android.exoplayer2.util.Assertions;
|
||||
|
|
@ -35,6 +36,10 @@ import com.google.android.exoplayer2.util.Util;
|
|||
/** A {@link Scheduler} that uses {@link WorkManager}. */
|
||||
public final class WorkManagerScheduler implements Scheduler {
|
||||
|
||||
static {
|
||||
ExoPlayerLibraryInfo.registerModule("goog.exo.workmanager");
|
||||
}
|
||||
|
||||
private static final String TAG = "WorkManagerScheduler";
|
||||
private static final String KEY_SERVICE_ACTION = "service_action";
|
||||
private static final String KEY_SERVICE_PACKAGE = "service_package";
|
||||
|
|
|
|||
|
|
@ -63,6 +63,10 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
|||
/** An {@link ExoPlayer} implementation. */
|
||||
/* package */ final class ExoPlayerImpl extends BasePlayer {
|
||||
|
||||
static {
|
||||
ExoPlayerLibraryInfo.registerModule("goog.exo.exoplayer");
|
||||
}
|
||||
|
||||
private static final String TAG = "ExoPlayerImpl";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package com.google.android.exoplayer2.extractor;
|
|||
import static java.lang.Math.min;
|
||||
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
|
||||
import com.google.android.exoplayer2.upstream.DataReader;
|
||||
import com.google.android.exoplayer2.util.Assertions;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
|
|
@ -29,6 +30,10 @@ import java.util.Arrays;
|
|||
/** An {@link ExtractorInput} that wraps a {@link DataReader}. */
|
||||
public final class DefaultExtractorInput implements ExtractorInput {
|
||||
|
||||
static {
|
||||
ExoPlayerLibraryInfo.registerModule("goog.exo.extractor");
|
||||
}
|
||||
|
||||
private static final int PEEK_MIN_FREE_SPACE_AFTER_RESIZE = 64 * 1024;
|
||||
private static final int PEEK_MAX_FREE_SPACE = 512 * 1024;
|
||||
private static final int SCRATCH_SPACE_SIZE = 4096;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ import androidx.annotation.VisibleForTesting;
|
|||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.DefaultLoadControl;
|
||||
import com.google.android.exoplayer2.ExoPlayer;
|
||||
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
|
||||
import com.google.android.exoplayer2.MediaItem;
|
||||
import com.google.android.exoplayer2.PlaybackException;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
|
|
@ -83,6 +84,10 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
@RequiresApi(18)
|
||||
public final class Transformer {
|
||||
|
||||
static {
|
||||
ExoPlayerLibraryInfo.registerModule("goog.exo.transformer");
|
||||
}
|
||||
|
||||
/** A builder for {@link Transformer} instances. */
|
||||
public static final class Builder {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue