should this be just setPeerSettings ? The _next_ prefix in _nextFrame_ was intended as _readFrame_.