waitForUnpublish

suspend fun waitForUnpublish()

Waits until the track is unpublished, by either the publisher or the SFU.

Use this to trigger follow-up work once the track is no longer published. Returns immediately if it is already unpublished.