Author: ygrego Date: 2015-03-31 09:23:42 +0000 (Tue, 31 Mar 2015) New Revision: 997 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/997 Log: Use of object "Timeout" (by using method "oipf.utils.timeout") in method "stop" and "release". Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-03-31 08:43:55 UTC (rev 996) +++ oipf/js/impl/VideoBroadcastObject.js 2015-03-31 09:23:42 UTC (rev 997) @@ -803,9 +803,10 @@ * - stop visualization of the video. * - and scarce ressources loaded previously. */ - timeout(0) + this._timer && this._timer.cancel(); + + this._timer = oipf.utils.timeout(0) .then(this.changePlayState.bind(this, this._UNREALIZED)); - } }, @@ -825,7 +826,9 @@ * - stop the presentation of the video and audio. * - and scarce ressources loaded previously. */ - timeout(0) + this._timer && this._timer.cancel(); + + this._timer = oipf.utils.timeout(0) .then(this.changePlayState.bind(this, this._STOPPED)); } },
participants (1)
-
ygregoï¼ users.nuiton.org