Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
rtmp_connection_i.h
1//
2// Agora RTC/MEDIA SDK
3//
4// Created by Pengfei Han in 2021-02.
5// Copyright (c) 2021 Agora.io. All rights reserved.
6//
7#pragma once
8
9#include <stddef.h>
10#include <stdint.h>
11
12#include "NGIAgoraRtmpConnection.h"
13
14 namespace agora {
15 namespace rtc {
16
17 class IRtmpConnectionEx : public IRtmpConnection {
18 public:
19 virtual int initialize(const RtmpConnectionConfiguration &config) = 0;
20 virtual int initializeLLApiInternal(const RtmpConnectionConfiguration& config) = 0;
21 virtual int deinitialize() = 0;
22 virtual int SendAudioFrame(const uint8_t* data, size_t size, int64_t pts_ms) = 0;
23 virtual int SendVideoFrame(const uint8_t* data, size_t size, int64_t pts_ms, bool is_key) = 0;
24 virtual int connectLLApiInternal(const char* url) = 0;
25 virtual int disconnectLLApiInternal() = 0;
26 virtual int registerObserverLLApiInternal(IRtmpConnectionObserver* observer, void (*safeDeleter)(IRtmpConnectionObserver*) = NULL) = 0;
27 virtual int unregisterObserverLLApiInternal(IRtmpConnectionObserver* observer) = 0;
28};
29
30} // namespace rtc
31} // namespace agora
agora::rtc::IRtmpConnectionEx
Definition rtmp_connection_i.h:17
agora::rtc::IRtmpConnectionEx::disconnectLLApiInternal
virtual int disconnectLLApiInternal()=0
agora::rtc::IRtmpConnectionEx::SendAudioFrame
virtual int SendAudioFrame(const uint8_t *data, size_t size, int64_t pts_ms)=0
agora::rtc::IRtmpConnectionEx::SendVideoFrame
virtual int SendVideoFrame(const uint8_t *data, size_t size, int64_t pts_ms, bool is_key)=0
agora::rtc::IRtmpConnectionEx::initialize
virtual int initialize(const RtmpConnectionConfiguration &config)=0
agora::rtc::IRtmpConnectionEx::registerObserverLLApiInternal
virtual int registerObserverLLApiInternal(IRtmpConnectionObserver *observer, void(*safeDeleter)(IRtmpConnectionObserver *)=NULL)=0
agora::rtc::IRtmpConnectionEx::deinitialize
virtual int deinitialize()=0
agora::rtc::IRtmpConnectionEx::unregisterObserverLLApiInternal
virtual int unregisterObserverLLApiInternal(IRtmpConnectionObserver *observer)=0
agora::rtc::IRtmpConnectionEx::connectLLApiInternal
virtual int connectLLApiInternal(const char *url)=0
agora::rtc::IRtmpConnectionEx::initializeLLApiInternal
virtual int initializeLLApiInternal(const RtmpConnectionConfiguration &config)=0
agora::rtc::IRtmpConnection
Definition NGIAgoraRtmpConnection.h:317
agora::rtc::IRtmpConnectionObserver
Definition NGIAgoraRtmpConnection.h:254
agora::rtc
Definition AgoraExtensions.h:5
agora
Definition AgoraAtomicOps.h:21
agora::rtc::RtmpConnectionConfiguration
Definition NGIAgoraRtmpConnection.h:231