(x, y, width, height, mime, arr)
| 362 | } |
| 363 | |
| 364 | imageRect(x, y, width, height, mime, arr) { |
| 365 | /* The internal logic cannot handle empty images, so bail early */ |
| 366 | if ((width === 0) || (height === 0)) { |
| 367 | return; |
| 368 | } |
| 369 | |
| 370 | const img = new Image(); |
| 371 | img.src = "data: " + mime + ";base64," + Base64.encode(arr); |
| 372 | |
| 373 | this._renderQPush({ |
| 374 | 'type': 'img', |
| 375 | 'img': img, |
| 376 | 'x': x, |
| 377 | 'y': y, |
| 378 | 'width': width, |
| 379 | 'height': height |
| 380 | }); |
| 381 | } |
| 382 | |
| 383 | videoFrame(x, y, width, height, frame) { |
| 384 | this._renderQPush({ |
no test coverage detected