Commit 4f04a284 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 a4029551
...@@ -412,7 +412,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory { ...@@ -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();
} }
......
...@@ -227,7 +227,7 @@ public final class ProgressiveMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -313,7 +313,7 @@ public final class DashMediaSource extends BaseMediaSource { ...@@ -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};
} }
} }
......
...@@ -361,7 +361,7 @@ public final class HlsMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -154,7 +154,7 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou ...@@ -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();
} }
......
...@@ -166,7 +166,7 @@ public final class RtspMediaSource extends BaseMediaSource { ...@@ -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};
} }
......
...@@ -292,7 +292,7 @@ public final class SsMediaSource extends BaseMediaSource ...@@ -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};
} }
} }
......
...@@ -49,7 +49,7 @@ public final class FakeMediaSourceFactory implements MediaSourceFactory { ...@@ -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};
} }
......
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