Windows(C++)[v1.7.5.0]
PanoRtcDevice.h
浏览该文件的文档.
1
3#pragma once
4#include "PanoRtcDefs.h"
5
7PANORTC_NS_BEGIN
8
19 uint32_t channels;
21 uint32_t sampleRate;
24};
25
36 uint32_t width;
38 uint32_t height;
40 uint32_t count;
48 bool mirror;
49};
50
60 union {
65 };
67 uint64_t timestamp;
68};
69
77public:
92 virtual QResult onRenderData(void *buffer, int length, MediaFormat &fmt) = 0;
105 virtual QResult onRenderData(void *native, MediaFormat &fmt) = 0;
112 virtual ~RtcRenderSink() {}
113};
114
122public:
137 virtual QResult putData(void *buffer, int length, const MediaFormat &format) = 0;
149
156 virtual void destroy() = 0;
157
158protected:
166};
167
175public:
186 virtual QResult setEnableStatus(bool enabled) = 0;
187
202 virtual QResult putData(void *buffer, int length, const MediaFormat &format) = 0;
203
204protected:
212};
213
221public:
236 virtual QResult onVideoFrame(void *buffer, int length, VideoFormat &fmt) = 0;
249 virtual QResult onVideoFrame(void *native, VideoFormat &fmt) = 0;
257};
259
267public:
282 virtual QResult setEnableStatus(bool enable, int32_t sampleRate, int32_t channels) = 0;
283
298 virtual QResult pushData(void *buffer, int length, const MediaFormat &format) = 0;
299
300protected:
308};
309
317public:
332 virtual QResult setEnableStatus(bool enable, int32_t sampleRate, int32_t channels) = 0;
333
348 virtual QResult pullData(void *buffer, int length, const MediaFormat &format) = 0;
349
350protected:
358};
359
367public:
384 virtual QResult onAudioFrame(void *buffer, int length, int maxBufferByteLens, AudioFormat &fmt) = 0;
385
393};
395
403{
404public:
418 virtual bool isCameraFocusSupported() = 0;
436 virtual QResult setCameraFocusPointInPreview(float x, float y) = 0;
450 virtual bool isCameraExposureSupported() = 0;
468 virtual QResult setCameraExposurePointInPreview(float x, float y) = 0;
469
470protected:
471 virtual ~CameraController() {}
472};
473
482 Fit = 0,
484 FullFill,
486 CropFill,
487};
488
496{
500 bool enableSourceMirror = false;
504 bool enableMirror = false;
505};
506
514{
518 bool sourceMirror = false;
519};
520
528{
532 bool enableMirror = false;
533};
535
543{
547 int frameRate{ 5 };
548};
549
558 Fit = 0,
560 Original,
561};
562
570{
571public:
586 using EnumDeviceCallback = bool(*) (void *context, const char deviceName[kMaxDeviceNameLength], const char deviceId[kMaxDeviceIDLength]);
587
598 virtual void enumerateRecordDevices(EnumDeviceCallback cb, void *context) const = 0;
609 virtual void enumeratePlayoutDevices(EnumDeviceCallback cb, void *context) const = 0;
610
621 virtual QResult setRecordDevice(const char deviceId[kMaxDeviceIDLength]) = 0;
639 virtual bool isDefaultRecordDevice() const = 0;
650 virtual QResult getRecordDevice(char deviceId[kMaxDeviceIDLength]) const = 0;
651
662 virtual QResult setPlayoutDevice(const char deviceId[kMaxDeviceIDLength]) = 0;
680 virtual bool isDefaultPlayoutDevice() const = 0;
691 virtual QResult getPlayoutDevice(char deviceId[kMaxDeviceIDLength]) const = 0;
692
703 virtual QResult setRecordDeviceVolume(uint32_t volume) = 0;
714 virtual QResult getRecordDeviceVolume(uint32_t *volume) const = 0;
715
726 virtual QResult setPlayoutDeviceVolume(uint32_t volume) = 0;
737 virtual QResult getPlayoutDeviceVolume(uint32_t *volume) const = 0;
738
749 virtual QResult getPlayoutLevel(int16_t &level) const = 0;
750
761 virtual QResult getRecordingLevel(int16_t &level) const = 0;
762
773 virtual QResult setMicrophoneMuteStatus(bool muted) = 0;
784 virtual QResult setLoudspeakerStatus(bool enable) = 0;
795 virtual QResult getLoudspeakerStatus(bool *enabled) const = 0;
796
810 const char recordDeviceId[panortc::kMaxDeviceIDLength],
811 const char playoutDeviceId[panortc::kMaxDeviceIDLength]) = 0;
820 virtual QResult stopDeviceTest() = 0;
821
835 const char playoutDeviceId[panortc::kMaxDeviceIDLength],
836 const char* filename) = 0;
846
858 const char recordDeviceId[panortc::kMaxDeviceIDLength]) = 0;
868
879 virtual QResult getTestPlayoutLevel(int16_t &level) = 0;
880
891 virtual QResult getTestRecordingLevel(int16_t &level) = 0;
892
947
958 virtual QResult setPlayoutDataMuteStatus(bool muted) = 0;
959
960protected:
968};
969
970
978{
979public:
994 using EnumDeviceCallback = bool(*) (void* context, const char deviceName[kMaxDeviceNameLength], const char deviceId[kMaxDeviceIDLength]);
1005 virtual void enumerateCaptureDevices(EnumDeviceCallback cb, void *context) const = 0;
1016 virtual QResult setDevice(const char deviceId[kMaxDeviceIDLength]) = 0;
1027 virtual QResult getDevice(char deviceId[kMaxDeviceIDLength]) const = 0;
1028
1045 virtual QResult startPreview(const char deviceId[kMaxDeviceIDLength],
1046 void *window,
1047 const VideoConfig &config) = 0;
1062 virtual QResult startPreview(const char deviceId[kMaxDeviceIDLength],
1063 RtcRenderSink *sink,
1064 VideoProfileType profileType) = 0;
1065
1076 virtual QResult stopPreview(const char deviceId[kMaxDeviceIDLength]) = 0;
1077
1086 virtual QResult switchDevice() = 0;
1097 virtual QResult getDevicePosition(VideoDevicePosition &position) const = 0;
1108 virtual VideoDevicePosition getDevicePosition(const char deviceId[kMaxDeviceIDLength]) const = 0;
1109
1119
1141 OptionType option, void * param, uint32_t size) = 0;
1142
1166 MediaProcessorType type,
1167 void * processor,
1168 void * param = nullptr) = 0;
1169
1182 virtual CameraController* getCameraController(const char deviceId[kMaxDeviceIDLength]) = 0;
1183
1184
1185protected:
1193};
1194
1202{
1203public:
1218 using EnumSourceCallback = bool(*) (void* context, ScreenSourceID ssid, const char *name);
1229 virtual void enumerateDisplays(EnumSourceCallback cb, void *context) = 0;
1240 virtual void enumerateApplications(EnumSourceCallback cb, void *context) = 0;
1251 virtual void enumerateWindows(EnumSourceCallback cb, void *context) = 0;
1252
1265 virtual QResult enableFilterSelfApp(bool enabled) = 0;
1278 virtual QResult enableFilterWindows(bool enabled) = 0;
1292 virtual QResult enableSingleWindowMode(bool enabled) = 0;
1303 virtual QResult setScreenOptimization(bool forMotion) = 0;
1316 virtual QResult setScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId) = 0;
1317
1318 // use beginConfiguration and commitConfiguration to batch multiple configuration
1319 // operations on a running capture engine into an atomic update
1331 virtual QResult beginConfiguration(bool resetConfig) = 0;
1341
1352 virtual QResult selectSharedDisplay(ScreenSourceID displayId) = 0;
1365 virtual QResult addSharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId) = 0;
1378 virtual QResult removeSharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId) = 0;
1391 virtual QResult addUnsharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId) = 0;
1404 virtual QResult removeUnsharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId) = 0;
1415 virtual QResult addTransparentWindow(ScreenSourceID sourceId) = 0;
1426 virtual QResult removeTransparentWindow(ScreenSourceID sourceId) = 0;
1437 virtual QResult addTranslucentWindow(ScreenSourceID sourceId) = 0;
1448 virtual QResult removeTranslucentWindow(ScreenSourceID sourceId) = 0;
1449
1459
1460protected:
1468};
1469
1478 bool enablePublish = true;
1485 int publishVolume = 100;
1487 bool enableLoopback = true;
1496 int cycle = 1;
1498 bool replaceMicrophone = false;
1499};
1500
1508{
1509public:
1529 virtual QResult createAudioMixingTask(int64_t taskId, const char * filename) = 0;
1530
1546 virtual QResult destroyAudioMixingTask(int64_t taskId) = 0;
1547
1567 virtual QResult start(int64_t taskId, const AudioMixingConfig &config) = 0;
1568
1586 virtual QResult update(int64_t taskId, const AudioMixingConfig &config) = 0;
1587
1603 virtual QResult stop(int64_t taskId) = 0;
1604
1620 virtual QResult resume(int64_t taskId) = 0;
1621
1637 virtual QResult pause(int64_t taskId) = 0;
1638
1658 virtual QResult getDuration(int64_t taskId, int64_t *durationMs) = 0;
1659
1677 virtual QResult getCurrentTimestamp(int64_t taskId, int64_t *timestampMs) = 0;
1678
1696 virtual QResult seek(int64_t taskId, int64_t timestampMs) = 0;
1697
1698protected:
1706};
1707
1715{
1716public:
1718 {
1719 public:
1728 virtual void onNetworkTestComplete(NetworkQuality quality) {};
1729
1736 virtual ~Callback() = default;
1737 };
1738
1739
1763 virtual QResult startNetworkTest(const char *token, Callback *callback) = 0;
1778
1779protected:
1786 virtual ~NetworkManager() {}
1787};
1788
1789PANORTC_NS_END
MediaType
媒体类型
Definition: PanoRtcDefs.h:154
const int kMaxDeviceIDLength
设备标识长度的最大值
Definition: PanoRtcDefs.h:39
const int kMaxVideoPlaneCount
视频数据的最大平面数
Definition: PanoRtcDefs.h:41
QResult
返回值
Definition: PanoRtcDefs.h:54
const int kMaxDeviceNameLength
设备名字长度的最大值
Definition: PanoRtcDefs.h:37
AudioType
音频数据类型
Definition: PanoRtcDefs.h:131
VideoProfileType
视频能力类型
Definition: PanoRtcDefs.h:254
OptionType
选项
Definition: PanoRtcDefs.h:640
VideoRotation
视频旋转角度
Definition: PanoRtcDefs.h:237
ScreenSourceType
桌面采集源类型
Definition: PanoRtcDefs.h:582
MediaProcessorType
媒体处理类型
Definition: PanoRtcDefs.h:1178
VideoType
视频数据类型
Definition: PanoRtcDefs.h:142
VideoDevicePosition
视频采集设备位置
Definition: PanoRtcDefs.h:278
ScreenScalingRatio
屏幕渲染缩放设置
Definition: PanoRtcDevice.h:556
VideoScalingMode
视频渲染缩放模式
Definition: PanoRtcDevice.h:480
音频设备管理器
Definition: PanoRtcDevice.h:570
virtual QResult getPlayoutDevice(char deviceId[kMaxDeviceIDLength]) const =0
获取当前使用的音频播放设备
virtual QResult stopDeviceTest()=0
停止音频设备测试
virtual QResult setPlayoutDevice(const char deviceId[kMaxDeviceIDLength])=0
设置当前使用的音频播放设备
virtual QResult getRecordingLevel(int16_t &level) const =0
获取音频采集强度值
virtual QResult stopPlayoutDeviceTest()=0
停止扬声器设备测试
virtual RtcExternalAudioRecorder * getExternalRecorder()=0
获取外接音频录制设备
virtual QResult getRecordDeviceVolume(uint32_t *volume) const =0
获取音频采集音量
virtual bool isDefaultPlayoutDevice() const =0
检查当前使用的音频播放设备是否是系统默认设备
virtual QResult startAudioPlayback()=0
开始音频设备播放(建议配合外部采集播放时的一些特殊需求使用)
virtual QResult getPlayoutDeviceVolume(uint32_t *volume) const =0
获取音频播放音量
virtual QResult setRecordDeviceVolume(uint32_t volume)=0
设置音频采集音量
virtual QResult startDeviceTest(const char recordDeviceId[panortc::kMaxDeviceIDLength], const char playoutDeviceId[panortc::kMaxDeviceIDLength])=0
开始音频设备测试
virtual QResult setDefaultRecordDevice()=0
设置系统默认设备为当前使用的音频采集设备
virtual QResult stopAudioRecording()=0
关闭音频设备录音(建议配合外部采集播放时的一些特殊需求使用)
virtual QResult stopRecordDeviceTest()=0
停止录音设备测试
virtual QResult setLoudspeakerStatus(bool enable)=0
设置音频外放, 仅在移动设备上支持
virtual void enumerateRecordDevices(EnumDeviceCallback cb, void *context) const =0
枚举音频采集设备
virtual QResult stopAudioPlayback()=0
关闭音频设备播放(建议配合外部采集播放时的一些特殊需求使用)
virtual QResult getLoudspeakerStatus(bool *enabled) const =0
获取音频外放, 仅在移动设备上支持
virtual QResult startAudioRecording()=0
开始音频设备录音(建议配合外部采集播放时的一些特殊需求使用)
virtual QResult setPlayoutDeviceVolume(uint32_t volume)=0
设置音频播放音量
bool(*)(void *context, const char deviceName[kMaxDeviceNameLength], const char deviceId[kMaxDeviceIDLength]) EnumDeviceCallback
音频设备枚举回调
Definition: PanoRtcDevice.h:586
virtual QResult getPlayoutLevel(int16_t &level) const =0
获取音频播放强度值
virtual RtcExternalAudioPlayer * getExternalPlayer()=0
获取外接音频播放设备
virtual QResult setMicrophoneMuteStatus(bool muted)=0
设置麦克风采集数据静音状态(不包括伴音等其他声音)
virtual QResult setDefaultPlayoutDevice()=0
设置系统默认设备为当前使用的音频播放设备
virtual QResult getTestRecordingLevel(int16_t &level)=0
获取录制设备测试时的音频采集强度值
virtual QResult getRecordDevice(char deviceId[kMaxDeviceIDLength]) const =0
获取当前使用的音频采集设备
virtual ~AudioDeviceManager()
析构函数
Definition: PanoRtcDevice.h:967
virtual QResult setPlayoutDataMuteStatus(bool muted)=0
设置播放数据静音状态
virtual QResult startRecordDeviceTest(const char recordDeviceId[panortc::kMaxDeviceIDLength])=0
开始录音设备测试
virtual bool isDefaultRecordDevice() const =0
检查当前使用的音频采集设备是否是系统默认设备
virtual QResult startPlayoutDeviceTest(const char playoutDeviceId[panortc::kMaxDeviceIDLength], const char *filename)=0
开始扬声器设备测试
virtual void enumeratePlayoutDevices(EnumDeviceCallback cb, void *context) const =0
枚举音频播放设备
virtual QResult setRecordDevice(const char deviceId[kMaxDeviceIDLength])=0
设置当前使用的音频采集设备
virtual QResult getTestPlayoutLevel(int16_t &level)=0
获取播放设备测试时的音频播放强度值
音频混音管理器
Definition: PanoRtcDevice.h:1508
virtual ~AudioMixingManager()
析构函数
Definition: PanoRtcDevice.h:1705
virtual QResult getDuration(int64_t taskId, int64_t *durationMs)=0
获取音频文件的总时长。
virtual QResult stop(int64_t taskId)=0
结束混音任务。
virtual QResult createAudioMixingTask(int64_t taskId, const char *filename)=0
创建混音任务。
virtual QResult pause(int64_t taskId)=0
暂停混音任务。
virtual QResult getCurrentTimestamp(int64_t taskId, int64_t *timestampMs)=0
获取当前时间戳。
virtual QResult start(int64_t taskId, const AudioMixingConfig &config)=0
启动混音任务。
virtual QResult resume(int64_t taskId)=0
恢复被暂停的混音任务。
virtual QResult update(int64_t taskId, const AudioMixingConfig &config)=0
更新混音任务。
virtual QResult seek(int64_t taskId, int64_t timestampMs)=0
跳转至指定时间戳。
virtual QResult destroyAudioMixingTask(int64_t taskId)=0
销毁混音任务。
CameraController,相机控制器接口。
Definition: PanoRtcDevice.h:403
virtual QResult setCameraExposurePointInPreview(float x, float y)=0
设置手动曝光位置,该方法需要在相机启动预览后调用。
virtual bool isCameraFocusSupported()=0
检测设备是否支持手动对焦,该方法需要在相机启动预览后调用。
virtual QResult setCameraFocusPointInPreview(float x, float y)=0
设置手动对焦位置,该方法需要在相机启动预览后调用。
virtual bool isCameraExposureSupported()=0
检测设备是否支持设置曝光区域,该方法需要在相机启动预览后调用。
Definition: PanoRtcDevice.h:1718
virtual ~Callback()=default
virtual void onNetworkTestComplete(NetworkQuality quality)
回调网络检测的结果。
Definition: PanoRtcDevice.h:1728
网络管理器
Definition: PanoRtcDevice.h:1715
virtual QResult stopNetworkTest()=0
停止网络测试。
virtual ~NetworkManager()
析构函数
Definition: PanoRtcDevice.h:1786
virtual QResult startNetworkTest(const char *token, Callback *callback)=0
启动网络测试。
外接音频播放设备
Definition: PanoRtcDevice.h:316
virtual QResult setEnableStatus(bool enable, int32_t sampleRate, int32_t channels)=0
设置此外接音频播放设备的启用状态
virtual ~RtcExternalAudioPlayer()
析构函数
Definition: PanoRtcDevice.h:357
virtual QResult pullData(void *buffer, int length, const MediaFormat &format)=0
从 PANO 媒体引擎拉取音频播放数据
外接音频滤镜
Definition: PanoRtcDevice.h:366
virtual QResult onAudioFrame(void *buffer, int length, int maxBufferByteLens, AudioFormat &fmt)=0
接收到待处理音频帧。
virtual ~RtcExternalAudioProcessor()
析构函数
Definition: PanoRtcDevice.h:392
外接音频录制设备
Definition: PanoRtcDevice.h:266
virtual ~RtcExternalAudioRecorder()
析构函数
Definition: PanoRtcDevice.h:307
virtual QResult pushData(void *buffer, int length, const MediaFormat &format)=0
推送音频录制数据到 PANO 媒体引擎
virtual QResult setEnableStatus(bool enable, int32_t sampleRate, int32_t channels)=0
设置此外接音频录制设备的启用状态
外部共享源
Definition: PanoRtcDevice.h:174
virtual QResult setEnableStatus(bool enabled)=0
设置此外部共享源的启用状态
virtual QResult putData(void *buffer, int length, const MediaFormat &format)=0
输入共享数据到 PANO 媒体引擎
virtual ~RtcExternalScreenSource()
析构函数
Definition: PanoRtcDevice.h:211
外接视频采集设备
Definition: PanoRtcDevice.h:121
virtual QResult putData(void *buffer, int length, const MediaFormat &format)=0
输入视频数据到 PANO 媒体引擎
virtual ~RtcExternalVideoCapturer()
析构函数
Definition: PanoRtcDevice.h:165
virtual QResult getDeviceID(char deviceId[panortc::kMaxDeviceIDLength])=0
获取此外接视频采集设备 ID
virtual void destroy()=0
外接视频滤镜
Definition: PanoRtcDevice.h:220
virtual QResult onVideoFrame(void *buffer, int length, VideoFormat &fmt)=0
接收到待处理视频帧
virtual QResult onVideoFrame(void *native, VideoFormat &fmt)=0
接收到平台相关的视频帧数据,仅在iOS和Andorid平台使用, 请参考相关平台的说明
virtual ~RtcExternalVideoProcessor()
析构函数
Definition: PanoRtcDevice.h:256
渲染器的数据接收槽
Definition: PanoRtcDevice.h:76
virtual ~RtcRenderSink()
析构函数
Definition: PanoRtcDevice.h:112
virtual QResult onRenderData(void *native, MediaFormat &fmt)=0
virtual QResult onRenderData(void *buffer, int length, MediaFormat &fmt)=0
屏幕采集源管理
Definition: PanoRtcDevice.h:1202
virtual void enumerateApplications(EnumSourceCallback cb, void *context)=0
枚举应用
virtual void enumerateDisplays(EnumSourceCallback cb, void *context)=0
枚举显示屏幕
virtual QResult setScreenOptimization(bool forMotion)=0
设置屏幕采集方式
virtual void enumerateWindows(EnumSourceCallback cb, void *context)=0
枚举窗口
virtual QResult enableFilterSelfApp(bool enabled)=0
设置是否过滤自己进程
virtual QResult addTransparentWindow(ScreenSourceID sourceId)=0
添加透明窗口
virtual QResult removeUnsharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId)=0
移除不被共享的屏幕源,必须在 beginConfiguration 之后调用
virtual QResult addTranslucentWindow(ScreenSourceID sourceId)=0
添加半透明窗口
virtual RtcExternalScreenSource * getExternalSource()=0
获取外部共享源接口,应用可通过此接口发送共享数据
virtual QResult addSharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId)=0
添加屏幕采集源,必须在 beginConfiguration 之后调用
virtual QResult commitConfiguration()=0
提交一组配置更改
virtual ~ScreenSourceManager()
Definition: PanoRtcDevice.h:1467
virtual QResult selectSharedDisplay(ScreenSourceID displayId)=0
选择需要共享的显示器,必须在 beginConfiguration 之后调用
virtual QResult enableFilterWindows(bool enabled)=0
设置是否启用窗口过滤功能
virtual QResult beginConfiguration(bool resetConfig)=0
开始配置更改,接下来的配置改变在调用commitConfiguration之前不会立即生效
virtual QResult removeTranslucentWindow(ScreenSourceID sourceId)=0
移除半透明窗口
bool(*)(void *context, ScreenSourceID ssid, const char *name) EnumSourceCallback
视频频设备枚举回调
Definition: PanoRtcDevice.h:1218
virtual QResult addUnsharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId)=0
添加不被共享的屏幕源,必须在 beginConfiguration 之后调用
virtual QResult removeTransparentWindow(ScreenSourceID sourceId)=0
移除透明窗口
virtual QResult setScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId)=0
设置屏幕采集源
virtual QResult enableSingleWindowMode(bool enabled)=0
设置是否启用单窗口共享模式
virtual QResult removeSharedScreenSource(ScreenSourceType sourceType, ScreenSourceID sourceId)=0
移除指定的屏幕采集源,必须在 beginConfiguration 之后调用
视频设备管理器
Definition: PanoRtcDevice.h:978
virtual QResult setDevice(const char deviceId[kMaxDeviceIDLength])=0
设置当前使用的视频采集设备
virtual QResult switchDevice()=0
切换前后置摄像头, 仅支持移动设备, 默认为前置摄像头
virtual QResult startPreview(const char deviceId[kMaxDeviceIDLength], void *window, const VideoConfig &config)=0
开始预览自己的视频
virtual void enumerateCaptureDevices(EnumDeviceCallback cb, void *context) const =0
枚举视频采集设备
virtual QResult getDevicePosition(VideoDevicePosition &position) const =0
获取当前摄像头位置,仅支持移动设备
bool(*)(void *context, const char deviceName[kMaxDeviceNameLength], const char deviceId[kMaxDeviceIDLength]) EnumDeviceCallback
视频频设备枚举回调
Definition: PanoRtcDevice.h:994
virtual QResult getDevice(char deviceId[kMaxDeviceIDLength]) const =0
获取当前使用的视频采集设备
virtual QResult stopPreview(const char deviceId[kMaxDeviceIDLength])=0
终止预览自己的视频
virtual RtcExternalVideoCapturer * createExternalCapturer()=0
创建一个外接视频采集设备
virtual QResult setDeviceBoundMediaProcessor(const char deviceId[kMaxDeviceIDLength], MediaProcessorType type, void *processor, void *param=nullptr)=0
向指定的设备设置媒体处理模块。
virtual VideoDevicePosition getDevicePosition(const char deviceId[kMaxDeviceIDLength]) const =0
获取视频设备位置,仅支持移动设备
virtual ~VideoDeviceManager()
析构函数
Definition: PanoRtcDevice.h:1192
virtual QResult setDeviceBoundOption(const char deviceId[kMaxDeviceIDLength], OptionType option, void *param, uint32_t size)=0
向指定的设备设置可选项
virtual QResult startPreview(const char deviceId[kMaxDeviceIDLength], RtcRenderSink *sink, VideoProfileType profileType)=0
开始预览自己的视频
virtual CameraController * getCameraController(const char deviceId[kMaxDeviceIDLength])=0
获取相机控制器的接口指针
音频采样数据格式
Definition: PanoRtcDevice.h:15
uint32_t bytesPerSample
Definition: PanoRtcDevice.h:23
AudioType type
Definition: PanoRtcDevice.h:17
uint32_t channels
Definition: PanoRtcDevice.h:19
uint32_t sampleRate
Definition: PanoRtcDevice.h:21
音频混音设置
Definition: PanoRtcDevice.h:1476
int cycle
Definition: PanoRtcDevice.h:1496
bool replaceMicrophone
Definition: PanoRtcDevice.h:1498
int publishVolume
Definition: PanoRtcDevice.h:1485
bool enableLoopback
Definition: PanoRtcDevice.h:1487
int loopbackVolume
Definition: PanoRtcDevice.h:1494
bool enablePublish
Definition: PanoRtcDevice.h:1478
多媒体数据格式
Definition: PanoRtcDevice.h:57
MediaType mediaType
Definition: PanoRtcDevice.h:59
AudioFormat audioFmt
Definition: PanoRtcDevice.h:62
VideoFormat videoFmt
Definition: PanoRtcDevice.h:64
uint64_t timestamp
Definition: PanoRtcDevice.h:67
网络质量报告
Definition: PanoRtcDefs.h:1162
屏幕共享设置
Definition: PanoRtcDevice.h:543
VideoProfileType profileType
Definition: PanoRtcDevice.h:545
int frameRate
Definition: PanoRtcDevice.h:547
视频设置
Definition: PanoRtcDevice.h:496
bool enableSourceMirror
Definition: PanoRtcDevice.h:500
bool enableMirror
Definition: PanoRtcDevice.h:504
VideoScalingMode scalingMode
Definition: PanoRtcDevice.h:502
VideoProfileType profileType
Definition: PanoRtcDevice.h:498
视频帧格式
Definition: PanoRtcDevice.h:32
VideoType type
Definition: PanoRtcDevice.h:34
uint32_t count
Definition: PanoRtcDevice.h:40
uint32_t offset[kMaxVideoPlaneCount]
Definition: PanoRtcDevice.h:42
VideoRotation rotation
Definition: PanoRtcDevice.h:46
uint32_t width
Definition: PanoRtcDevice.h:36
uint32_t stride[kMaxVideoPlaneCount]
Definition: PanoRtcDevice.h:44
uint32_t height
Definition: PanoRtcDevice.h:38
bool mirror
Definition: PanoRtcDevice.h:48
视频渲染设置
Definition: PanoRtcDevice.h:528
VideoScalingMode scalingMode
Definition: PanoRtcDevice.h:530
bool enableMirror
Definition: PanoRtcDevice.h:532
视频源设置
Definition: PanoRtcDevice.h:514
bool sourceMirror
Definition: PanoRtcDevice.h:518
VideoProfileType profileType
Definition: PanoRtcDevice.h:516