Need help on setting QtGstreamer element property
ly tran
congly85 at yahoo.com
Thu Sep 13 00:39:45 PDT 2012
Hi,
I'm developing softphone using QtGStreamer and libnice for NAT traversal.
Libnice have nicesrc and nicesink element for RTP transmission.
I'm now having problem when setting "agent" property for nicesrc Element in QtGstreamer
Here is my code
intchannel_rx(NiceAgent*v_agent,intv_stream_id){
QGst::PipelinePtrm_pipeline;
QGst::ElementPtrvudpsrc,videofilter,videofilter_rx,vdecoder,vdepayload,ffcolor,videosink;
QGst::CapsPtrvcaps,rxcaps;
QGst::BinPtrrxBin;
rxBin=QGst::Bin::create();
m_pipeline=QGst::Pipeline::create();
vudpsrc=QGst::ElementFactory::make("nicesrc");
vudpsrc->setProperty("stream",v_stream_id);
vudpsrc->setProperty("component",1);
QGlib::Typetype=QGlib::Type::fromInstance(v_agent);
QGlib::Valueagent_type=vudpsrc->property("agent");
agent_type=QGlib::Value::create(type);
vudpsrc->setProperty("agent",agent_type); //compile OK but have the following error when run
//(SIPPhoneGUI:8513): GLib-GObject-WARNING **: unable to set property `agent'
//of type `NiceAgent' from value of type `GType'vudpsrc->setProperty("agent",v_agent); // cannot compile because of
/usr/include/QtGStreamer/QGst/../QGlib/type.h:182: error: could not convert 'QGlib::GetTypeImpl<_NiceAgent*>()'
from 'QGlib::GetTypeImpl<_NiceAgent*>' to 'QGlib::Type'
Can you help me how to set the "agent" property ?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120913/8abda0a8/attachment-0001.html>
More information about the gstreamer-devel
mailing list