Commit d9760413 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
(cherry picked from commit 4949fbe5)
parent 23518e2b
......@@ -152,7 +152,7 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return contentMediaSourceFactory.getSupportedTypes();
}
......
......@@ -395,7 +395,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return delegateFactoryLoader.getSupportedTypes();
}
......
......@@ -225,7 +225,7 @@ public final class ProgressiveMediaSource extends BaseMediaSource
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_OTHER};
}
}
......
......@@ -311,7 +311,7 @@ public final class DashMediaSource extends BaseMediaSource {
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_DASH};
}
}
......
......@@ -359,7 +359,7 @@ public final class HlsMediaSource extends BaseMediaSource
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_HLS};
}
}
......
......@@ -164,7 +164,7 @@ public final class RtspMediaSource extends BaseMediaSource {
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_RTSP};
}
......
......@@ -290,7 +290,7 @@ public final class SsMediaSource extends BaseMediaSource
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
return new int[] {C.CONTENT_TYPE_SS};
}
}
......
......@@ -47,7 +47,7 @@ public final class FakeMediaSourceFactory implements MediaSourceFactory {
}
@Override
public int[] getSupportedTypes() {
public @C.ContentType int[] getSupportedTypes() {
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