Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the options audioSource and videoSource for the quality test #106

Merged

Conversation

miksansegundo
Copy link
Contributor

The NetworkTest can receive the options audioSource and videoSource to be tested. Both, the testConnectivity and testQuality use those options to create the publisher stream.

Usage:

new NetworkTest(OT, {
      apiKey,
      sessionId,
      token
}, {
      audioSource, // Microphone deviceID
      videoSource // Webcam deviceID
})

@dufrenb
Copy link

dufrenb commented Mar 17, 2020

What is the status of this pull request? Can someone review it ? It feels like these changes may solve this issue: #133

@cadesalaberry
Copy link

@jeffswartz do you know what is missing for this PR to be merged?

if (options && options.videoSource) {
publisherOptions.videoSource = options.videoSource
}
console.log('AQUI test', publisherOptions)

Choose a reason for hiding this comment

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

can you remove this console log, please?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I fixed it, @enricop89.

@@ -140,6 +146,7 @@ function checkCreateLocalPublisher(
if (!error) {
resolve({ publisher });
} else {
console.error('OT.initPublisher', publisherOptions, error)

Choose a reason for hiding this comment

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

can you remove this console log, please?

@jeffswartz jeffswartz changed the base branch from master to develop April 20, 2020 15:21
@jeffswartz
Copy link
Collaborator

Thanks for the PR, @miksansegundo. Very sorry for the delay in getting this merged in. (I'm going to add some minor release notes and merge this into the master branch today.)

@jeffswartz jeffswartz merged commit 10bcd5c into opentok:develop Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants