RsServerMediaSubsession.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "RsDevice.hh"
7 #include <liveMedia.hh>
8 
9 #ifndef _ON_DEMAND_SERVER_MEDIA_SUBSESSION_HH
10 #include "OnDemandServerMediaSubsession.hh"
11 #endif
12 
13 #include "RsSource.hh"
14 
15 class RsServerMediaSubsession : public OnDemandServerMediaSubsession
16 {
17 public:
18  static RsServerMediaSubsession* createNew(UsageEnvironment& t_env, rs2::video_stream_profile& t_videoStreamProfile, std::shared_ptr<RsDevice> rsDevice);
21 
22 protected:
23  RsServerMediaSubsession(UsageEnvironment& t_env, rs2::video_stream_profile& t_video_stream_profile, std::shared_ptr<RsDevice> device);
24  virtual ~RsServerMediaSubsession();
25  virtual FramedSource* createNewStreamSource(unsigned t_clientSessionId, unsigned& t_estBitrate);
26  virtual RTPSink* createNewRTPSink(Groupsock* t_rtpGroupsock, unsigned char t_rtpPayloadTypeIfDynamic, FramedSource* t_inputSource);
27 
28 private:
31  std::shared_ptr<RsDevice> m_rsDevice;
32 };
std::shared_ptr< RsDevice > m_rsDevice
virtual FramedSource * createNewStreamSource(unsigned t_clientSessionId, unsigned &t_estBitrate)
RsServerMediaSubsession(UsageEnvironment &t_env, rs2::video_stream_profile &t_video_stream_profile, std::shared_ptr< RsDevice > device)
rs2::video_stream_profile getStreamProfile()
virtual RTPSink * createNewRTPSink(Groupsock *t_rtpGroupsock, unsigned char t_rtpPayloadTypeIfDynamic, FramedSource *t_inputSource)
rs2::video_stream_profile m_videoStreamProfile
rs2::frame_queue & getFrameQueue()
static RsServerMediaSubsession * createNew(UsageEnvironment &t_env, rs2::video_stream_profile &t_videoStreamProfile, std::shared_ptr< RsDevice > rsDevice)
auto device
Definition: pyrs_net.cpp:17


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41