Skip to content

Conversation

@Vladlukhanin
Copy link
Contributor

The possibility to switch cameras was added for the Firefox.
Other browsers - comming soon.

audio: self.mediaParam.audio || false,
video: self.mediaParam.video || false
})
.then(self._replaceTracks.bind(self))
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap in function or bind the context when instance creating

@dimaspirit dimaspirit merged commit fd5f008 into dev May 10, 2018
};

/**
* Switch media stream into audio/video element and replace tracks in peers
Copy link
Contributor

Choose a reason for hiding this comment

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

into -> in

* @param {string} The Id of an element to switch tracks
* @param {function} A callback to get a result of the function
*/
WebRTCSession.prototype.switchVideoSource = function(deviceId, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

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

So is this deviceId or "The Id of an element" ? not clear, please unify

@sshaforenkoqb sshaforenkoqb deleted the dev.qbwebsdk653 branch July 1, 2019 12:07
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.

4 participants