Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e4e7eb

Browse files
committed
[CHG]更改直播监控判断逻辑
1 parent bd55934 commit 7e4e7eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ezuikit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
this.handlers = {};
167167

168168
// 修订 - 支持JS Decoder 允许非字符串配置项
169-
if (typeof playParams === 'object' && playParams.decoderPath) {
169+
if (typeof playParams === 'object' && playParams.hasOwnProperty('decoderPath')) {
170170
/* 校验播放器配置参数合法性 */
171171
// 解码器路径
172172
if (typeof playParams.decoderPath !== 'string' || typeof playParams.decoderPath === 'undefined') {
@@ -348,7 +348,7 @@
348348
apiDomain = playParams.env.domain;
349349
}
350350
/** jsDecoder 获取真实地址 -- 开始 */
351-
if (playParams && playParams.decoderPath) {
351+
if (playParams && playParams.hasOwnProperty('decoderPath')) {
352352
var getRealUrlPromise = function (resolve, reject, ezopenURL) {
353353
var realUrl = '';
354354
if (!/^ezopen:\/\//.test(ezopenURL)) { // JSDecoder ws协议播放

0 commit comments

Comments
 (0)