Commit 2ff4e5a6 by olly Committed by Oliver Woodman

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
parent 90fc24c9
...@@ -58,22 +58,29 @@ public final class RtspMediaSource extends BaseMediaSource { ...@@ -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 { ...@@ -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;
} }
......
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