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
This commit is contained in:
ibaker 2022-11-10 12:24:56 +00:00 committed by microkatz
parent a402955125
commit 4f04a284ed
8 changed files with 8 additions and 8 deletions

View File

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

View File

@ -227,7 +227,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

@ -313,7 +313,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

@ -361,7 +361,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

@ -154,7 +154,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

@ -166,7 +166,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

@ -292,7 +292,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

@ -49,7 +49,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};
} }