Add missing IntDef on MediaSource.Factory.getSupportedTypes overrides

Without this the annotation isn't shown in javadoc (same in Dackka)

No annotation:
https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html#getSupportedTypes()

Annotation present:
https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/MediaSource.Factory.html#getSupportedTypes()

#minor-release

PiperOrigin-RevId: 487498450
(cherry picked from commit 4949fbe5edc9dbbf1a713b152907cc3a175956d5)
This commit is contained in:
ibaker 2022-11-10 12:24:56 +00:00 committed by microkatz
parent 23518e2b62
commit d97604138e
8 changed files with 8 additions and 8 deletions

View File

@ -152,7 +152,7 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return contentMediaSourceFactory.getSupportedTypes(); return contentMediaSourceFactory.getSupportedTypes();
} }

View File

@ -395,7 +395,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return delegateFactoryLoader.getSupportedTypes(); return delegateFactoryLoader.getSupportedTypes();
} }

View File

@ -225,7 +225,7 @@ public final class ProgressiveMediaSource extends BaseMediaSource
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_OTHER}; return new int[] {C.CONTENT_TYPE_OTHER};
} }
} }

View File

@ -311,7 +311,7 @@ public final class DashMediaSource extends BaseMediaSource {
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_DASH}; return new int[] {C.CONTENT_TYPE_DASH};
} }
} }

View File

@ -359,7 +359,7 @@ public final class HlsMediaSource extends BaseMediaSource
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_HLS}; return new int[] {C.CONTENT_TYPE_HLS};
} }
} }

View File

@ -164,7 +164,7 @@ public final class RtspMediaSource extends BaseMediaSource {
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_RTSP}; return new int[] {C.CONTENT_TYPE_RTSP};
} }

View File

@ -290,7 +290,7 @@ public final class SsMediaSource extends BaseMediaSource
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_SS}; return new int[] {C.CONTENT_TYPE_SS};
} }
} }

View File

@ -47,7 +47,7 @@ public final class FakeMediaSourceFactory implements MediaSourceFactory {
} }
@Override @Override
public int[] getSupportedTypes() { public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_OTHER}; return new int[] {C.CONTENT_TYPE_OTHER};
} }