-
- public class ChannelMediaOptions {
- public Boolean publishCameraTrack;
- public Boolean publishSecondaryCameraTrack;
- public Boolean publishThirdCameraTrack;
- public Boolean publishFourthCameraTrack;
- public Boolean publishMicrophoneTrack;
- public Boolean publishScreenCaptureVideo;
- public Boolean publishScreenCaptureAudio;
- public Boolean publishCustomAudioTrack;
- public Integer publishCustomAudioTrackId;
- public Boolean publishCustomVideoTrack;
- public Boolean publishEncodedVideoTrack;
- public Boolean publishMediaPlayerAudioTrack;
- public Boolean publishMediaPlayerVideoTrack;
- public Boolean publishTranscodedVideoTrack;
- public Boolean publishMixedAudioTrack;
- public Boolean autoSubscribeAudio;
- public Boolean autoSubscribeVideo;
- public Boolean enableAudioRecordingOrPlayout;
- public Integer publishMediaPlayerId;
- public Integer clientRoleType;
- public Integer audienceLatencyLevel;
- public Integer defaultVideoStreamType;
- public Integer channelProfile;
- public Integer mediaPlayerAudioDelayMs;
- public String token;
- public Boolean enableBuiltInMediaEncryption;
- public Boolean publishRhythmPlayerTrack;
- public Boolean isInteractiveAudience;
- public Integer customVideoTrackId;
- public Boolean isAudioFilterable;
- }
- export class ChannelMediaOptions {
-
- public publishCameraTrack?:boolean;
-
- public publishSecondaryCameraTrack?:boolean;
-
- public publishMicrophoneTrack?:boolean;
-
- public publishScreenCaptureVideo?:boolean;
-
- public publishScreenCaptureAudio?:boolean;
-
- public publishCustomAudioTrack?:boolean;
-
- public publishCustomAudioTrackId?:number;
-
- public publishCustomVideoTrack?:boolean;
-
- public publishEncodedVideoTrack?:boolean;
-
- public publishMediaPlayerAudioTrack?:boolean;
-
- public publishMediaPlayerVideoTrack?:boolean;
-
- public publishTranscodedVideoTrack?:boolean;
-
- public publishMixedAudioTrack?:boolean;
-
- public autoSubscribeAudio?:boolean;
-
- public autoSubscribeVideo?:boolean;
-
- public enableAudioRecordingOrPlayout?:boolean;
-
- public publishMediaPlayerId?:number;
-
- public clientRoleType?:number;
-
- public audienceLatencyLevel?:number;
-
- public defaultVideoStreamType?:number;
-
- public channelProfile?:number;
-
- public audioDelayMs?:number;
-
- public mediaPlayerAudioDelayMs?:number;
-
- public token?:string;
-
- public enableBuiltInMediaEncryption?:boolean;
-
- public publishRhythmPlayerTrack?:boolean;
-
- public isInteractiveAudience?:boolean;
-
- public customVideoTrackId?:number;
-
- public isAudioFilterable?:boolean;
-
- public startPreview?:boolean;
- public constructor() {
- }
-}
- __attribute__((visibility("default"))) @interface AgoraRtcChannelMediaOptions : NSObject
-@property(assign, nonatomic) BOOL publishCameraTrack;
-@property(assign, nonatomic) BOOL publishSecondaryCameraTrack;
-@property(assign, nonatomic) BOOL publishMicrophoneTrack;
-#if TARGET_OS_IPHONE
-@property(assign, nonatomic) BOOL publishScreenCaptureVideo;
-@property(assign, nonatomic) BOOL publishScreenCaptureAudio;
-#elif TARGET_OS_MAC
-@property(assign, nonatomic) BOOL publishThirdCameraTrack;
-@property(assign, nonatomic) BOOL publishFourthCameraTrack;
-@property(assign, nonatomic) BOOL publishScreenTrack;
-@property(assign, nonatomic) BOOL publishSecondaryScreenTrack;
-@property(assign, nonatomic) BOOL publishThirdScreenTrack;
-@property(assign, nonatomic) BOOL publishFourthScreenTrack;
-#endif
-@property(assign, nonatomic) BOOL publishCustomAudioTrack;
-@property(assign, nonatomic) NSInteger publishCustomAudioTrackId;
-
-@property(assign, nonatomic) BOOL publishCustomVideoTrack;
-@property(assign, nonatomic) BOOL publishEncodedVideoTrack;
-@property(assign, nonatomic) BOOL publishMediaPlayerAudioTrack;
-@property(assign, nonatomic) BOOL publishMediaPlayerVideoTrack;
-@property(assign, nonatomic) BOOL publishTranscodedVideoTrack;
-@property(assign, nonatomic) BOOL publishMixedAudioTrack;
-@property(assign, nonatomic) BOOL autoSubscribeAudio;
-@property(assign, nonatomic) BOOL autoSubscribeVideo;
-@property(assign, nonatomic) BOOL enableAudioRecordingOrPlayout;
-@property(assign, nonatomic) NSInteger publishMediaPlayerId;
-@property(assign, nonatomic) AgoraClientRole clientRoleType;
-@property(assign, nonatomic) AgoraAudienceLatencyLevelType audienceLatencyLevel;
-@property(assign, nonatomic) AgoraVideoStreamType defaultVideoStreamType;
-@property(assign, nonatomic) AgoraChannelProfile channelProfile;
-@property(copy, nonatomic) NSString * _Nullable token;
-@property(assign, nonatomic) BOOL enableBuiltInMediaEncryption;
-
-@property(assign, nonatomic) BOOL publishRhythmPlayerTrack;
-@property(assign, nonatomic) BOOL isInteractiveAudience;
-
-@property(assign, nonatomic) NSInteger customVideoTrackId;
-
-@property(assign, nonatomic) BOOL isAudioFilterable;
-
-@end
- struct ChannelMediaOptions {
- Optional<bool> publishCameraTrack;
- Optional<bool> publishSecondaryCameraTrack;
- Optional<bool> publishThirdCameraTrack;
- Optional<bool> publishFourthCameraTrack;
- Optional<bool> publishMicrophoneTrack;
-
- #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- Optional<bool> publishScreenCaptureVideo;
- Optional<bool> publishScreenCaptureAudio;
- #else
- Optional<bool> publishScreenTrack;
- Optional<bool> publishSecondaryScreenTrack;
- Optional<bool> publishThirdScreenTrack;
- Optional<bool> publishFourthScreenTrack;
- #endif
-
- Optional<bool> publishCustomAudioTrack;
- Optional<int> publishCustomAudioTrackId;
- Optional<bool> publishCustomVideoTrack;
- Optional<bool> publishEncodedVideoTrack;
- Optional<bool> publishMediaPlayerAudioTrack;
- Optional<bool> publishMediaPlayerVideoTrack;
- Optional<bool> publishTranscodedVideoTrack;
- Optional<bool> publishMixedAudioTrack;
- Optional<bool> autoSubscribeAudio;
- Optional<bool> autoSubscribeVideo;
- Optional<bool> enableAudioRecordingOrPlayout;
- Optional<int> publishMediaPlayerId;
- Optional<CLIENT_ROLE_TYPE> clientRoleType;
- Optional<AUDIENCE_LATENCY_LEVEL_TYPE> audienceLatencyLevel;
- Optional<VIDEO_STREAM_TYPE> defaultVideoStreamType;
- Optional<CHANNEL_PROFILE_TYPE> channelProfile;
- Optional<const char*> token;
- Optional<bool> enableBuiltInMediaEncryption;
- Optional<bool> publishRhythmPlayerTrack;
- Optional<bool> isInteractiveAudience;
-
- Optional<video_track_id_t> customVideoTrackId;
-
- Optional<bool> isAudioFilterable;
-
- ChannelMediaOptions() {}
- ~ChannelMediaOptions() {}
- }
- USTRUCT(BlueprintType)
-struct FChannelMediaOptions
-{
- GENERATED_BODY()
-public:
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishSecondaryCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishThirdCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishFourthCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMicrophoneTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenCaptureVideo = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenCaptureAudio = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishSecondaryScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishThirdScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishFourthScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCustomAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool publishCustomAudioTrackId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int publishCustomAudioTrackId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCustomVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishEncodedVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMediaPlayerAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMediaPlayerVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishTranscodedVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMixedAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishLipSyncTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional autoSubscribeAudio = EAgoraOptional::AGORA_TRUE_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional autoSubscribeVideo = EAgoraOptional::AGORA_TRUE_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional enableAudioRecordingOrPlayout = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool publishMediaPlayerId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int publishMediaPlayerId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool clientRoleType_SetValue = true;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- ECLIENT_ROLE_TYPE clientRoleType = ECLIENT_ROLE_TYPE::CLIENT_ROLE_BROADCASTER;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool audienceLatencyLevel_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAUDIENCE_LATENCY_LEVEL_TYPE audienceLatencyLevel = EAUDIENCE_LATENCY_LEVEL_TYPE::AUDIENCE_LATENCY_LEVEL_LOW_LATENCY;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool defaultVideoStreamType_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EVIDEO_STREAM_TYPE defaultVideoStreamType = EVIDEO_STREAM_TYPE::VIDEO_STREAM_HIGH;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool channelProfile_SetValue = true;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- ECHANNEL_PROFILE_TYPE channelProfile = ECHANNEL_PROFILE_TYPE::CHANNEL_PROFILE_LIVE_BROADCASTING;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool audioDelayMs_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int audioDelayMs = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool mediaPlayerAudioDelayMs_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int mediaPlayerAudioDelayMs = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool token_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- FString token = "";
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional enableBuiltInMediaEncryption = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishRhythmPlayerTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional isInteractiveAudience = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool customVideoTrackId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int64 customVideoTrackId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional isAudioFilterable = EAgoraOptional::AGORA_NULL_VALUE;
-
- FChannelMediaOptions(){}
- FChannelMediaOptions(const agora::rtc::ChannelMediaOptions & AgoraData){
-
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCameraTrack, AgoraData.publishCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishSecondaryCameraTrack, AgoraData.publishSecondaryCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishThirdCameraTrack, AgoraData.publishThirdCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishFourthCameraTrack, AgoraData.publishFourthCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMicrophoneTrack, AgoraData.publishMicrophoneTrack)
-#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenCaptureVideo, AgoraData.publishScreenCaptureVideo)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenCaptureAudio, AgoraData.publishScreenCaptureAudio)
-#else
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenTrack, AgoraData.publishScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishSecondaryScreenTrack, AgoraData.publishSecondaryScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishThirdScreenTrack, AgoraData.publishThirdScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishFourthScreenTrack, AgoraData.publishFourthScreenTrack)
-#endif
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCustomAudioTrack, AgoraData.publishCustomAudioTrack)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->publishCustomAudioTrackId, AgoraData.publishCustomAudioTrackId)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCustomVideoTrack, AgoraData.publishCustomVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishEncodedVideoTrack, AgoraData.publishEncodedVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMediaPlayerAudioTrack, AgoraData.publishMediaPlayerAudioTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMediaPlayerVideoTrack, AgoraData.publishMediaPlayerVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishTranscodedVideoTrack, AgoraData.publishTranscodedVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMixedAudioTrack, AgoraData.publishMixedAudioTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishLipSyncTrack, AgoraData.publishLipSyncTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->autoSubscribeAudio, AgoraData.autoSubscribeAudio)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->autoSubscribeVideo, AgoraData.autoSubscribeVideo)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->enableAudioRecordingOrPlayout, AgoraData.enableAudioRecordingOrPlayout)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->publishMediaPlayerId, AgoraData.publishMediaPlayerId)
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->clientRoleType,AgoraData.clientRoleType,static_cast<ECLIENT_ROLE_TYPE>(AgoraData.clientRoleType.value()))
-
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->audienceLatencyLevel, AgoraData.audienceLatencyLevel, static_cast<EAUDIENCE_LATENCY_LEVEL_TYPE>(AgoraData.audienceLatencyLevel.value()))
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->defaultVideoStreamType, AgoraData.defaultVideoStreamType, static_cast<EVIDEO_STREAM_TYPE>(AgoraData.defaultVideoStreamType.value()))
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->channelProfile, AgoraData.channelProfile, static_cast<ECHANNEL_PROFILE_TYPE>(AgoraData.channelProfile.value()))
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->audioDelayMs, AgoraData.audioDelayMs)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->mediaPlayerAudioDelayMs, AgoraData.mediaPlayerAudioDelayMs)
-
- SET_UEBP_OPTIONAL_VAL_FString(this->token,AgoraData.token)
-
- SET_UEBP_OPTIONAL_VAL_BOOL(this->enableBuiltInMediaEncryption, AgoraData.enableBuiltInMediaEncryption)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishRhythmPlayerTrack, AgoraData.publishRhythmPlayerTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->isInteractiveAudience, AgoraData.isInteractiveAudience)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->customVideoTrackId, AgoraData.customVideoTrackId)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->isAudioFilterable, AgoraData.isAudioFilterable)
- }
- agora::rtc::ChannelMediaOptions CreateAgoraData() const{
- agora::rtc::ChannelMediaOptions AgoraData;
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCameraTrack, this->publishCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishSecondaryCameraTrack, this->publishSecondaryCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishThirdCameraTrack, this->publishThirdCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishFourthCameraTrack, this->publishFourthCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMicrophoneTrack, this->publishMicrophoneTrack)
-#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenCaptureVideo, this->publishScreenCaptureVideo)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenCaptureAudio, this->publishScreenCaptureAudio)
-#else
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenTrack, this->publishScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishSecondaryScreenTrack, this->publishSecondaryScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishThirdScreenTrack, this->publishThirdScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishFourthScreenTrack, this->publishFourthScreenTrack)
-#endif
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCustomAudioTrack, this->publishCustomAudioTrack)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.publishCustomAudioTrackId, this->publishCustomAudioTrackId)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCustomVideoTrack, this->publishCustomVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishEncodedVideoTrack, this->publishEncodedVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMediaPlayerAudioTrack, this->publishMediaPlayerAudioTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMediaPlayerVideoTrack, this->publishMediaPlayerVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishTranscodedVideoTrack, this->publishTranscodedVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMixedAudioTrack, this->publishMixedAudioTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishLipSyncTrack, this->publishLipSyncTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.autoSubscribeAudio, this->autoSubscribeAudio)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.autoSubscribeVideo, this->autoSubscribeVideo)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.enableAudioRecordingOrPlayout, this->enableAudioRecordingOrPlayout)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.publishMediaPlayerId, this->publishMediaPlayerId)
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.clientRoleType, this->clientRoleType,static_cast<agora::rtc::CLIENT_ROLE_TYPE>(this->clientRoleType))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.audienceLatencyLevel, this->audienceLatencyLevel, static_cast<agora::rtc::AUDIENCE_LATENCY_LEVEL_TYPE>(this->audienceLatencyLevel))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.defaultVideoStreamType, this->defaultVideoStreamType, static_cast<agora::rtc::VIDEO_STREAM_TYPE>(this->defaultVideoStreamType))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.channelProfile, this->channelProfile, static_cast<agora::CHANNEL_PROFILE_TYPE>(this->channelProfile))
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.audioDelayMs, this->audioDelayMs)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.mediaPlayerAudioDelayMs, this->mediaPlayerAudioDelayMs)
- SET_AGORA_OPTIONAL_VAL_CHARPTR______MEMOALLOC(AgoraData.token, this->token)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.enableBuiltInMediaEncryption, this->enableBuiltInMediaEncryption)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishRhythmPlayerTrack, this->publishRhythmPlayerTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.isInteractiveAudience, this->isInteractiveAudience)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.customVideoTrackId, this->customVideoTrackId)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.isAudioFilterable, this->isAudioFilterable)
- return AgoraData;
- }
- void FreeAgoraData(agora::rtc::ChannelMediaOptions& AgoraData) const {
- SET_AGORA_OPTIONAL_VAL_CHARPTR______MEMOFREE(AgoraData.token)
- }
-};
- export class ChannelMediaOptions {
-
- publishCameraTrack?: boolean;
-
- publishSecondaryCameraTrack?: boolean;
-
- publishThirdCameraTrack?: boolean;
-
- publishFourthCameraTrack?: boolean;
-
- publishMicrophoneTrack?: boolean;
-
- publishScreenTrack?: boolean;
-
- publishSecondaryScreenTrack?: boolean;
-
- publishThirdScreenTrack?: boolean;
-
- publishFourthScreenTrack?: boolean;
-
- publishCustomAudioTrack?: boolean;
-
- publishCustomAudioTrackId?: number;
-
- publishCustomVideoTrack?: boolean;
-
- publishEncodedVideoTrack?: boolean;
-
- publishMediaPlayerAudioTrack?: boolean;
-
- publishMediaPlayerVideoTrack?: boolean;
-
- publishTranscodedVideoTrack?: boolean;
-
- publishLipSyncTrack?: boolean;
-
- autoSubscribeAudio?: boolean;
-
- autoSubscribeVideo?: boolean;
-
- enableAudioRecordingOrPlayout?: boolean;
-
- publishMediaPlayerId?: number;
-
- clientRoleType?: ClientRoleType;
-
- audienceLatencyLevel?: AudienceLatencyLevelType;
-
- defaultVideoStreamType?: VideoStreamType;
-
- channelProfile?: ChannelProfileType;
-
- token?: string;
-
- enableBuiltInMediaEncryption?: boolean;
-
- publishRhythmPlayerTrack?: boolean;
-
- isInteractiveAudience?: boolean;
-
- customVideoTrackId?: number;
-
- isAudioFilterable?: boolean;
-}
- public class ChannelMediaOptions : OptionalJsonParse
- {
- public Optional<bool> publishCameraTrack = new Optional<bool>();
- public Optional<bool> publishSecondaryCameraTrack = new Optional<bool>();
- public Optional<bool> publishThirdCameraTrack = new Optional<bool>();
- public Optional<bool> publishFourthCameraTrack = new Optional<bool>();
- public Optional<bool> publishMicrophoneTrack = new Optional<bool>();
- public Optional<bool> publishScreenCaptureVideo = new Optional<bool>();
- public Optional<bool> publishScreenCaptureAudio = new Optional<bool>();
- public Optional<bool> publishScreenTrack = new Optional<bool>();
- public Optional<bool> publishSecondaryScreenTrack = new Optional<bool>();
- public Optional<bool> publishThirdScreenTrack = new Optional<bool>();
- public Optional<bool> publishFourthScreenTrack = new Optional<bool>();
- public Optional<bool> publishCustomAudioTrack = new Optional<bool>();
- public Optional<int> publishCustomAudioTrackId = new Optional<int>();
- public Optional<bool> publishCustomVideoTrack = new Optional<bool>();
- public Optional<bool> publishEncodedVideoTrack = new Optional<bool>();
- public Optional<bool> publishMediaPlayerAudioTrack = new Optional<bool>();
- public Optional<bool> publishMediaPlayerVideoTrack = new Optional<bool>();
- public Optional<bool> publishTranscodedVideoTrack = new Optional<bool>();
- public Optional<bool> publishLipSyncTrack = new Optional<bool>();
- public Optional<bool> autoSubscribeAudio = new Optional<bool>();
- public Optional<bool> autoSubscribeVideo = new Optional<bool>();
- public Optional<bool> enableAudioRecordingOrPlayout = new Optional<bool>();
- public Optional<int> publishMediaPlayerId = new Optional<int>();
- public Optional<CLIENT_ROLE_TYPE> clientRoleType = new Optional<CLIENT_ROLE_TYPE>();
- public Optional<AUDIENCE_LATENCY_LEVEL_TYPE> audienceLatencyLevel = new Optional<AUDIENCE_LATENCY_LEVEL_TYPE>();
- public Optional<VIDEO_STREAM_TYPE> defaultVideoStreamType = new Optional<VIDEO_STREAM_TYPE>();
- public Optional<CHANNEL_PROFILE_TYPE> channelProfile = new Optional<CHANNEL_PROFILE_TYPE>();
- public Optional<string> token = new Optional<string>();
- public Optional<bool> publishRhythmPlayerTrack = new Optional<bool>();
- public Optional<bool> isInteractiveAudience = new Optional<bool>();
- public Optional<video_track_id_t> customVideoTrackId = new Optional<video_track_id_t>();
- public Optional<bool> isAudioFilterable = new Optional<bool>();
-
- }
- export class ChannelMediaOptions {
-
- publishCameraTrack?: boolean;
-
- publishSecondaryCameraTrack?: boolean;
-
- publishThirdCameraTrack?: boolean;
-
- publishFourthCameraTrack?: boolean;
-
- publishMicrophoneTrack?: boolean;
-
- publishScreenCaptureVideo?: boolean;
-
- publishScreenCaptureAudio?: boolean;
-
- publishSecondaryScreenTrack?: boolean;
-
- publishThirdScreenTrack?: boolean;
-
- publishFourthScreenTrack?: boolean;
-
- publishCustomAudioTrack?: boolean;
-
- publishCustomAudioTrackId?: number;
-
- publishCustomVideoTrack?: boolean;
-
- publishEncodedVideoTrack?: boolean;
-
- publishMediaPlayerAudioTrack?: boolean;
-
- publishMediaPlayerVideoTrack?: boolean;
-
- publishTranscodedVideoTrack?: boolean;
-
- publishLipSyncTrack?: boolean;
-
- autoSubscribeAudio?: boolean;
-
- autoSubscribeVideo?: boolean;
-
- enableAudioRecordingOrPlayout?: boolean;
-
- publishMediaPlayerId?: number;
-
- clientRoleType?: ClientRoleType;
-
- audienceLatencyLevel?: AudienceLatencyLevelType;
-
- defaultVideoStreamType?: VideoStreamType;
-
- channelProfile?: ChannelProfileType;
-
- token?: string;
-
- enableBuiltInMediaEncryption?: boolean;
-
- publishRhythmPlayerTrack?: boolean;
-
- isInteractiveAudience?: boolean;
-
- customVideoTrackId?: number;
-
- isAudioFilterable?: boolean;
-}
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
-class ChannelMediaOptions {
- const ChannelMediaOptions(
- {this.publishCameraTrack,
- this.publishSecondaryCameraTrack,
- this.publishThirdCameraTrack,
- this.publishFourthCameraTrack,
- this.publishMicrophoneTrack,
- this.publishScreenCaptureVideo,
- this.publishScreenCaptureAudio,
- this.publishScreenTrack,
- this.publishSecondaryScreenTrack,
- this.publishThirdScreenTrack,
- this.publishFourthScreenTrack,
- this.publishCustomAudioTrack,
- this.publishCustomAudioTrackId,
- this.publishCustomVideoTrack,
- this.publishEncodedVideoTrack,
- this.publishMediaPlayerAudioTrack,
- this.publishMediaPlayerVideoTrack,
- this.publishTranscodedVideoTrack,
- this.publishMixedAudioTrack,
- this.publishLipSyncTrack,
- this.autoSubscribeAudio,
- this.autoSubscribeVideo,
- this.enableAudioRecordingOrPlayout,
- this.publishMediaPlayerId,
- this.clientRoleType,
- this.audienceLatencyLevel,
- this.defaultVideoStreamType,
- this.channelProfile,
- this.audioDelayMs,
- this.mediaPlayerAudioDelayMs,
- this.token,
- this.enableBuiltInMediaEncryption,
- this.publishRhythmPlayerTrack,
- this.isInteractiveAudience,
- this.customVideoTrackId,
- this.isAudioFilterable,
- this.parameters});
-
- @JsonKey(name: 'publishCameraTrack')
- final bool? publishCameraTrack;
-
- @JsonKey(name: 'publishSecondaryCameraTrack')
- final bool? publishSecondaryCameraTrack;
-
- @JsonKey(name: 'publishThirdCameraTrack')
- final bool? publishThirdCameraTrack;
-
- @JsonKey(name: 'publishFourthCameraTrack')
- final bool? publishFourthCameraTrack;
-
- @JsonKey(name: 'publishMicrophoneTrack')
- final bool? publishMicrophoneTrack;
-
- @JsonKey(name: 'publishScreenCaptureVideo')
- final bool? publishScreenCaptureVideo;
-
- @JsonKey(name: 'publishScreenCaptureAudio')
- final bool? publishScreenCaptureAudio;
-
- @JsonKey(name: 'publishScreenTrack')
- final bool? publishScreenTrack;
-
- @JsonKey(name: 'publishSecondaryScreenTrack')
- final bool? publishSecondaryScreenTrack;
-
- @JsonKey(name: 'publishThirdScreenTrack')
- final bool? publishThirdScreenTrack;
-
- @JsonKey(name: 'publishFourthScreenTrack')
- final bool? publishFourthScreenTrack;
-
- @JsonKey(name: 'publishCustomAudioTrack')
- final bool? publishCustomAudioTrack;
-
- @JsonKey(name: 'publishCustomAudioTrackId')
- final int? publishCustomAudioTrackId;
-
- @JsonKey(name: 'publishCustomVideoTrack')
- final bool? publishCustomVideoTrack;
-
- @JsonKey(name: 'publishEncodedVideoTrack')
- final bool? publishEncodedVideoTrack;
-
- @JsonKey(name: 'publishMediaPlayerAudioTrack')
- final bool? publishMediaPlayerAudioTrack;
-
- @JsonKey(name: 'publishMediaPlayerVideoTrack')
- final bool? publishMediaPlayerVideoTrack;
-
- @JsonKey(name: 'publishTranscodedVideoTrack')
- final bool? publishTranscodedVideoTrack;
-
- @JsonKey(name: 'publishMixedAudioTrack')
- final bool? publishMixedAudioTrack;
-
- @JsonKey(name: 'autoSubscribeAudio')
- final bool? autoSubscribeAudio;
-
- @JsonKey(name: 'autoSubscribeVideo')
- final bool? autoSubscribeVideo;
-
- @JsonKey(name: 'enableAudioRecordingOrPlayout')
- final bool? enableAudioRecordingOrPlayout;
-
- @JsonKey(name: 'publishMediaPlayerId')
- final int? publishMediaPlayerId;
-
- @JsonKey(name: 'clientRoleType')
- final ClientRoleType? clientRoleType;
-
- @JsonKey(name: 'audienceLatencyLevel')
- final AudienceLatencyLevelType? audienceLatencyLevel;
-
- @JsonKey(name: 'defaultVideoStreamType')
- final VideoStreamType? defaultVideoStreamType;
-
- @JsonKey(name: 'channelProfile')
- final ChannelProfileType? channelProfile;
-
- @JsonKey(name: 'audioDelayMs')
- final int? audioDelayMs;
-
- @JsonKey(name: 'mediaPlayerAudioDelayMs')
- final int? mediaPlayerAudioDelayMs;
-
- @JsonKey(name: 'token')
- final String? token;
-
- @JsonKey(name: 'enableBuiltInMediaEncryption')
- final bool? enableBuiltInMediaEncryption;
-
- @JsonKey(name: 'publishRhythmPlayerTrack')
- final bool? publishRhythmPlayerTrack;
-
- @JsonKey(name: 'isInteractiveAudience')
- final bool? isInteractiveAudience;
-
- @JsonKey(name: 'customVideoTrackId')
- final int? customVideoTrackId;
-
- @JsonKey(name: 'isAudioFilterable')
- final bool? isAudioFilterable;
-
- @JsonKey(name: 'parameters')
- final String? parameters;
-
- factory ChannelMediaOptions.fromJson(Map<String, dynamic> json) =>
- _$ChannelMediaOptionsFromJson(json);
-
- Map<String, dynamic> toJson() => _$ChannelMediaOptionsToJson(this);
-}
-
-
- public class ChannelMediaOptions {
- public Boolean publishCameraTrack;
- public Boolean publishSecondaryCameraTrack;
- public Boolean publishThirdCameraTrack;
- public Boolean publishFourthCameraTrack;
- public Boolean publishMicrophoneTrack;
- public Boolean publishScreenCaptureVideo;
- public Boolean publishScreenCaptureAudio;
- public Boolean publishCustomAudioTrack;
- public Integer publishCustomAudioTrackId;
- public Boolean publishCustomVideoTrack;
- public Boolean publishEncodedVideoTrack;
- public Boolean publishMediaPlayerAudioTrack;
- public Boolean publishMediaPlayerVideoTrack;
- public Boolean publishTranscodedVideoTrack;
- public Boolean publishMixedAudioTrack;
- public Boolean publishLipSyncTrack;
- public Boolean autoSubscribeAudio;
- public Boolean autoSubscribeVideo;
- public Boolean enableAudioRecordingOrPlayout;
- public Integer publishMediaPlayerId;
- public Integer clientRoleType;
- public Integer audienceLatencyLevel;
- public Integer defaultVideoStreamType;
- public Integer channelProfile;
- public Integer mediaPlayerAudioDelayMs;
- public String token;
- public Boolean enableBuiltInMediaEncryption;
- public Boolean publishRhythmPlayerTrack;
- public Boolean isInteractiveAudience;
- public Integer customVideoTrackId;
- public Boolean isAudioFilterable;
- }
- export class ChannelMediaOptions {
-
- public publishCameraTrack?:boolean;
-
- public publishSecondaryCameraTrack?:boolean;
-
- public publishMicrophoneTrack?:boolean;
-
- public publishScreenCaptureVideo?:boolean;
-
- public publishScreenCaptureAudio?:boolean;
-
- public publishCustomAudioTrack?:boolean;
-
- public publishCustomAudioTrackId?:number;
-
- public publishCustomVideoTrack?:boolean;
-
- public publishEncodedVideoTrack?:boolean;
-
- public publishMediaPlayerAudioTrack?:boolean;
-
- public publishMediaPlayerVideoTrack?:boolean;
-
- public publishTranscodedVideoTrack?:boolean;
-
- public publishMixedAudioTrack?:boolean;
-
- public autoSubscribeAudio?:boolean;
-
- public autoSubscribeVideo?:boolean;
-
- public enableAudioRecordingOrPlayout?:boolean;
-
- public publishMediaPlayerId?:number;
-
- public clientRoleType?:number;
-
- public audienceLatencyLevel?:number;
-
- public defaultVideoStreamType?:number;
-
- public channelProfile?:number;
-
- public audioDelayMs?:number;
-
- public mediaPlayerAudioDelayMs?:number;
-
- public enableBuiltInMediaEncryption?:boolean;
-
- public publishRhythmPlayerTrack?:boolean;
-
- public isInteractiveAudience?:boolean;
-
- public customVideoTrackId?:number;
-
- public isAudioFilterable?:boolean;
-
- public startPreview?:boolean;
- public constructor() {
- }
-}
- __attribute__((visibility("default"))) @interface AgoraRtcChannelMediaOptions : NSObject
- @property(assign, nonatomic) BOOL publishCameraTrack;
- @property(assign, nonatomic) BOOL publishSecondaryCameraTrack;
- @property(assign, nonatomic) BOOL publishMicrophoneTrack;
- #if TARGET_OS_IPHONE
- @property(assign, nonatomic) BOOL publishScreenCaptureVideo;
- @property(assign, nonatomic) BOOL publishScreenCaptureAudio;
- #elif TARGET_OS_MAC
- @property(assign, nonatomic) BOOL publishThirdCameraTrack;
- @property(assign, nonatomic) BOOL publishFourthCameraTrack;
- @property(assign, nonatomic) BOOL publishScreenTrack;
- @property(assign, nonatomic) BOOL publishSecondaryScreenTrack;
- @property(assign, nonatomic) BOOL publishThirdScreenTrack;
- @property(assign, nonatomic) BOOL publishFourthScreenTrack;
- #endif
- @property(assign, nonatomic) BOOL publishCustomAudioTrack;
- @property(assign, nonatomic) NSInteger publishCustomAudioTrackId;
-
- @property(assign, nonatomic) BOOL publishCustomVideoTrack;
- @property(assign, nonatomic) BOOL publishEncodedVideoTrack;
- @property(assign, nonatomic) BOOL publishMediaPlayerAudioTrack;
- @property(assign, nonatomic) BOOL publishMediaPlayerVideoTrack;
- @property(assign, nonatomic) BOOL publishTranscodedVideoTrack;
- @property(assign, nonatomic) BOOL publishMixedAudioTrack;
- @property(assign, nonatomic) BOOL publishLipSyncTrack;
- @property(assign, nonatomic) BOOL autoSubscribeAudio;
- @property(assign, nonatomic) BOOL autoSubscribeVideo;
- @property(assign, nonatomic) BOOL enableAudioRecordingOrPlayout;
- @property(assign, nonatomic) NSInteger publishMediaPlayerId;
- @property(assign, nonatomic) AgoraClientRole clientRoleType;
- @property(assign, nonatomic) AgoraAudienceLatencyLevelType audienceLatencyLevel;
- @property(assign, nonatomic) AgoraVideoStreamType defaultVideoStreamType;
- @property(assign, nonatomic) AgoraChannelProfile channelProfile;
- @property(copy, nonatomic) NSString * _Nullable token;
- @property(assign, nonatomic) BOOL enableBuiltInMediaEncryption;
-
- @property(assign, nonatomic) BOOL publishRhythmPlayerTrack;
- @property(assign, nonatomic) BOOL isInteractiveAudience;
-
- @property(assign, nonatomic) NSInteger customVideoTrackId;
-
- @property(assign, nonatomic) BOOL isAudioFilterable;
-
- @end
- struct ChannelMediaOptions {
- Optional<bool> publishCameraTrack;
- Optional<bool> publishSecondaryCameraTrack;
- Optional<bool> publishThirdCameraTrack;
- Optional<bool> publishFourthCameraTrack;
- Optional<bool> publishMicrophoneTrack;
-
- #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- Optional<bool> publishScreenCaptureVideo;
- Optional<bool> publishScreenCaptureAudio;
- #else
- Optional<bool> publishScreenTrack;
- Optional<bool> publishSecondaryScreenTrack;
- Optional<bool> publishThirdScreenTrack;
- Optional<bool> publishFourthScreenTrack;
- #endif
-
- Optional<bool> publishCustomAudioTrack;
- Optional<int> publishCustomAudioTrackId;
- Optional<bool> publishCustomVideoTrack;
- Optional<bool> publishEncodedVideoTrack;
- Optional<bool> publishMediaPlayerAudioTrack;
- Optional<bool> publishMediaPlayerVideoTrack;
- Optional<bool> publishTranscodedVideoTrack;
- Optional<bool> publishMixedAudioTrack;
- Optional<bool> publishLipSyncTrack;
- Optional<bool> autoSubscribeAudio;
- Optional<bool> autoSubscribeVideo;
- Optional<bool> enableAudioRecordingOrPlayout;
- Optional<int> publishMediaPlayerId;
- Optional<CLIENT_ROLE_TYPE> clientRoleType;
- Optional<AUDIENCE_LATENCY_LEVEL_TYPE> audienceLatencyLevel;
- Optional<VIDEO_STREAM_TYPE> defaultVideoStreamType;
- Optional<CHANNEL_PROFILE_TYPE> channelProfile;
- Optional<const char*> token;
- Optional<bool> enableBuiltInMediaEncryption;
- Optional<bool> publishRhythmPlayerTrack;
- Optional<bool> isInteractiveAudience;
-
- Optional<video_track_id_t> customVideoTrackId;
-
- Optional<bool> isAudioFilterable;
-
- ChannelMediaOptions() {}
- ~ChannelMediaOptions() {}
- USTRUCT(BlueprintType)
-struct FChannelMediaOptions
-{
- GENERATED_BODY()
-public:
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishSecondaryCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishThirdCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishFourthCameraTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMicrophoneTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenCaptureVideo = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenCaptureAudio = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishSecondaryScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishThirdScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishFourthScreenTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCustomAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool publishCustomAudioTrackId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int publishCustomAudioTrackId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishCustomVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishEncodedVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMediaPlayerAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMediaPlayerVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishTranscodedVideoTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishMixedAudioTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishLipSyncTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional autoSubscribeAudio = EAgoraOptional::AGORA_TRUE_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional autoSubscribeVideo = EAgoraOptional::AGORA_TRUE_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional enableAudioRecordingOrPlayout = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool publishMediaPlayerId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int publishMediaPlayerId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool clientRoleType_SetValue = true;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- ECLIENT_ROLE_TYPE clientRoleType = ECLIENT_ROLE_TYPE::CLIENT_ROLE_BROADCASTER;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool audienceLatencyLevel_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAUDIENCE_LATENCY_LEVEL_TYPE audienceLatencyLevel = EAUDIENCE_LATENCY_LEVEL_TYPE::AUDIENCE_LATENCY_LEVEL_LOW_LATENCY;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool defaultVideoStreamType_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EVIDEO_STREAM_TYPE defaultVideoStreamType = EVIDEO_STREAM_TYPE::VIDEO_STREAM_HIGH;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool channelProfile_SetValue = true;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- ECHANNEL_PROFILE_TYPE channelProfile = ECHANNEL_PROFILE_TYPE::CHANNEL_PROFILE_LIVE_BROADCASTING;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool audioDelayMs_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int audioDelayMs = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool mediaPlayerAudioDelayMs_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int mediaPlayerAudioDelayMs = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool token_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- FString token = "";
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional enableBuiltInMediaEncryption = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional publishRhythmPlayerTrack = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional isInteractiveAudience = EAgoraOptional::AGORA_NULL_VALUE;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- bool customVideoTrackId_SetValue = false;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- int64 customVideoTrackId = 0;
- UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ChannelMediaOptions")
- EAgoraOptional isAudioFilterable = EAgoraOptional::AGORA_NULL_VALUE;
-
- FChannelMediaOptions(){}
- FChannelMediaOptions(const agora::rtc::ChannelMediaOptions & AgoraData){
-
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCameraTrack, AgoraData.publishCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishSecondaryCameraTrack, AgoraData.publishSecondaryCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishThirdCameraTrack, AgoraData.publishThirdCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishFourthCameraTrack, AgoraData.publishFourthCameraTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMicrophoneTrack, AgoraData.publishMicrophoneTrack)
-#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenCaptureVideo, AgoraData.publishScreenCaptureVideo)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenCaptureAudio, AgoraData.publishScreenCaptureAudio)
-#else
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishScreenTrack, AgoraData.publishScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishSecondaryScreenTrack, AgoraData.publishSecondaryScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishThirdScreenTrack, AgoraData.publishThirdScreenTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishFourthScreenTrack, AgoraData.publishFourthScreenTrack)
-#endif
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCustomAudioTrack, AgoraData.publishCustomAudioTrack)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->publishCustomAudioTrackId, AgoraData.publishCustomAudioTrackId)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishCustomVideoTrack, AgoraData.publishCustomVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishEncodedVideoTrack, AgoraData.publishEncodedVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMediaPlayerAudioTrack, AgoraData.publishMediaPlayerAudioTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMediaPlayerVideoTrack, AgoraData.publishMediaPlayerVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishTranscodedVideoTrack, AgoraData.publishTranscodedVideoTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishMixedAudioTrack, AgoraData.publishMixedAudioTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishLipSyncTrack, AgoraData.publishLipSyncTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->autoSubscribeAudio, AgoraData.autoSubscribeAudio)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->autoSubscribeVideo, AgoraData.autoSubscribeVideo)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->enableAudioRecordingOrPlayout, AgoraData.enableAudioRecordingOrPlayout)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->publishMediaPlayerId, AgoraData.publishMediaPlayerId)
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->clientRoleType,AgoraData.clientRoleType,static_cast<ECLIENT_ROLE_TYPE>(AgoraData.clientRoleType.value()))
-
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->audienceLatencyLevel, AgoraData.audienceLatencyLevel, static_cast<EAUDIENCE_LATENCY_LEVEL_TYPE>(AgoraData.audienceLatencyLevel.value()))
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->defaultVideoStreamType, AgoraData.defaultVideoStreamType, static_cast<EVIDEO_STREAM_TYPE>(AgoraData.defaultVideoStreamType.value()))
- SET_UEBP_OPTIONAL_VAL_ASSIGN_VAL(this->channelProfile, AgoraData.channelProfile, static_cast<ECHANNEL_PROFILE_TYPE>(AgoraData.channelProfile.value()))
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->audioDelayMs, AgoraData.audioDelayMs)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->mediaPlayerAudioDelayMs, AgoraData.mediaPlayerAudioDelayMs)
-
- SET_UEBP_OPTIONAL_VAL_FString(this->token,AgoraData.token)
-
- SET_UEBP_OPTIONAL_VAL_BOOL(this->enableBuiltInMediaEncryption, AgoraData.enableBuiltInMediaEncryption)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->publishRhythmPlayerTrack, AgoraData.publishRhythmPlayerTrack)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->isInteractiveAudience, AgoraData.isInteractiveAudience)
- SET_UEBP_OPTIONAL_VAL_DIR_ASSIGN(this->customVideoTrackId, AgoraData.customVideoTrackId)
- SET_UEBP_OPTIONAL_VAL_BOOL(this->isAudioFilterable, AgoraData.isAudioFilterable)
- }
- agora::rtc::ChannelMediaOptions CreateAgoraData() const{
- agora::rtc::ChannelMediaOptions AgoraData;
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCameraTrack, this->publishCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishSecondaryCameraTrack, this->publishSecondaryCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishThirdCameraTrack, this->publishThirdCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishFourthCameraTrack, this->publishFourthCameraTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMicrophoneTrack, this->publishMicrophoneTrack)
-#if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenCaptureVideo, this->publishScreenCaptureVideo)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenCaptureAudio, this->publishScreenCaptureAudio)
-#else
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishScreenTrack, this->publishScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishSecondaryScreenTrack, this->publishSecondaryScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishThirdScreenTrack, this->publishThirdScreenTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishFourthScreenTrack, this->publishFourthScreenTrack)
-#endif
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCustomAudioTrack, this->publishCustomAudioTrack)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.publishCustomAudioTrackId, this->publishCustomAudioTrackId)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishCustomVideoTrack, this->publishCustomVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishEncodedVideoTrack, this->publishEncodedVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMediaPlayerAudioTrack, this->publishMediaPlayerAudioTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMediaPlayerVideoTrack, this->publishMediaPlayerVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishTranscodedVideoTrack, this->publishTranscodedVideoTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishMixedAudioTrack, this->publishMixedAudioTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishLipSyncTrack, this->publishLipSyncTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.autoSubscribeAudio, this->autoSubscribeAudio)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.autoSubscribeVideo, this->autoSubscribeVideo)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.enableAudioRecordingOrPlayout, this->enableAudioRecordingOrPlayout)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.publishMediaPlayerId, this->publishMediaPlayerId)
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.clientRoleType, this->clientRoleType,static_cast<agora::rtc::CLIENT_ROLE_TYPE>(this->clientRoleType))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.audienceLatencyLevel, this->audienceLatencyLevel, static_cast<agora::rtc::AUDIENCE_LATENCY_LEVEL_TYPE>(this->audienceLatencyLevel))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.defaultVideoStreamType, this->defaultVideoStreamType, static_cast<agora::rtc::VIDEO_STREAM_TYPE>(this->defaultVideoStreamType))
- SET_AGORA_OPTIONAL_VAL_ASSIGN_VAL(AgoraData.channelProfile, this->channelProfile, static_cast<agora::CHANNEL_PROFILE_TYPE>(this->channelProfile))
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.audioDelayMs, this->audioDelayMs)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.mediaPlayerAudioDelayMs, this->mediaPlayerAudioDelayMs)
- SET_AGORA_OPTIONAL_VAL_CHARPTR______MEMOALLOC(AgoraData.token, this->token)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.enableBuiltInMediaEncryption, this->enableBuiltInMediaEncryption)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.publishRhythmPlayerTrack, this->publishRhythmPlayerTrack)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.isInteractiveAudience, this->isInteractiveAudience)
- SET_AGORA_OPTIONAL_VAL_DIR_ASSIGN(AgoraData.customVideoTrackId, this->customVideoTrackId)
- SET_AGORA_OPTIONAL_VAL_BOOL(AgoraData.isAudioFilterable, this->isAudioFilterable)
- return AgoraData;
- }
- void FreeAgoraData(agora::rtc::ChannelMediaOptions& AgoraData) const {
- SET_AGORA_OPTIONAL_VAL_CHARPTR______MEMOFREE(AgoraData.token)
- }
-};
- struct ChannelMediaOptions {
- Optional<bool> publishCameraTrack;
- Optional<bool> publishSecondaryCameraTrack;
- Optional<bool> publishMicrophoneTrack;
-
- #if defined(__ANDROID__) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
- Optional<bool> publishScreenCaptureVideo;
- Optional<bool> publishScreenCaptureAudio;
- #else
- Optional<bool> publishScreenTrack;
- Optional<bool> publishSecondaryScreenTrack;
- #endif
-
- Optional<bool> publishCustomAudioTrack;
- Optional<int> publishCustomAudioTrackId;
- Optional<bool> publishCustomVideoTrack;
- Optional<bool> publishEncodedVideoTrack;
- Optional<bool> publishMediaPlayerAudioTrack;
- Optional<bool> publishMediaPlayerVideoTrack;
- Optional<bool> publishTranscodedVideoTrack;
- Optional<bool> autoSubscribeAudio;
- Optional<bool> autoSubscribeVideo;
- Optional<bool> enableAudioRecordingOrPlayout;
- Optional<int> publishMediaPlayerId;
- Optional<CLIENT_ROLE_TYPE> clientRoleType;
- Optional<AUDIENCE_LATENCY_LEVEL_TYPE> audienceLatencyLevel;
- Optional<VIDEO_STREAM_TYPE> defaultVideoStreamType;
- Optional<CHANNEL_PROFILE_TYPE> channelProfile;
- Optional<const char*> token;
- Optional<bool> enableBuiltInMediaEncryption;
- Optional<bool> publishRhythmPlayerTrack;
- Optional<bool> isInteractiveAudience;
-
- Optional<video_track_id_t> customVideoTrackId;
-
- Optional<bool> isAudioFilterable;
-
- ChannelMediaOptions() {}
- ~ChannelMediaOptions() {}
- export class ChannelMediaOptions {
-
- publishCameraTrack?: boolean;
-
- publishSecondaryCameraTrack?: boolean;
-
- publishThirdCameraTrack?: boolean;
-
- publishFourthCameraTrack?: boolean;
-
- publishMicrophoneTrack?: boolean;
-
- publishScreenTrack?: boolean;
-
- publishSecondaryScreenTrack?: boolean;
-
- publishThirdScreenTrack?: boolean;
-
- publishFourthScreenTrack?: boolean;
-
- publishCustomAudioTrack?: boolean;
-
- publishCustomAudioTrackId?: number;
-
- publishCustomVideoTrack?: boolean;
-
- publishEncodedVideoTrack?: boolean;
-
- publishMediaPlayerAudioTrack?: boolean;
-
- publishMediaPlayerVideoTrack?: boolean;
-
- publishTranscodedVideoTrack?: boolean;
-
- publishLipSyncTrack?: boolean;
-
- autoSubscribeAudio?: boolean;
-
- autoSubscribeVideo?: boolean;
-
- enableAudioRecordingOrPlayout?: boolean;
-
- publishMediaPlayerId?: number;
-
- clientRoleType?: ClientRoleType;
-
- audienceLatencyLevel?: AudienceLatencyLevelType;
-
- defaultVideoStreamType?: VideoStreamType;
-
- channelProfile?: ChannelProfileType;
-
- token?: string;
-
- enableBuiltInMediaEncryption?: boolean;
-
- publishRhythmPlayerTrack?: boolean;
-
- isInteractiveAudience?: boolean;
-
- customVideoTrackId?: number;
-
- isAudioFilterable?: boolean;
- }
- public class ChannelMediaOptions : OptionalJsonParse
- {
- public Optional<bool> publishCameraTrack = new Optional<bool>();
- public Optional<bool> publishSecondaryCameraTrack = new Optional<bool>();
- public Optional<bool> publishThirdCameraTrack = new Optional<bool>();
- public Optional<bool> publishFourthCameraTrack = new Optional<bool>();
- public Optional<bool> publishMicrophoneTrack = new Optional<bool>();
- public Optional<bool> publishScreenCaptureVideo = new Optional<bool>();
- public Optional<bool> publishScreenCaptureAudio = new Optional<bool>();
- public Optional<bool> publishScreenTrack = new Optional<bool>();
- public Optional<bool> publishSecondaryScreenTrack = new Optional<bool>();
- public Optional<bool> publishThirdScreenTrack = new Optional<bool>();
- public Optional<bool> publishFourthScreenTrack = new Optional<bool>();
- public Optional<bool> publishCustomAudioTrack = new Optional<bool>();
- public Optional<int> publishCustomAudioTrackId = new Optional<int>();
- public Optional<bool> publishCustomVideoTrack = new Optional<bool>();
- public Optional<bool> publishEncodedVideoTrack = new Optional<bool>();
- public Optional<bool> publishMediaPlayerAudioTrack = new Optional<bool>();
- public Optional<bool> publishMediaPlayerVideoTrack = new Optional<bool>();
- public Optional<bool> publishTranscodedVideoTrack = new Optional<bool>();
- public Optional<bool> publishLipSyncTrack = new Optional<bool>();
- public Optional<bool> autoSubscribeAudio = new Optional<bool>();
- public Optional<bool> autoSubscribeVideo = new Optional<bool>();
- public Optional<bool> enableAudioRecordingOrPlayout = new Optional<bool>();
- public Optional<int> publishMediaPlayerId = new Optional<int>();
- public Optional<CLIENT_ROLE_TYPE> clientRoleType = new Optional<CLIENT_ROLE_TYPE>();
- public Optional<AUDIENCE_LATENCY_LEVEL_TYPE> audienceLatencyLevel = new Optional<AUDIENCE_LATENCY_LEVEL_TYPE>();
- public Optional<VIDEO_STREAM_TYPE> defaultVideoStreamType = new Optional<VIDEO_STREAM_TYPE>();
- public Optional<CHANNEL_PROFILE_TYPE> channelProfile = new Optional<CHANNEL_PROFILE_TYPE>();
- public Optional<string> token = new Optional<string>();
- public Optional<bool> publishRhythmPlayerTrack = new Optional<bool>();
- public Optional<bool> isInteractiveAudience = new Optional<bool>();
- public Optional<video_track_id_t> customVideoTrackId = new Optional<video_track_id_t>();
- public Optional<bool> isAudioFilterable = new Optional<bool>();
-
- }
- export class ChannelMediaOptions {
-
- publishCameraTrack?: boolean;
-
- publishSecondaryCameraTrack?: boolean;
-
- publishThirdCameraTrack?: boolean;
-
- publishFourthCameraTrack?: boolean;
-
- publishMicrophoneTrack?: boolean;
-
- publishScreenCaptureVideo?: boolean;
-
- publishScreenCaptureAudio?: boolean;
-
- publishSecondaryScreenTrack?: boolean;
-
- publishThirdScreenTrack?: boolean;
-
- publishFourthScreenTrack?: boolean;
-
- publishCustomAudioTrack?: boolean;
-
- publishCustomAudioTrackId?: number;
-
- publishCustomVideoTrack?: boolean;
-
- publishEncodedVideoTrack?: boolean;
-
- publishMediaPlayerAudioTrack?: boolean;
-
- publishMediaPlayerVideoTrack?: boolean;
-
- publishTranscodedVideoTrack?: boolean;
-
- publishLipSyncTrack?: boolean;
-
- autoSubscribeAudio?: boolean;
-
- autoSubscribeVideo?: boolean;
-
- enableAudioRecordingOrPlayout?: boolean;
-
- publishMediaPlayerId?: number;
-
- clientRoleType?: ClientRoleType;
-
- audienceLatencyLevel?: AudienceLatencyLevelType;
-
- defaultVideoStreamType?: VideoStreamType;
-
- channelProfile?: ChannelProfileType;
-
- token?: string;
-
- enableBuiltInMediaEncryption?: boolean;
-
- publishRhythmPlayerTrack?: boolean;
-
- isInteractiveAudience?: boolean;
-
- customVideoTrackId?: number;
-
- isAudioFilterable?: boolean;
- }
- @JsonSerializable(explicitToJson: true, includeIfNull: false)
- class ChannelMediaOptions {
- const ChannelMediaOptions(
- {this.publishCameraTrack,
- this.publishSecondaryCameraTrack,
- this.publishThirdCameraTrack,
- this.publishFourthCameraTrack,
- this.publishMicrophoneTrack,
- this.publishScreenCaptureVideo,
- this.publishScreenCaptureAudio,
- this.publishScreenTrack,
- this.publishSecondaryScreenTrack,
- this.publishThirdScreenTrack,
- this.publishFourthScreenTrack,
- this.publishCustomAudioTrack,
- this.publishCustomAudioTrackId,
- this.publishCustomVideoTrack,
- this.publishEncodedVideoTrack,
- this.publishMediaPlayerAudioTrack,
- this.publishMediaPlayerVideoTrack,
- this.publishTranscodedVideoTrack,
- this.publishMixedAudioTrack,
- this.publishLipSyncTrack,
- this.autoSubscribeAudio,
- this.autoSubscribeVideo,
- this.enableAudioRecordingOrPlayout,
- this.publishMediaPlayerId,
- this.clientRoleType,
- this.audienceLatencyLevel,
- this.defaultVideoStreamType,
- this.channelProfile,
- this.audioDelayMs,
- this.mediaPlayerAudioDelayMs,
- this.token,
- this.enableBuiltInMediaEncryption,
- this.publishRhythmPlayerTrack,
- this.isInteractiveAudience,
- this.customVideoTrackId,
- this.isAudioFilterable,
- this.parameters});
-
- @JsonKey(name: 'publishCameraTrack')
- final bool? publishCameraTrack;
-
- @JsonKey(name: 'publishSecondaryCameraTrack')
- final bool? publishSecondaryCameraTrack;
-
- @JsonKey(name: 'publishThirdCameraTrack')
- final bool? publishThirdCameraTrack;
-
- @JsonKey(name: 'publishFourthCameraTrack')
- final bool? publishFourthCameraTrack;
-
- @JsonKey(name: 'publishMicrophoneTrack')
- final bool? publishMicrophoneTrack;
-
- @JsonKey(name: 'publishScreenCaptureVideo')
- final bool? publishScreenCaptureVideo;
-
- @JsonKey(name: 'publishScreenCaptureAudio')
- final bool? publishScreenCaptureAudio;
-
- @JsonKey(name: 'publishScreenTrack')
- final bool? publishScreenTrack;
-
- @JsonKey(name: 'publishSecondaryScreenTrack')
- final bool? publishSecondaryScreenTrack;
-
- @JsonKey(name: 'publishThirdScreenTrack')
- final bool? publishThirdScreenTrack;
-
- @JsonKey(name: 'publishFourthScreenTrack')
- final bool? publishFourthScreenTrack;
-
- @JsonKey(name: 'publishCustomAudioTrack')
- final bool? publishCustomAudioTrack;
-
- @JsonKey(name: 'publishCustomAudioTrackId')
- final int? publishCustomAudioTrackId;
-
- @JsonKey(name: 'publishCustomVideoTrack')
- final bool? publishCustomVideoTrack;
-
- @JsonKey(name: 'publishEncodedVideoTrack')
- final bool? publishEncodedVideoTrack;
-
- @JsonKey(name: 'publishMediaPlayerAudioTrack')
- final bool? publishMediaPlayerAudioTrack;
-
- @JsonKey(name: 'publishMediaPlayerVideoTrack')
- final bool? publishMediaPlayerVideoTrack;
-
- @JsonKey(name: 'publishTranscodedVideoTrack')
- final bool? publishTranscodedVideoTrack;
-
- @JsonKey(name: 'publishMixedAudioTrack')
- final bool? publishMixedAudioTrack;
-
- @JsonKey(name: 'publishLipSyncTrack')
- final bool? publishLipSyncTrack;
-
- @JsonKey(name: 'autoSubscribeAudio')
- final bool? autoSubscribeAudio;
-
- @JsonKey(name: 'autoSubscribeVideo')
- final bool? autoSubscribeVideo;
-
- @JsonKey(name: 'enableAudioRecordingOrPlayout')
- final bool? enableAudioRecordingOrPlayout;
-
- @JsonKey(name: 'publishMediaPlayerId')
- final int? publishMediaPlayerId;
-
- @JsonKey(name: 'clientRoleType')
- final ClientRoleType? clientRoleType;
-
- @JsonKey(name: 'audienceLatencyLevel')
- final AudienceLatencyLevelType? audienceLatencyLevel;
-
- @JsonKey(name: 'defaultVideoStreamType')
- final VideoStreamType? defaultVideoStreamType;
-
- @JsonKey(name: 'channelProfile')
- final ChannelProfileType? channelProfile;
-
- @JsonKey(name: 'audioDelayMs')
- final int? audioDelayMs;
-
- @JsonKey(name: 'mediaPlayerAudioDelayMs')
- final int? mediaPlayerAudioDelayMs;
-
- @JsonKey(name: 'token')
- final String? token;
-
- @JsonKey(name: 'enableBuiltInMediaEncryption')
- final bool? enableBuiltInMediaEncryption;
-
- @JsonKey(name: 'publishRhythmPlayerTrack')
- final bool? publishRhythmPlayerTrack;
-
- @JsonKey(name: 'isInteractiveAudience')
- final bool? isInteractiveAudience;
-
- @JsonKey(name: 'customVideoTrackId')
- final int? customVideoTrackId;
-
- @JsonKey(name: 'isAudioFilterable')
- final bool? isAudioFilterable;
-
- @JsonKey(name: 'parameters')
- final String? parameters;
-
- factory ChannelMediaOptions.fromJson(Map<String, dynamic> json) =>
- _$ChannelMediaOptionsFromJson(json);
-
- Map<String, dynamic> toJson() => _$ChannelMediaOptionsToJson(this);
- }
-
-
-