you should never set encodedRate here. encoded sample rate is irrelevant for transport.