Skip to content

Commit

Permalink
Log the selected options
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed Aug 17, 2023
1 parent a90f93e commit 87ed4ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,21 @@ $('#master-button').click(async () => {
localMessage.value = '';
toggleDataChannelElements();

printFormValues(formValues);

startMaster(localView, remoteView, formValues, onStatsReport, event => {
remoteMessage.append(`${event.data}\n`);
});
});

function printFormValues(formValues) {
const copyOfForm = Object.assign({}, formValues);
delete copyOfForm.accessKeyId;
delete copyOfForm.secretAccessKey;
delete copyOfForm.sessionToken;
console.log('[FORM_VALUES] Running the sample with the following options:', copyOfForm);
}

$('#clear-logs').click(() => {
$('#logs').empty();
});
Expand Down
1 change: 1 addition & 0 deletions examples/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ async function callJoinStorageSessionUntilSDPOfferReceived(runId, kinesisVideoWe
}
firstTime = false;
try {
// The AWS SDK for JS will perform limited retries on this API call.
await kinesisVideoWebrtcStorageClient
.joinStorageSession({
channelArn: channelARN,
Expand Down

0 comments on commit 87ed4ae

Please sign in to comment.