- remove stage video listener

This commit is contained in:
Richard Alam 2018-03-27 08:07:02 -07:00
parent bad61dbde9
commit c89d074bdf

View File

@ -107,7 +107,6 @@ package org.bigbluebutton.air.screenshare.views {
if (_usingStageVideo) {
// StageVideo cannot play the stream. Remove listener.
_usingStageVideo = false;
_sv.removeEventListener(StageVideoEvent.RENDER_STATE, stageVideoStateChange);
}
setupNetstream();
@ -241,7 +240,13 @@ package org.bigbluebutton.air.screenshare.views {
_usingStageVideo = _usingVideo = _played = false;
_origVidWidth = _origVidHeight = 0;
_ssView = null;
_sv = null;
if (_sv != null) {
// Clean up listener
_sv.removeEventListener(StageVideoEvent.RENDER_STATE, stageVideoStateChange);
_sv = null;
}
_ns = null;
}