public interface

SurfaceAssetLoader.Callback

 androidx.media3.transformer.SurfaceAssetLoader.Callback

Overview

Callbacks for SurfaceAssetLoader events.

Summary

Methods
public voidonSurfaceAssetLoaderCreated(SurfaceAssetLoader surfaceAssetLoader)

Called when the asset loader has been created.

public voidonSurfaceReady(Surface surface, EditedMediaItem editedMediaItem)

Called when the input surface is ready to write to.

Methods

public void onSurfaceAssetLoaderCreated(SurfaceAssetLoader surfaceAssetLoader)

Called when the asset loader has been created. Pass the content format to the provided asset loader to trigger surface creation. May be called on any thread.

public void onSurfaceReady(Surface surface, EditedMediaItem editedMediaItem)

Called when the input surface is ready to write to. May be called on any thread.

Parameters:

surface: The to write to.
editedMediaItem: The EditedMediaItem used to create the associated SurfaceAssetLoader.