Node-Media-Server icon indicating copy to clipboard operation
Node-Media-Server copied to clipboard

我回调拒绝了推流,但是摄像头还是消耗流量?

Open luoyigit opened this issue 3 years ago • 0 comments

nms.on('prePublish', (id, StreamPath, args) => { // console.log('[NodeEvent on prePublish]', id=${id} StreamPath=${StreamPath} args=${JSON.stringify(args)}); var stream_name=StreamPath.slice(6); dbService.IsCanPublish(stream_name,id).then(res=>{ if(!res) { let session = nms.getSession(id); session.reject(); } else{ console.log(流-${stream_name}-prePublish) } }) });

luoyigit avatar Sep 09 '21 02:09 luoyigit