getting cname from receiver rtpbin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

getting cname from receiver rtpbin

sivaits4u
hi all,
I am using gstrtpbin for a conference.
i am trying to get the cname of a gstreamer to differentiate participants in multi party conference to identify audio and video of a particular participant. but i didn't get it how to get it.

i have tried to get it by the possible various callbacks available(pad-added,pad-added,on-ssrc-sdes) but no luck. we can get by adding a add_watch as a message but i wanted it before/at the time  pad-added getting called.

i have seen a similar post(link below) in but my requirement is different i don't want to wait till message to come on bus as i needed it before.

http://gstreamer-devel.966125.n4.nabble.com/Gstrtpbin-one-RtpSession-several-quot-on-new-ssrc-quot-calls-td3815649.html
 
how can i get it please help guys.

thanks,
bujji
 
Reply | Threaded
Open this post in threaded view
|

Re: getting cname from receiver rtpbin

sivaits4u
hi all,
me again...
i could not able to get relation between ssrc and cname.

is there any mechanism(api) to find cname by ssrc or ssrc by cname  in gsrtpbin ?
i could not differentiate which ssrc is related to which cname when more participants are there in conference.

please help me

thanks,
bujji


Reply | Threaded
Open this post in threaded view
|

Re: getting cname from receiver rtpbin

minimalniemand
Hi,

have you ever managed to do what you wanted? I am currently stuck with the exact same problem (also developing a conferencing solution).
I need to distinguish the sending hosts to send each of them a different audio back (each participant should hear everybody but himself of course).

Your help is greatly appreciated!!
Reply | Threaded
Open this post in threaded view
|

Re: getting cname from receiver rtpbin

sivaits4u
try using on-ssrc-sdes callback
i am putting python code here change accordingly in C if you want

    def rtpbin_ssrc_sdes(self, rtpbin, sessid,ssrc):
        session = rtpbin.emit("get-internal-session", sessid)
        source = session.emit("get-source-by-ssrc", ssrc)
        sdes = source.get_property('sdes')
        cname = str(sdes['cname'])

thanks,
bujji




On Wed, Feb 22, 2012 at 10:01 PM, minimalniemand <[hidden email]> wrote:
Hi,

have you ever managed to do what you wanted? I am currently stuck with the
exact same problem (also developing a conferencing solution).
I need to distinguish the sending hosts to send each of them a different
audio back (each participant should hear everybody but himself of course).

Your help is greatly appreciated!!

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/getting-cname-from-receiver-rtpbin-tp4176037p4410924.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: getting cname from receiver rtpbin

minimalniemand
Finally!! Thank you so much!!

I will try this immediately!



On Thu, Feb 23, 2012 at 6:05 AM, B U J J I <[hidden email]> wrote:
try using on-ssrc-sdes callback
i am putting python code here change accordingly in C if you want

    def rtpbin_ssrc_sdes(self, rtpbin, sessid,ssrc):
        session = rtpbin.emit("get-internal-session", sessid)
        source = session.emit("get-source-by-ssrc", ssrc)
        sdes = source.get_property('sdes')
        cname = str(sdes['cname'])

thanks,
bujji




On Wed, Feb 22, 2012 at 10:01 PM, minimalniemand <[hidden email]> wrote:
Hi,

have you ever managed to do what you wanted? I am currently stuck with the
exact same problem (also developing a conferencing solution).
I need to distinguish the sending hosts to send each of them a different
audio back (each participant should hear everybody but himself of course).

Your help is greatly appreciated!!

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/getting-cname-from-receiver-rtpbin-tp4176037p4410924.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Michael Niemand

Albusstr. 17
60313 Frankfurt/M
Germany

Tel.: +49 (0) 69 200 130 60
Mobile: +49 (0) 171 645 29 07



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: getting cname from receiver rtpbin

minimalniemand
Wow, this is WAY more complicated in java. You have to use the low level API since there is no get-internal-session function. Maybe this should be implemented for more convenience?
I can hardly imagine that getting the socket of a connected client is a task that is only rarely used ...



On Thu, Feb 23, 2012 at 9:17 AM, Michael Niemand <[hidden email]> wrote:
Finally!! Thank you so much!!

I will try this immediately!




On Thu, Feb 23, 2012 at 6:05 AM, B U J J I <[hidden email]> wrote:
try using on-ssrc-sdes callback
i am putting python code here change accordingly in C if you want

    def rtpbin_ssrc_sdes(self, rtpbin, sessid,ssrc):
        session = rtpbin.emit("get-internal-session", sessid)
        source = session.emit("get-source-by-ssrc", ssrc)
        sdes = source.get_property('sdes')
        cname = str(sdes['cname'])

thanks,
bujji




On Wed, Feb 22, 2012 at 10:01 PM, minimalniemand <[hidden email]> wrote:
Hi,

have you ever managed to do what you wanted? I am currently stuck with the
exact same problem (also developing a conferencing solution).
I need to distinguish the sending hosts to send each of them a different
audio back (each participant should hear everybody but himself of course).

Your help is greatly appreciated!!

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/getting-cname-from-receiver-rtpbin-tp4176037p4410924.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Michael Niemand

Albusstr. 17
60313 Frankfurt/M
Germany

Tel.: <a href="tel:%2B49%20%280%29%2069%20200%20130%2060" value="+496920013060" target="_blank">+49 (0) 69 200 130 60
Mobile: <a href="tel:%2B49%20%280%29%20171%20645%2029%2007" value="+491716452907" target="_blank">+49 (0) 171 645 29 07





--
Michael Niemand

Albusstr. 17
60313 Frankfurt/M
Germany

Tel.: +49 (0) 69 200 130 60
Mobile: +49 (0) 171 645 29 07



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel