mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
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 4f04a284ed)
This commit is contained in:
parent
d0d6cbd583
commit
e05e319d3b
8 changed files with 8 additions and 8 deletions
|
|
@ -412,7 +412,7 @@ public final class DefaultMediaSourceFactory implements MediaSourceFactory {
|
|||
|
||||
@UnstableApi
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return delegateFactoryLoader.getSupportedTypes();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ public final class ProgressiveMediaSource extends BaseMediaSource
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_OTHER};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ public final class DashMediaSource extends BaseMediaSource {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_DASH};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ public final class HlsMediaSource extends BaseMediaSource
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_HLS};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return contentMediaSourceFactory.getSupportedTypes();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ public final class RtspMediaSource extends BaseMediaSource {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_RTSP};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ public final class SsMediaSource extends BaseMediaSource
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_SS};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class FakeMediaSourceFactory implements MediaSourceFactory {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedTypes() {
|
||||
public @C.ContentType int[] getSupportedTypes() {
|
||||
return new int[] {C.CONTENT_TYPE_OTHER};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue