Kotlin

Connecting Custom Renderer to Publisher/Subscriber

  1. Add the renderer to the publisher via the renderer builder method
publisher = Publisher.Builder(this@MainActivity)
                .renderer(InvertedColorsVideoRenderer(this@MainActivity))
                .build()
                ...
  1. Do the same procedure in place where you create the subscriber, for example in the onStreamReceived