SharedTextureImported

external interface SharedTextureImported(source)

Properties

Link copied to clipboard
abstract var getVideoFrame: () -> VideoFrame

Create a VideoFrame that uses the imported shared texture in the current process. You can call VideoFrame.close() once you've finished using the object. The underlying resources will wait for GPU finish internally.

Link copied to clipboard
abstract var release: () -> Unit

Release this object's reference of the imported shared texture. The underlying resource will be alive until every reference is released.

Link copied to clipboard

Provides subtle APIs to interact with the imported shared texture for advanced users.

Link copied to clipboard
abstract var textureId: String

The unique identifier of the imported shared texture.