19 |
19 |
20 |
20 |
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 #include "mccsubthreadclientbase.h" |
22 #include "mccsubthreadclientbase.h" |
23 #include "mccrtpmanager.h" |
23 #include "mccrtpmanager.h" |
|
24 #include "mccmsrpmanager.h" |
24 #include "mccsubcontrollerlogs.h" |
25 #include "mccsubcontrollerlogs.h" |
25 #include "mccsymstreambase.h" |
26 #include "mccsymstreambase.h" |
|
27 #include "mmccinterfacedef.h" |
26 |
28 |
27 |
29 |
28 // ============================ MEMBER FUNCTIONS =============================== |
30 // ============================ MEMBER FUNCTIONS =============================== |
29 |
31 |
30 // ----------------------------------------------------------------------------- |
32 // ----------------------------------------------------------------------------- |
38 iObserver = NULL; |
40 iObserver = NULL; |
39 } |
41 } |
40 |
42 |
41 // ----------------------------------------------------------------------------- |
43 // ----------------------------------------------------------------------------- |
42 // CMccSubThreadClientBase::GetCodecL |
44 // CMccSubThreadClientBase::GetCodecL |
|
45 // Returns the used codec |
|
46 // ----------------------------------------------------------------------------- |
|
47 void CMccSubThreadClientBase::GetCodecL( const TUint32 /*aStreamId*/, |
|
48 TMccCodecInfo& aCodec ) |
|
49 { |
|
50 TFourCC nullFourCC; |
|
51 if( nullFourCC == iCodecInfo.iFourCC ) |
|
52 { |
|
53 //User::Leave( KErrNotReady ); |
|
54 } |
|
55 else |
|
56 { |
|
57 aCodec = iCodecInfo; |
|
58 } |
|
59 } |
|
60 |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CMccSubThreadClientBase::CodecInformationL |
43 // Returns the used codec |
64 // Returns the used codec |
44 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
45 void CMccSubThreadClientBase::CodecInformationL( TUint32 aStreamId, |
66 void CMccSubThreadClientBase::CodecInformationL( TUint32 aStreamId, |
46 TMccCodecInfo& aCodec ) |
67 TMccCodecInfo& aCodec ) |
47 { |
68 { |
103 { |
124 { |
104 User::Leave( KErrNotSupported ); |
125 User::Leave( KErrNotSupported ); |
105 } |
126 } |
106 |
127 |
107 // ----------------------------------------------------------------------------- |
128 // ----------------------------------------------------------------------------- |
|
129 // CMccSubThreadClientBase::SetRemoteMsrpPathL |
|
130 // Sets the remote msrp path of uplink stream |
|
131 // ----------------------------------------------------------------------------- |
|
132 void CMccSubThreadClientBase::SetRemoteMsrpPathL( TDes8& /*aRemAddr*/, TDes8& /*aConnStatus*/ ) |
|
133 { |
|
134 User::Leave( KErrNotSupported ); |
|
135 } |
|
136 |
|
137 // ----------------------------------------------------------------------------- |
108 // CMccSubThreadClientBase::InitializeLinkL |
138 // CMccSubThreadClientBase::InitializeLinkL |
109 // Creates the RTP session in the subthread, STEP #1 |
139 // Creates the RTP session in the subthread, STEP #1 |
110 // ----------------------------------------------------------------------------- |
140 // ----------------------------------------------------------------------------- |
111 // |
141 // |
112 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, |
142 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, |
113 TInt /*aIapId*/ ) |
143 TInt /*aIapId*/ ) |
|
144 { |
|
145 User::Leave( KErrNotSupported ); |
|
146 } |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // CMccSubThreadClientBase::InitializeLinkL |
|
150 // Creates the MSRP session in the subthread, STEP #1 |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, |
|
154 TInt /*aIapId*/, |
|
155 HBufC8*& /*aLocalMsrpPath*/ ) |
114 { |
156 { |
115 User::Leave( KErrNotSupported ); |
157 User::Leave( KErrNotSupported ); |
116 } |
158 } |
117 |
159 |
118 // ----------------------------------------------------------------------------- |
160 // ----------------------------------------------------------------------------- |
134 // ----------------------------------------------------------------------------- |
176 // ----------------------------------------------------------------------------- |
135 // |
177 // |
136 void CMccSubThreadClientBase::SetLinkId( TUint32 aLinkId ) |
178 void CMccSubThreadClientBase::SetLinkId( TUint32 aLinkId ) |
137 { |
179 { |
138 iLinkId = aLinkId; |
180 iLinkId = aLinkId; |
139 if ( iRtpmanager ) |
181 if(this->iLinkType == KMccLinkMessage) |
140 { |
182 { |
141 iRtpmanager->SetLinkId( aLinkId ); |
183 iMsrpmanager->SetLinkId( aLinkId ); |
|
184 } |
|
185 else |
|
186 { |
|
187 if ( iRtpmanager ) |
|
188 { |
|
189 iRtpmanager->SetLinkId( aLinkId ); |
|
190 } |
142 } |
191 } |
143 } |
192 } |
144 |
193 |
145 // ----------------------------------------------------------------------------- |
194 // ----------------------------------------------------------------------------- |
146 // CMccSubThreadClientBase::GetLinkIndex |
195 // CMccSubThreadClientBase::GetLinkIndex |