Home | History | Annotate | Download | only in base

Lines Matching refs:streams

34 // E.x: Consider a source that is sent as 3 simulcast streams
155 // For 1:1 calls, should be left empty (which means remote streams
156 // and local streams should not be mixed together).
204 // A collection of audio and video and data streams. Most of the
270 // A request for several streams in various formats.
276 const StreamParams* GetStream(const StreamParamsVec& streams,
279 std::find_if(streams.begin(), streams.end(), condition);
280 return found == streams.end() ? nullptr : &(*found);
283 inline const StreamParams* GetStreamBySsrc(const StreamParamsVec& streams,
285 return GetStream(streams,
289 inline const StreamParams* GetStreamByIds(const StreamParamsVec& streams,
292 return GetStream(streams,
298 inline const StreamParams* GetStream(const StreamParamsVec& streams,
300 return GetStream(streams,
305 bool RemoveStream(StreamParamsVec* streams, Condition condition) {
306 auto iter(std::remove_if(streams->begin(), streams->end(), condition));
307 if (iter == streams->end())
309 streams->erase(iter, streams->end());
313 // Removes the stream from streams. Returns true if a stream is
315 inline bool RemoveStream(StreamParamsVec* streams,
317 return RemoveStream(streams,
320 inline bool RemoveStreamBySsrc(StreamParamsVec* streams, uint32_t ssrc) {
321 return RemoveStream(streams,
324 inline bool RemoveStreamByIds(StreamParamsVec* streams,
327 return RemoveStream(streams,
339 // streams associated with the simulcast streams. Leaving as non-static so we