Skip to content

Conversation

@dimaspirit
Copy link
Contributor

QBWEBSDK-179
QBWEBSDK-238
upd strophejs to 1.2.4

dimaspirit added 2 commits February 10, 2016 13:13
Need:
 - check every OS and browsers
 - made ui/logic for FF
*/
function _getStats(peer, cb) {
if (!!navigator.mozGetUserMedia) {
peer.getStats(peer.getLocalStreams()[0].getAudioTracks()[0],
Copy link
Contributor

Choose a reason for hiding this comment

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

А что будет если вдруг 0 и 0 элементы не будут доступны?

selector = self.delegate.callType == 1 ? self.getLocalStreams()[0].getVideoTracks()[0] : self.getLocalStreams()[0].getAudioTracks()[0],
statsReportInterval = 0;

if (config.webrtc && config.webrtc.statsReportTimeInterval && isNaN(+config.webrtc.statsReportTimeInterval)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

А если statsReportTimeInterval не задан? return не сработает

лучше сделать так:

if (!config.webrtc || !config.webrtc.statsReportTimeInterval){
return;
}

if(isNaN(+config.webrtc.statsReportTimeInterval)) {
Helpers.traceError('statsReportTimeInterval (' + config.webrtc.statsReportTimeInterval + ') must be integer.');
return;
}

soulfly pushed a commit that referenced this pull request Feb 18, 2016
Fixed Firefox connection issues with video chat
@soulfly soulfly merged commit 8a320c2 into develop Feb 18, 2016
@soulfly soulfly deleted the develop.v205 branch February 18, 2016 09:20
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.

3 participants