mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove deprecated DefaultRenderersFactory constructors
#minor-release PiperOrigin-RevId: 426938026
This commit is contained in:
parent
6778cc7c12
commit
fa5ac86646
2 changed files with 5 additions and 27 deletions
|
|
@ -180,6 +180,11 @@
|
||||||
`ProgressiveMediaSource.Factory#setCustomCacheKey`. Use
|
`ProgressiveMediaSource.Factory#setCustomCacheKey`. Use
|
||||||
`MediaItem.Builder#setTag` and `MediaItem.Builder#setCustomCacheKey`
|
`MediaItem.Builder#setTag` and `MediaItem.Builder#setCustomCacheKey`
|
||||||
instead.
|
instead.
|
||||||
|
* Remove `DefaultRenderersFactory(Context, @ExtensionRendererMode int)`
|
||||||
|
and `DefaultRenderersFactory(Context, @ExtensionRendererMode int, long)`
|
||||||
|
constructors. Use the `DefaultRenderersFactory(Context)` constructor,
|
||||||
|
`DefaultRenderersFactory#setExtensionRendererMode`, and
|
||||||
|
`DefaultRenderersFactory#setAllowedVideoJoiningTimeMs` instead.
|
||||||
* Change the following `IntDefs` to `@Target(TYPE_USE)` only. This may break
|
* Change the following `IntDefs` to `@Target(TYPE_USE)` only. This may break
|
||||||
the compilation of usages in Kotlin, which can be fixed by moving the
|
the compilation of usages in Kotlin, which can be fixed by moving the
|
||||||
annotation to annotate the type (`Int`).
|
annotation to annotate the type (`Int`).
|
||||||
|
|
|
||||||
|
|
@ -110,33 +110,6 @@ public class DefaultRenderersFactory implements RenderersFactory {
|
||||||
mediaCodecSelector = MediaCodecSelector.DEFAULT;
|
mediaCodecSelector = MediaCodecSelector.DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #DefaultRenderersFactory(Context)} and {@link
|
|
||||||
* #setExtensionRendererMode(int)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public DefaultRenderersFactory(
|
|
||||||
Context context, @ExtensionRendererMode int extensionRendererMode) {
|
|
||||||
this(context, extensionRendererMode, DEFAULT_ALLOWED_VIDEO_JOINING_TIME_MS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #DefaultRenderersFactory(Context)}, {@link
|
|
||||||
* #setExtensionRendererMode(int)} and {@link #setAllowedVideoJoiningTimeMs(long)}.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public DefaultRenderersFactory(
|
|
||||||
Context context,
|
|
||||||
@ExtensionRendererMode int extensionRendererMode,
|
|
||||||
long allowedVideoJoiningTimeMs) {
|
|
||||||
this.context = context;
|
|
||||||
this.extensionRendererMode = extensionRendererMode;
|
|
||||||
this.allowedVideoJoiningTimeMs = allowedVideoJoiningTimeMs;
|
|
||||||
mediaCodecSelector = MediaCodecSelector.DEFAULT;
|
|
||||||
codecAdapterFactory = new DefaultMediaCodecAdapterFactory();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the extension renderer mode, which determines if and how available extension renderers are
|
* Sets the extension renderer mode, which determines if and how available extension renderers are
|
||||||
* used. Note that extensions must be included in the application build for them to be considered
|
* used. Note that extensions must be included in the application build for them to be considered
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue