reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
KurentoParticipant.cxx
Go to the documentation of this file.
2#include "ReconSubsystem.hxx"
5#include "UserAgent.hxx"
6
7#include <rutil/Log.hxx>
8#include <rutil/Logger.hxx>
9
10using namespace recon;
11using namespace resip;
12using namespace std;
13
14#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
15
18 ConversationManager& conversationManager,
19 KurentoMediaStackAdapter& kurentoMediaStackAdapter)
20: Participant(partHandle, participantType, conversationManager),
21 mKurentoMediaStackAdapter(kurentoMediaStackAdapter)
22{
23}
24
26 ConversationManager& conversationManager,
27 KurentoMediaStackAdapter& kurentoMediaStackAdapter)
28: Participant(participantType, conversationManager),
29 mKurentoMediaStackAdapter(kurentoMediaStackAdapter)
30{
31}
32
36
37/* FIXME Kurento std::shared_ptr<KurentoMediaInterface>
38KurentoParticipant::getMediaInterface()
39{
40 switch(mKurentoMediaStackAdapter.getMediaInterfaceMode())
41 {
42 case KurentoMediaStackAdapter::sipXGlobalMediaInterfaceMode:
43 resip_assert(mKurentoMediaStackAdapter.getMediaInterface() != 0);
44 return mKurentoMediaStackAdapter.getMediaInterface();
45 case KurentoMediaStackAdapter::sipXConversationMediaInterfaceMode:
46 {
47 // Note: For this mode, the recon code ensures that all conversations a participant
48 // is added to will share the same media interface, so using the first
49 // conversation is sufficient.
50 KurentoConversation *firstConversation = dynamic_cast<KurentoConversation*>(mConversations.begin()->second);
51 resip_assert(firstConversation->getMediaInterface() != 0);
52 return firstConversation->getMediaInterface();
53 }
54 default:
55 resip_assert(false);
56 return nullptr;
57 }
58}*/
59
60/* ====================================================================
61
62 Copyright (c) 2021, SIP Spectrum, Inc. www.sipspectrum.com
63 Copyright (c) 2021, Daniel Pocock https://danielpocock.com
64 Copyright (c) 2007-2008, Plantronics, Inc.
65 All rights reserved.
66
67 Redistribution and use in source and binary forms, with or without
68 modification, are permitted provided that the following conditions are
69 met:
70
71 1. Redistributions of source code must retain the above copyright
72 notice, this list of conditions and the following disclaimer.
73
74 2. Redistributions in binary form must reproduce the above copyright
75 notice, this list of conditions and the following disclaimer in the
76 documentation and/or other materials provided with the distribution.
77
78 3. Neither the name of Plantronics nor the names of its contributors
79 may be used to endorse or promote products derived from this
80 software without specific prior written permission.
81
82 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
83 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
84 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
85 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
86 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
87 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
88 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
89 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
90 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
91 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
92 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
93
94 ==================================================================== */
This class is one of two main classes of concern to an application using the UserAgent library.
This class is one of two main classes of concern to an application using the UserAgent library.
KurentoParticipant(ParticipantHandle partHandle, ConversationManager::ParticipantType participantType, ConversationManager &conversationManager, KurentoMediaStackAdapter &kurentoMediaStackAdapter)
This is the base class for a RemoteParticipant, LocalParticipant and a MediaResourceParticipant.
unsigned int ParticipantHandle
dcm! – add UnusedChecking(_enum) below;