Simple_pjsua

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

 



then which kind of format can I transmit? the sample_pjsua says that is also
able to make a media call but I cannot  transmit media. How can I do it?

Thanks a lot for your advices, I will go throught all the documentation
you've told me.

2011/7/6 Harry Potter <alvinli1991 at qq.com>

> by the way I recommend you analyze this source file Pjsua_app.c
> **
>
>
> ------------------ Original ------------------
> *From: * "neili ma"<neilimaye@xxxxxxxxx>;
> *Date: * Tue, Jul 5, 2011 08:21 PM
> *To: * "pjsip"<pjsip at lists.pjsip.org>; **
> *Subject: * Simple_pjsua
>
> Hello pjsip list,
>
> I'm doing my master thesis with pjsip open source 1.10v and I never used it
> before. I'm writting to ask for help with the sample ''simple_pjsua''.
>
> I am trying to send a MP3 media from my desktop to my laptop. I found in
> internet that the code I have to add is like this:
>
>  pj_status_t <http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#gab43ba3167bd2a2ab4580509dbf79200e> stream_to_call( pjsua_call_id <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#gad4eb99a78c98ddbd83aecf7e933fc684> call_id )
>   {
>      pjsua_player_id <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#ga266a56483961431df7a5ebae457b9f3f> player_id;
>
>      status = pjsua_player_create <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga90a2ec9c8516b5ad13b061a46ae1d07a>("media.mp3", 0, NULL, &player_id);
>      if (status != PJ_SUCCESS)
>         return status;
>
>      status = pjsua_conf_connect <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga3451304d677e013130dfb9e6b37e3ee6>( pjsua_player_get_conf_port <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga4b7a4ad09c9edad41ae516cea468819c>(),
>                                   pjsua_call_get_conf_port <http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga90c100b6e00d146ba824145fe6861aef>() );
>   }
>
> but I don't know where and which additional changes I have to make. Can
> someone lent me a hand?
>
> Thanks in advance
> **
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110707/8dcb5c1d/attachment.html>


[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