File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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' ) {
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 ( ! / ^ e z o p e n : \/ \/ / . test ( ezopenURL ) ) { // JSDecoder ws协议播放
You can’t perform that action at this time.
0 commit comments