Skip to content

Commit 160b15f

Browse files
authored
recorder.js bug: OnRecorderFrameRecorded回调了空数据
这里buffer数据传错了。 导致Unity里拿不到数据!
1 parent 6f4a603 commit 160b15f

File tree

1 file changed

+1
-1
lines changed
  • Demo/API/Assets/WX-WASM-SDK-V2/Runtime/wechat-default/unity-sdk

1 file changed

+1
-1
lines changed

Demo/API/Assets/WX-WASM-SDK-V2/Runtime/wechat-default/unity-sdk/recorder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
return;
2929
}
3030
const callback = (res) => {
31-
cacheArrayBuffer(id, res.data);
31+
cacheArrayBuffer(id, res.frameBuffer);
3232
const resStr = JSON.stringify({
3333
callbackId: id,
3434
res: JSON.stringify({

0 commit comments

Comments
 (0)