Commit 4949fbe5 by ibaker Committed by microkatz

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
parent 7cb2e113
...@@ -152,7 +152,7 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou ...@@ -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();
} }
......
...@@ -395,7 +395,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory { ...@@ -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();
} }
......
...@@ -225,7 +225,7 @@ public final class ProgressiveMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -311,7 +311,7 @@ public final class DashMediaSource extends BaseMediaSource { ...@@ -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};
} }
} }
......
...@@ -359,7 +359,7 @@ public final class HlsMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -164,7 +164,7 @@ public final class RtspMediaSource extends BaseMediaSource { ...@@ -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};
} }
......
...@@ -290,7 +290,7 @@ public final class SsMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -47,7 +47,7 @@ public final class FakeMediaSourceFactory implements MediaSourceFactory { ...@@ -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};
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment