How to get remote party video frames in PJSUA/PJSUA2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am using “pjsua2_demo” and have established a call to a remote party. Both audio and video are working just fine. The demo sends the color bar to the remote and shows the remote video on a window. The corresponding snippet code:

void MyCall::onCallMediaState(OnCallMediaStateParam &prm)

{

PJ_UNUSED_ARG(prm);

CallInfo ci = getInfo();

VideoMedia dec_med = getDecodingVideoMedia(-1);

VideoMedia enc_med = getEncodingVideoMedia(-1);

VideoMediaTransmitParam param;

Dec_med.startTransmit(enc_med, param);

}

I just need to capture remote party video frames and process them, instead of showing them on a window.

I suppose I should start with “onCallMediaState” callback. But do not have any idea how to start. Any idea?

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list -- pjsip@xxxxxxxxxxxxxxx
To unsubscribe send an email to pjsip-leave@xxxxxxxxxxxxxxx

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux