-
Notifications
You must be signed in to change notification settings - Fork 217
Develop.sprint6.separate calls #186
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
Conversation
samples/webrtc/js/app.js
Outdated
| app.helpers.stateBoard.update({'title': 'calling'}); | ||
|
|
||
| document.getElementById(sounds.call).play(); | ||
| // document.getElementById(sounds.call).play(); |
There was a problem hiding this comment.
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?
samples/webrtc/js/app.js
Outdated
|
|
||
| /** ACCEPT */ | ||
| $(document).on('click', '.j-accept', function() { | ||
| isAudio = app.currentSession.callType === 2; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
samples/webrtc/js/app.js
Outdated
| 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'; |
There was a problem hiding this comment.
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
*Separate audio and video call buttons