onPublish method
inherited
Implementation
@override
Future<bool> onPublish() async {
final didUpdate = await super.onPublish();
if (didUpdate) {
// update counter
await _trackCounterLock.synchronized(() async {
_localTrackCount++;
await _onAudioTrackCountDidChange();
});
}
return didUpdate;
}