Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
fix reportCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Aug 15, 2020
1 parent c9b8288 commit bde130f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,16 @@ function onAuthenticated(apiClient, result) {
});
}

function reportCapabilities(instance, apiClient) {

return instance.capabilities().then(function (capabilities) {
return apiClient.reportCapabilities(capabilities);
});
}

function afterConnected(instance, apiClient, options = {}) {
if (options.reportCapabilities !== false) {
apiClient.reportCapabilities(instance.capabilities());
reportCapabilities(instance, apiClient);
}
apiClient.enableAutomaticBitrateDetection = options.enableAutomaticBitrateDetection;
apiClient.enableWebSocketAutoConnect = options.enableWebSocket !== false;
Expand Down

0 comments on commit bde130f

Please sign in to comment.