Author: ygrego Date: 2015-03-30 15:40:32 +0000 (Mon, 30 Mar 2015) New Revision: 983 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/983 Log: Exception management when no tuner available is performed out of method "verifyASuitabletunerIsAvailable" in method "_channelSwitch". Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-03-30 15:28:05 UTC (rev 982) +++ oipf/js/impl/VideoBroadcastObject.js 2015-03-30 15:40:32 UTC (rev 983) @@ -877,7 +877,15 @@ if (channelUtils.verifyASuitableTunerAvailable(channelToChange.idType, this)) { timeout(0) .then(this.changeStateToConnectingWhenSwitching.bind(this, channelToChange)); - } + } else if (channelToChange.idType == 40 || channelToChange.idType == 41) { + timeout(0) + .then(object._fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 8]))); + } else { + + timeout(0) + .then(object._fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 0]))); + } + } } else {
participants (1)
-
ygregoï¼ users.nuiton.org