unregisterTexture method

Future<void> unregisterTexture(
  1. int textureID

Unregister custom rendering callbacks

The textureID generated when setLocalVideoRenderListener or setRemoteVideoRenderListener is called. You need to call this API to unregister when the texture is no longer needed

When to call: call when TRTCCloudListener.onUserVideoAvailable is false or the page is disposed

Not supported on:

  • web


Future<void> unregisterTexture(int textureID) {
  return _cloudChannel!.invokeMethod('unregisterTexture', {
    "textureID": textureID,