ckplayer

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1502|回复: 3

使用 HBuilderX 编写 出现的问题如何解决

[复制链接]

1

主题

4

帖子

16

积分

新手上路

Rank: 1

积分
16
发表于 2021-12-18 06:25:47 | 显示全部楼层 |阅读模式
06:13:05.180 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. at js/ckplayer.js:8311
06:13:05.260 ReferenceError: loadedMetaDataHandler is not defined at js/ckplayer.js:8911

回复

使用道具 举报

1

主题

4

帖子

16

积分

新手上路

Rank: 1

积分
16
 楼主| 发表于 2021-12-18 06:26:59 | 显示全部楼层
embed: function(c) {
                        //c:Object:是调用接口传递的属性对象
                        /* if (window.location.href.substr(0, 7) == 'file://') {//如果是使用的file协议打网页则弹出提示
                                alert('Please use the HTTP protocol to open the page');
                                return;
                        } */

这里被我注释掉了才能使用本地加载 js 文件,播放视频正常
回复

使用道具 举报

1

主题

4

帖子

16

积分

新手上路

Rank: 1

积分
16
 楼主| 发表于 2021-12-18 06:28:15 | 显示全部楼层
HBuilderX 手机开发,调用的都是本地的JS,希望官方能考虑JS加载问题别局限于HTTP
回复

使用道具 举报

1

主题

4

帖子

16

积分

新手上路

Rank: 1

积分
16
 楼主| 发表于 2021-12-18 06:48:31 | 显示全部楼层
06:13:05.260 ReferenceError: loadedMetaDataHandler is not defined at js/ckplayer.js:8911

这个报错是没指定函数已经解决了


06:13:05.180 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. at js/ckplayer.js:8311

这个线程问题该如何解决呢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表