Fixes issue with audio being muted for the participant who shares his screen(detected on Chrome 40 and probably above).
This commit is contained in:
parent
c6f0b2c09e
commit
5433f80148
|
@ -47,7 +47,7 @@
|
|||
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
|
||||
<script src="rtp_sts.js?v=1"></script><!-- RTP stats processing -->
|
||||
<script src="local_sts.js?v=1"></script><!-- Local stats processing -->
|
||||
<script src="videolayout.js?v=12"></script><!-- video ui -->
|
||||
<script src="videolayout.js?v=13"></script><!-- video ui -->
|
||||
<script src="toolbar.js?v=6"></script><!-- toolbar ui -->
|
||||
<script src="toolbar_toggler.js?v=2"></script>
|
||||
<script src="canvas_util.js?v=1"></script><!-- canvas drawing utils -->
|
||||
|
|
|
@ -431,7 +431,8 @@ var VideoLayout = (function (my) {
|
|||
stream.onended = function () {
|
||||
console.log('stream ended', this);
|
||||
|
||||
VideoLayout.removeRemoteStreamElement(stream, container);
|
||||
VideoLayout.removeRemoteStreamElement(
|
||||
stream, isVideo, container);
|
||||
|
||||
if (peerJid)
|
||||
ContactList.removeContact(peerJid);
|
||||
|
@ -481,15 +482,16 @@ var VideoLayout = (function (my) {
|
|||
* parent container.
|
||||
*
|
||||
* @param stream the stream
|
||||
* @param isVideo <tt>true</tt> if given <tt>stream</tt> is a video one.
|
||||
* @param container
|
||||
*/
|
||||
my.removeRemoteStreamElement = function (stream, container) {
|
||||
my.removeRemoteStreamElement = function (stream, isVideo, container) {
|
||||
if (!container)
|
||||
return;
|
||||
|
||||
var select = null;
|
||||
var removedVideoSrc = null;
|
||||
if (stream.getVideoTracks().length > 0) {
|
||||
if (isVideo) {
|
||||
select = $('#' + container.id + '>video');
|
||||
removedVideoSrc = select.get(0).src;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue