NaCl module crashed when start both audio and video.

29 views
Skip to first unread message

張榆平

unread,
Oct 24, 2016, 1:39:16 AM10/24/16
to Native-Client-Discuss
I combine three API in the pepper_49 example.
1.Audio
2.Video Decode
3.Websocket
I want to play the video&audio received by websocket.
If only use Audio+Websocket-->It works correctly.
If only use Video Decode+Websocket-->It works correctly.
But if both two work together, the NaCl module crash.

A test I tried:
I try to fill audio buffer with 0 in SineWaveCallback-->means the audio has no data-->muted.
for(i=0;i<buffer_size;i++){
for(j=0;j<channels;j++){
*buff++ = 0;
}
}
Start the video first.
After the video data from websocket can be played correctly, I send a commend to NaCl let 'audio_.StartPlayback();' work.
Most of the time, the NaCl module crash.

Use the same nacl code, playing audio and video independently will work correctly.
Start both audio and video, NaCl module would crash most of the time.
Let one of them be 0 data and start both, NaCl module would crash most of the time.

Reply all
Reply to author
Forward
0 new messages