Participant(3)

πŸ“¦
version 2.0.9 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸŽ€ NAME πŸŽ€

Participant β€” a whole class of objects that represent remote participants (aka RTP applications) hanging out in a multimedia session. bestie it's giving presence πŸ’…

This is a page from the Library Functions Manual, so yeah, we're in library-land, section 3, and we're gonna read every single word of it together, no skipping, i promise 🫢


✨ SYNOPSIS ✨

#include <sources.h>

Inherits SDESItemsHolder. yes she's a nepo baby, she inherits, and honestly? iconic πŸ‘‘

🌈 Public Member Functions 🌈

  • const std::string & getSDESItem (SDESItemType type) const β€” get the value of an SDES item, slay
  • const std::string & getPRIVPrefix () const β€” get the prefix value for the PRIV SDES item
  • Participant (const std::string &cname) β€” construct a brand new participant, main character energy fr
  • ~Participant () β€” the destructor, she's done, no cap πŸ’€

πŸ¦‹ Friends πŸ¦‹

  • class ParticipantHandler β€” yeah they're friends, we love a supportive friendship

πŸ’– Detailed Description πŸ’–

A class of objects representing remote participants (RTP applications) in a multimedia session. literally the whole point of her 🫢

Any RTP socket/queue class that directly or indirectly inherits from QueueRTCPManager (and hence has RTCP support) will represent participants from which any RTP or RTCP packet has been received through a Participant object. so like, the moment a packet shows up, boom, a Participant object appears. These Participant objects are entities such as end systems (user applications, monitors, etc), RTP mixers and RTP translators. all of them. every single flavor ✨

Participant objects are identified by a CNAME and provide access to all known data about the source of RTP/RTCP packets, such as the CNAME and any other SDES item. Each participant object is related to one or more synchronization objects (

See also SyncSource).

okay the original sentence literally just trails off there with an open parenthesis and then points you at SyncSource. i'm not gonna pretend i know something the page doesn't say, so here's the parenthesis, dangling, exactly as written 😭

If an RTP application based on ccRTP receives packets from itself (for instance, it is included in the destination list), there will be a Participant object that corresponds to the 'local participant' (RTPApplication) object. yes, she can perceive herself, that's self-love actually πŸ’…

Author Federico Montesino Pouzols fedemp@altern.org πŸ‘‘

Examples ccrtptest.cpp.


🌸 Constructor & Destructor Documentation 🌸

πŸ“ Participant::Participant (const std::string & cname)

Construct a new participant. fresh out of the box, baby participant, so cute 🧚

Parameters

  • cname β€” Unique CNAME identifier.

πŸ“ Participant::~Participant ()

she's gone, she's resting, she ate and left no crumbs πŸ’€βœ¨


πŸ‘‘ Member Function Documentation πŸ‘‘

πŸ’œ const std::string & Participant::getPRIVPrefix () const [inline]

Get the prefix value for the PRIV SDES item. the PRIV prefix. she's inline, she's const, she's thriving.

Returns PRIV SDES item prefix as a string.

Return values empty string when no PRIV SDES item has been received from this source. so if you get "" back, it's not a bug, it's just radio silence from that source, bestie πŸ“»

πŸ’œ const std::string & Participant::getSDESItem (SDESItemType type) const [inline]

Get the value of an SDES item. For instance, getSDESItem(SDESItemTypeCNAME), return the CNAME of this Participant. look at her go πŸ’–

Parameters

  • type β€” type of SDES item to get value of.

Returns value of the SDES item as a string.

Return values empty string when the value is not known (no RTCP packet with the requested SDES item has been received from this source). again, empty string β‰  broken, empty string = nobody told us yet πŸ™ˆ

Examples ccrtptest.cpp, and rtplisten.cpp.


🌈 friend class ParticipantHandler [friend]

that's it. that's the friend. we stan a mutual πŸ’…


⭐ Author ⭐

Generated automatically by Doxygen for ccRTP from the source code. so technically a robot wrote this page, and technically i'm now a robot's ghostwriter. the pipeline is pipeline-ing 😭✨


and that's the whole page, no cap, every flag, every return value, every empty string, all of it πŸ’–

ccRTP Β· Participant(3) Β· mwah, go read the source, ily πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from