mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clean up RtspMediaSource.Factory
- Don't deprecate methods not deprecated in the base class and that could one day be useful. - Better document deprecation of other methods. #minor-release PiperOrigin-RevId: 372919080
This commit is contained in:
parent
90fc24c900
commit
2ff4e5a657
1 changed files with 18 additions and 7 deletions
|
|
@ -58,22 +58,29 @@ public final class RtspMediaSource extends BaseMediaSource {
|
||||||
*/
|
*/
|
||||||
public static final class Factory implements MediaSourceFactory {
|
public static final class Factory implements MediaSourceFactory {
|
||||||
|
|
||||||
/** @deprecated Not supported. */
|
/** Does nothing. {@link RtspMediaSource} does not support DRM. */
|
||||||
@Deprecated
|
|
||||||
@Override
|
@Override
|
||||||
public Factory setDrmSessionManagerProvider(
|
public Factory setDrmSessionManagerProvider(
|
||||||
@Nullable DrmSessionManagerProvider drmSessionManager) {
|
@Nullable DrmSessionManagerProvider drmSessionManager) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Not supported. */
|
/**
|
||||||
|
* Does nothing. {@link RtspMediaSource} does not support DRM.
|
||||||
|
*
|
||||||
|
* @deprecated {@link RtspMediaSource} does not support DRM.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public Factory setDrmSessionManager(@Nullable DrmSessionManager drmSessionManager) {
|
public Factory setDrmSessionManager(@Nullable DrmSessionManager drmSessionManager) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Not supported. */
|
/**
|
||||||
|
* Does nothing. {@link RtspMediaSource} does not support DRM.
|
||||||
|
*
|
||||||
|
* @deprecated {@link RtspMediaSource} does not support DRM.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public Factory setDrmHttpDataSourceFactory(
|
public Factory setDrmHttpDataSourceFactory(
|
||||||
|
|
@ -81,18 +88,22 @@ public final class RtspMediaSource extends BaseMediaSource {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Not supported. */
|
/**
|
||||||
|
* Does nothing. {@link RtspMediaSource} does not support DRM.
|
||||||
|
*
|
||||||
|
* @deprecated {@link RtspMediaSource} does not support DRM.
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public Factory setDrmUserAgent(@Nullable String userAgent) {
|
public Factory setDrmUserAgent(@Nullable String userAgent) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated Not supported. */
|
/** Does nothing. {@link RtspMediaSource} does not support error handling policies. */
|
||||||
@Deprecated
|
|
||||||
@Override
|
@Override
|
||||||
public Factory setLoadErrorHandlingPolicy(
|
public Factory setLoadErrorHandlingPolicy(
|
||||||
@Nullable LoadErrorHandlingPolicy loadErrorHandlingPolicy) {
|
@Nullable LoadErrorHandlingPolicy loadErrorHandlingPolicy) {
|
||||||
|
// TODO(internal b/172331505): Implement support.
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue