Agora C++ API Reference for All Platforms

media_streaming_source_i.h
1 //
2 // Agora SDK
3 // Copyright (c) 2019 Agora.io. All rights reserved.
4 //
5 // Created by xiaohua.lu in 2020-03.
6 // CodeStyle: Google C++
7 //
8
9 #pragma once
10
11 #include "IAgoraMediaStreamingSource.h"
12 // for agora::utils::worker_type
13
14
15
16 namespace agora {
17
18 namespace base {
19 class IAgoraService;
20 } // namespace base
21
22 namespace rtc {
23
24 class IAudioEncodedFrameSender;
25 class IVideoEncodedImageSender;
26
27 class IMediaStreamingSourceEx : public IMediaStreamingSource {
28 protected:
29 virtual ~IMediaStreamingSourceEx() = default;
30
31 public:
32 static agora_refptr<IMediaStreamingSource> Create(base::IAgoraService *agora_service);
33
34 virtual agora_refptr<IAudioEncodedFrameSender> getEncodedAudioFrameSender() = 0;
35 virtual agora_refptr<IVideoEncodedImageSender> getEncodedVideoFrameSender() = 0;
36 };
37
38 } // namespace rtc
39 } // namespace agora
agora::base::IAgoraService
Definition: IAgoraService.h:395
agora::agora_refptr
Definition: AgoraRefPtr.h:44
agora::rtc::IMediaStreamingSourceEx::getEncodedVideoFrameSender
virtual agora_refptr< IVideoEncodedImageSender > getEncodedVideoFrameSender()=0
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::IMediaStreamingSourceEx::~IMediaStreamingSourceEx
virtual ~IMediaStreamingSourceEx()=default
agora::rtc::IMediaStreamingSourceEx::Create
static agora_refptr< IMediaStreamingSource > Create(base::IAgoraService *agora_service)
agora::rtc::IMediaStreamingSource
The IMediaStreamingSource class provides access to a media streaming source demuxer....
Definition: IAgoraMediaStreamingSource.h:89
agora::rtc::IMediaStreamingSourceEx
Definition: media_streaming_source_i.h:27
agora::rtc::IMediaStreamingSourceEx::getEncodedAudioFrameSender
virtual agora_refptr< IAudioEncodedFrameSender > getEncodedAudioFrameSender()=0
rtc
Definition: video_node_i.h:28