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
e908750336
commit
01f85394d2
@ -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…
x
Reference in New Issue
Block a user