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

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

51. 与服务端通讯,怎么发送ByteArray里的数据? [ 85%]

与服务端通讯,怎么发送ByteArray里的数据? 与netty服务端通讯,怎么把 ByteArray 中的数据写入 Byte 中,Byte.writeArrayBuffer(byteArr); 中 服务端读取不到数据。用 Byte的就可以正常,要怎么写才正确?             var byteArr:ByteArray...

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

52. 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 [ 85%]

...理想 LayaAir内有没有能直接渲染mpeg的元件 另外就是 我把Byte流转成base64却没办法在Image上渲染 有没有具体解决办法 附上转换码function _arrayBufferToBase64( buffer ) { var binary = ''; var bytes = new Uint8Array( buffer ); var len = bytes.byteLength; for (var ...

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

53. websocket连接, ws 时没问题,改成 wss 没反应 [ 85%]

...么改?或者哪里有连接 wss 的代码片段?谢谢!     this.byte = new Laya.Byte();     this.byte.endian = Laya.Byte.LITTLE_ENDIAN;  //这里我们采用小端     this.socket = new Laya.Socket();     this.socket.endian = Laya.Byte.LITTLE_ENDIAN;  //这里我们采用小端   ...

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

54. 静态protobuf [ 84%]

...g.encode(msg).finish() this.socket.send(buffer)   收消息时要先装到byte里再decode出来 private receiveHandler(msg): void {    this.byte.clear() this.byte.writeArrayBuffer(msg) this.byte.pos = 0 let aMsg = msgScheme.AMsg.decode(this.byte.readUint8Array(0, 100000)) 2019-03-27 0 0 分享 ...

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

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

... 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 the next two (or eight) bytes...

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

56. socket与node服务端连不上?按照官方案例 [ 84%]

...?按照官方案例 //初始化引擎 Laya.init(600,400,Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socke...

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

57. 1.7.18beta少方法? [ 84%]

...TURE_2D, 0, xoffset - 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (xoffset + 1 <= _w) && (gl.texSubImage2DEx(true, WebGLContext.TEXTURE_2D, 0, xoffset + 1, yoffset, WebGLContext.RGBA, WebGLContext.UNSIGNED_BYTE, bitmap)); (yoffset - 1 >= 0) && (gl.texSu...

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

58. ArrayBuffer怎么转换成js的ByteArray [ 83%]

ArrayBuffer怎么转换成js的ByteArray var bytes:ByteArray = new ByteArray(); bytes.writeArrayBuffer(data); bytes.position = 0; 是不是这样啊???? 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

59. websocket连接出错 [ 83%]

...(800,600,Laya.WebGL); // var socket = io.connect('10.10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://10.10.1.103:8888"); // this.sock...

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

60. 关于protobuf反序化的问题,求大神解答~~~ [ 83%]

...login.toArrayBuffer()的同时,还要发送另外的,比如:   this.byte.writeInt32(123); this.byte.writeInt32(1234); this.byte.writeArrayBuffer(buffer); this.socket.send(this.byte.buffer); 那么现在的数据要怎么反序化呢 2017-09-21 添加评论 免费帖 --> 分享 微博 QZONE ...

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