Skip to content

Conversation

@IegorKozakov
Copy link
Contributor

*Separate audio and video call buttons

app.helpers.stateBoard.update({'title': 'calling'});

document.getElementById(sounds.call).play();
// document.getElementById(sounds.call).play();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need commented?


/** ACCEPT */
$(document).on('click', '.j-accept', function() {
isAudio = app.currentSession.callType === 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Better use const
QB.webrtc.CallType.VIDEO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean QB.webrtc.CallType.AUDIO. Yes, it's a good idea.

app.helpers.stateBoard.update({'title': 'create_session'});
app.currentSession = QB.webrtc.createNewSession(Object.keys(app.callees), QB.webrtc.CallType.VIDEO);

isAudio = this.getAttribute('data-call') === 'audio';
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe better idea uses event object? Up to you

@dimaspirit dimaspirit merged commit 635ac6c into develop Dec 12, 2016
@dimaspirit dimaspirit deleted the develop.sprint6.separateCalls branch December 12, 2016 12:35
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