Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source/includes/_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ var additionalIDs = {
var configParams = {
disableBeforeUnloadHandler: true, // disables callstats.js's window.onbeforeunload parameter.
applicationVersion: "app_version", // Application version specified by the developer.
disablePrecalltest: true // disables the pre-call test, it is enabled by default.
disablePrecalltest: true // disables the pre-call test.
siteID: "siteID", // The name/ID of the site/campus from where the call/pre-call test is made.
additionalIDs: additionalIDs, // additionalIDs object, contains application related IDs.
collectLegacyStats: true //enables the collection of legacy stats in chrome browser
collectIP: true //enables the collection localIP address
cdnAuth: true //Uses the CDN based URL for contacting Authentication Servers.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just "Use CDN for authentication"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses the CDN for authentication instead of the authentication within the region associated with your organisation.

};
```

Expand Down Expand Up @@ -72,6 +73,7 @@ It provides developers a method to enable or disable certain features or functio
`collectLegacyStats` | No | by default the value is `true`.
`additionalIDs` | No | JSON object.
`collectIP` | No | by default the value is `true`.
`cdnAuth` | No | by default the value is `true`.

<aside class="error">
Setting `disableBeforeUnloadHandler` to `true` disengages callstats.js's `window.onbeforeunload` handler, and you will need to send the fabricTerminated event for each active PeerConnection. See more details on `fabricTerminated` [event](#step-5-optional-sendfabricevent)
Expand Down
6 changes: 3 additions & 3 deletions source/includes/_auth3p.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ Token supports following claims:
};
}

function csInitCallback (err, msg) {
console.log("Initializing Status: err="+err+" msg="+msg);
}
function csInitCallback(status, msg) {
console.log("Status: " + status + " Msg= " + msg ); }
}

//userID is generated or given by the origin server
callstats.initialize(AppID, exampleTokenGenerator(initialToken), userID, csInitCallback, csStatsCallback, configParams);
Expand Down
4 changes: 2 additions & 2 deletions source/includes/_callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ The WebRTC application can provide callback functions to callstats.js which are
var callstats = new callstats();
callstats.initialize(AppID, AppSecret, localUserId, csInitCallback, csStatsCallback);

function csInitCallback(csError, csErrMsg) {
console.log("Status: errCode= " + csError + " errMsg= " + csErrMsg ); }
function csInitCallback(status, msg) {
console.log("Status: " + status + " Msg= " + msg ); }
}
```

Expand Down