• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 196 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)

171. 【官网代码】加载dom音频报错,怎么回事? [ 49%]

...uest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudioData.bind(this));}private function decodeAudioData(buffer:Object):void{audioBufferSourceNode = ...

来源: Laya_社区 发布时间: 20181023

172. native1.0.5 wss发送消息速度过快导致延迟 [ 49%]

...繁发送消息或者接收消息,导致卡顿。据说WebSocket 中的send( ) 方法是异步的:提供的数据会在客户端排队,而函数则立即返回。很有可能这个卡顿就是排队导致的。 注:(上面的问题在h5端不管用ws还是wss 或者native上不管ios还是...

来源: Laya_社区 发布时间: 20191105

173. 请问我用下面的代码发送个简单的http get请求,为什么在电脑上能得到成功输出,在手机上总是得到失败输出呢? [ 49%]

...null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function cb_onFail(message) { alert(message); // 失败输出:Request failed Status:0 text: }   注:url...

来源: Laya_社区 发布时间: 20161103

174. httprequest ios手机上请求提示Request failed status:0 [ 49%]

... open() 之前)。  1:请求已经建立但还没有发出(调用 send() 之前)。  2:请求已经发出正在处理之中(这里通常可以从响应得到内容头部)。  3:请求已经处理,响应中通常有部分数据可用,但是服务器还没有完成响应。  4...

来源: Laya_社区 发布时间: 20180522

175. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 49%]

...,说是字节长度问题。 How long are the message you are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use...

来源: Laya_社区 发布时间: 20180612

176. 在native下 Laya.Browser.window.Blob不存在 [ 48%]

...his, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片...

来源: Laya_社区 发布时间: 20180201

177. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 48%]

...trace("HttpRequest error");             });             req.send("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"); 却请求失败,触发Event.ERROR Chrome中错误信息如下: XMLHttpRequest cannot load http://int.dpool.sina.com.cn/i ... 3Djs. No 'Access-Control-A...

来源: Laya_社区 发布时间: 20170120

178. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...数据 greetingBuffer 通过 WebSocket 发送到服务器。 this.socket?.send(greetingBuffer); }; // 接收服务器返回的消息 this.socket.onmessage = (event) => { //将 event.data 转换为 Uint8Array 类型,以便传递给解码函数 handleServerResponse 进行处理。 const buffer = ...

来源: Laya3.0_文档 发布时间: 20250103

179. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 45%]

...E,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ var url = Laya.Browser.window.URL.createObjectURL(data);//创建一个url对象 self.sp_video.loadImage(url); } } })(); 主要代码就是这样...

来源: Laya_社区 发布时间: 20170825

180. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 44%]

...回 //post数据的写法 console.log(JSON.stringify(request)); this.http.send(url,JSON.stringify(request), 'post', 'text',["content-type","application/json"]); } function onProgress(e) { console.log("run onProgress"); } function onComplete(e) { console.log("run onComplete"); console.log(this.http.d...

来源: Laya_社区 发布时间: 20180315