Agora Java API Reference for Android

IAgoraFileUploader.h
1
2 // Copyright (c) 2019 Agora.io. All rights reserved
3
4 // This program is confidential and proprietary to Agora.io.
5 // And may not be copied, reproduced, modified, disclosed to others, published
6 // or used, in whole or in part, without the express prior written permission
7 // of Agora.io.
8
9 #pragma once // NOLINT(build/header_guard)
10
11 #include "AgoraRefPtr.h"
12 #include <api/cpp/aosl_ares_class.h>
13
14 namespace agora {
15 namespace rtc {
16
17 struct ImagePayloadData {
18 ImagePayloadData(int seq, uint8_t* pixel, int fileSize, int w, int h, int64_t ts)
19 : seqid(seq),
20 size(fileSize),
21 width(w),
22 height(h),
23 timestamp(ts){
24 }
25
26 int seqid;
27 int size;
28 int width;
29 int height;
30 int64_t timestamp;
31 uint8_t* buffer;
32 void* privdata;
33 int privsize;
34 };
38 class IFileUploaderService : public RefCountInterface {
39 public:
40 virtual ~IFileUploaderService() {}
41 virtual int startImageUpload(const ImagePayloadData* imgData, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
42 virtual int stopImageUpload(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
43 };
44 } // namespace rtc
45 } // namespace agora
agora::rtc::ImagePayloadData
Definition: IAgoraFileUploader.h:17
agora::rtc::IFileUploaderService
Definition: IAgoraFileUploader.h:38
agora::RefCountInterface
Definition: AgoraRefPtr.h:31