sonysuqin / WasmVideoPlayer

Play file/stream with wasm & webgl & web audio api, using ffmpeg for multi codec support, especially for h265,support http, websocket, http-flv stream.
GNU General Public License v3.0
1.3k stars 375 forks source link

作者 你好,请教下这里的paramByteBuffer,paramCount具体代表什么意思? 一定要传7和4吗?我传其他数值可以吗? #33

Closed zjrwap closed 4 years ago

zjrwap commented 5 years ago

var paramCount = 7, paramSize = 4; var paramByteBuffer = Module._malloc(paramCount * paramSize); var ret = Module._openDecoder(paramByteBuffer, paramCount, this.videoCallback, this.audioCallback); 作者 你好,请教下这里的paramByteBuffer,paramCount具体代表什么意思? 一定要传7和4吗?我传其他数值可以吗?

sonysuqin commented 5 years ago

那个是从C返回JS的音视频参数个数和每个参数的大小,7就是参数个数,4是参数的大小.