Author: ygrego Date: 2015-04-01 13:18:04 +0000 (Wed, 01 Apr 2015) New Revision: 1018 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1018 Log: In method "setChannel" addition of code in order to manage event dispathing when no suitable tuner available. Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-04-01 13:06:32 UTC (rev 1017) +++ oipf/js/impl/VideoBroadcastObject.js 2015-04-01 13:18:04 UTC (rev 1018) @@ -650,11 +650,13 @@ this._timeout() .then(this.changeStateToConnectingWhenSwitching.bind(this, channel)); - } else { - this._timeout() - .then(this._fireEvent.bind(this, createCustomEvent("ChannelChangeError", [null, 100]))); - } - + } else if (channel.idType == 40 || channel.idType == 41) { + this._timeout() + .then(this._fireEvent.bind(this, createCustomEvent("ChannelChangeError", [null, 8]))); + } else { + this._timeout() + .then(this._fireEvent.bind(this, createCustomEvent("ChannelChangeError", [null, 0]))); + } } else { this._timeout()
participants (1)
-
ygregoï¼ users.nuiton.org