[Nice] Android: gstreamer + libnice
Youness Alaoui
youness.alaoui at collabora.co.uk
Thu Feb 25 10:24:58 PST 2010
Hi,
Nice to see the libnice use expanding.
Libnice will probably build on android without any problems, if you have
any issues, please report them so I can get them fixed.
The only 'application' I know which uses nicesrc/nicesink is farsight2.
You can have a look at the nice transmitter for farsight and see how it
works, I don't think it's too complicated. You can view the libnice
documentation to understand how to use libnice itself.
How nicesrc/nicesink work is that you give them the NiceAgent you
created and they'll take care of the rest. You'll also need to create a
thread for the NiceAgent's mainloop (needed for
timers/retransmissions/etc..) So the way to do it would be to :
1 - create a thread
2 - create a mainloop/maincontext in that thread
3 - create a NiceAgent with the thread's maincontext as argument to
nice_agent_new
4 - create a nicesrc and give it the NiceAgent you created
5 - create a nicesink and give it the NiceAgent you created
6 - run the mainloop
You can also skip the steps 1 and 2 if you already have a mainloop in
your application (ie, if you're not writing a mainloop-free library) and
create the NiceAgent with your application's mainloop ('NULL' for the
default mainloop)
If you have any more questions, feel free to ask.
Thanks,
Youness.
Vivek Bardia wrote:
> Subject: Android: gstreamer + libnice
> Hello,
>
> I am working on Gstreamer in Android.
>
> I have taken the reference codes from
> here: http://groups.google.com/group/prajnashi and http://code.google.com/p/rowboat/
>
> I have been able to extend the plugins supported in the above code and
> added support for quite a few plugins like rtpbin and rtsp.* I also
> intend to bring in the libnice library along with the nice gstreamer
> plugins into the Android build, is it possible?*
>
> *I want to do streaming and require help with respect to the use of ICE
> standard based libraries and gstreamer plugins. Libnice > nicesrc and
> nicesink. This would solve the NAT related issues. I do not intend to
> use Farsight in Android.*
>
> Could anyone help me out as to where nice plugins are used in the
> gstreamer application and how to use them, and what is its
> relevance. * Are there any sample gst apps using nice plugins to check
> with RTP streaming.*
>
> I am also in the process of upgrading the gstreamer version in the
> android framework to 0.10.24.
>
> Thanks and Regards,
> Vivek
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nice mailing list
> Nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/nice/attachments/20100225/ad53c197/attachment.pgp>
More information about the Nice
mailing list