More strongly discourage use of DebugSurfaceView

This was always intended as a debug API only, but its inclusion in media3.common and public visibility has led to partners sometimes experimenting with this API and complaining when it doesn't work as expected.

PiperOrigin-RevId: 624158798
This commit is contained in:
huangdarwin 2024-04-12 06:32:00 -07:00 committed by Copybara-Service
parent f13c879cd0
commit 25e99af9e7
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,11 @@ import android.view.SurfaceView;
import androidx.annotation.Nullable;
import androidx.media3.common.util.UnstableApi;
/** Provider for views to show diagnostic information during an export, for debugging. */
/**
* Provider for views to show diagnostic information during an export, for debugging.
*
* <p>This is not intended for production use-cases.
*/
@UnstableApi
public interface DebugViewProvider {

View File

@ -81,7 +81,8 @@ public interface VideoFrameProcessor {
* Creates a new {@link VideoFrameProcessor} instance.
*
* @param context A {@link Context}.
* @param debugViewProvider A {@link DebugViewProvider}.
* @param debugViewProvider A {@link DebugViewProvider}. In production usage, pass {@link
* DebugViewProvider#NONE}.
* @param outputColorInfo The {@link ColorInfo} for the output frames.
* @param renderFramesAutomatically If {@code true}, the instance will render output frames to
* the {@linkplain #setOutputSurfaceInfo(SurfaceInfo) output surface} automatically as