Python memory player

RF
Richard Fisk
Mon, Jul 25, 2016 1:32 AM

Hello,

I'm writing a Python pjsip program and I'd like to stream audio into the
call.

Instead of writing a wav player, I'd like to play a stream of raw audio
(without headers).

I've noticed that there is a mem player in the C source code (
http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__MEM__PLAYER.htm).

However, as far as I know, this isn't exposed at the Python layer.

Does anyone know if it is possible to use the mem player via the Python
layer, or recommend another way to stream audio into the call?

Thanks,
Richard

Hello, I'm writing a Python pjsip program and I'd like to stream audio into the call. Instead of writing a wav player, I'd like to play a stream of raw audio (without headers). I've noticed that there is a mem player in the C source code ( http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__MEM__PLAYER.htm). However, as far as I know, this isn't exposed at the Python layer. Does anyone know if it is possible to use the mem player via the Python layer, or recommend another way to stream audio into the call? Thanks, Richard
Z
zhuyongwen
Tue, Jul 26, 2016 2:50 AM

Hi all,

     I use pjsip 2.5.5 in my ios sdk(9.3) , when I open the flag(default) vid_preview_enable_native =PJ_TURE, Then I try preview my front or  the back camera ,pjsip will take about 14sec to show the camer picture ,and the cpu performance is very well.

But when I close the flag, set the vie_preview_enable_native =PJ_FALSE , the pjsip show the camer picture quickly enough , but the cpu very high.

So is there some way I can use native preview and make the pjsip quick show the camer picture ?

Thx a lot

Best regards

Hi all, I use pjsip 2.5.5 in my ios sdk(9.3) , when I open the flag(default) vid_preview_enable_native =PJ_TURE, Then I try preview my front or the back camera ,pjsip will take about 14sec to show the camer picture ,and the cpu performance is very well. But when I close the flag, set the vie_preview_enable_native =PJ_FALSE , the pjsip show the camer picture quickly enough , but the cpu very high. So is there some way I can use native preview and make the pjsip quick show the camer picture ? Thx a lot Best regards