Author: ygrego Date: 2015-02-11 16:49:48 +0000 (Wed, 11 Feb 2015) New Revision: 790 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/790 Log: Affectation of the videobroadcast allocation type in method 'VideoBroadcastObject.init' according to parameter presence. Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-02-11 16:22:07 UTC (rev 789) +++ oipf/js/impl/VideoBroadcastObject.js 2015-02-11 16:49:48 UTC (rev 790) @@ -135,9 +135,16 @@ console.log("[INFO] createdCallback called."); }, - init: function() { + init: function(requiredCapabilities) { console.log("[INFO] constructor of VideoBroadcast class called."); this.playstate = 0; + if (requiredCapabilities) { + this.allocationMethod = STATIC_ALLOCATION_VIDEOBROADCAST; + //TODO: get scarce resources (I don't know how for the moment) + } else { + + this.allocationMethod = DYNAMIC_ALLOCATION_VIDEOBROADCAST + } }, /*!
participants (1)
-
ygregoï¼ users.nuiton.org