Skip to content

Commit

Permalink
Fixed broken replaceTracks documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Feb 29, 2024
1 parent 55b9cc2 commit 4ffede7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/mainpage.dox
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,15 @@ janus.attach(
* identified by its \c deviceId is the following:
*
\verbatim
echotest.replaceTracks([
{
type: 'video',
mid: '1', // We assume mid 1 is video
capture: { deviceId: { exact: videoDeviceId } }
}
]);
echotest.replaceTracks({
tracks: [
{
type: 'video',
mid: '1', // We assume mid 1 is video
capture: { deviceId: { exact: videoDeviceId } }
}
]
});
\endverbatim
*
* In case a new track needs to be added to a session, or an existing
Expand Down

0 comments on commit 4ffede7

Please sign in to comment.