Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed May 8, 2024
1 parent fb8f673 commit 6bba482
Show file tree
Hide file tree
Showing 15 changed files with 197 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class _State extends State<ScreenSharing> with KeepRemoteVideoViewsMixin {
appId: config.appId,
channelProfile: ChannelProfileType.channelProfileLiveBroadcasting,
));
await _engine.setLogLevel(LogLevel.logLevelError);
// await _engine.setLogLevel(LogLevel.logLevelError);

_engine.registerEventHandler(_rtcEngineEventHandler);

Expand Down
2 changes: 1 addition & 1 deletion example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
16 changes: 8 additions & 8 deletions lib/src/agora_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ extension VideoMirrorModeTypeExt on VideoMirrorModeType {
}
}

/// The bit mask that indicates the device codec capability.
/// The bit mask of the codec type.
@JsonEnum(alwaysCreate: true)
enum CodecCapMask {
/// (0): The device does not support encoding or decoding.
Expand Down Expand Up @@ -1741,7 +1741,7 @@ class CodecCapLevels {
Map<String, dynamic> toJson() => _$CodecCapLevelsToJson(this);
}

/// The codec capability of the device.
/// The codec capability of the SDK.
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class CodecCapInfo {
/// @nodoc
Expand All @@ -1751,11 +1751,11 @@ class CodecCapInfo {
@JsonKey(name: 'codecType')
final VideoCodecType? codecType;

/// The bit mask of the codec type. See CodecCapMask.
/// Bit mask of the codec types in SDK. See CodecCapMask.
@JsonKey(name: 'codecCapMask')
final int? codecCapMask;

/// The level of the codec capability. See CodecCapLevels.
/// Codec capability of the SDK. See CodecCapLevels.
@JsonKey(name: 'codecLevels')
final CodecCapLevels? codecLevels;

Expand Down Expand Up @@ -1794,7 +1794,7 @@ class VideoEncoderConfiguration {
@JsonKey(name: 'frameRate')
final int? frameRate;

/// The encoding bitrate (Kbps) of the video. This parameter does not need to be set; keeping the default value standardBitrate is sufficient. The SDK automatically matches the most suitable bitrate based on the video resolution and frame rate you have set. For the correspondence between video resolution, frame rate, and bitrate, please refer to. standardBitrate (0): (Recommended) Standard bitrate mode. compatibleBitrate (-1): Adaptive bitrate mode. In general, Agora suggests that you do not use this value.
/// The encoding bitrate (Kbps) of the video. This parameter does not need to be set; keeping the default value standardBitrate is sufficient. The SDK automatically matches the most suitable bitrate based on the video resolution and frame rate you have set. For the correspondence between video resolution and frame rate, see. standardBitrate (0): (Recommended) Standard bitrate mode. compatibleBitrate (-1): Adaptive bitrate mode. In general, Agora suggests that you do not use this value.
@JsonKey(name: 'bitrate')
final int? bitrate;

Expand Down Expand Up @@ -4553,7 +4553,7 @@ class VideoCanvas {
this.enableAlphaMask});

/// The video display window. In one VideoCanvas, you can only choose to set either view or surfaceTexture. If both are set, only the settings in view take effect.
@JsonKey(name: 'view')
@JsonKey(name: 'view', readValue: readIntPtr)
final int? view;

/// The user ID.
Expand Down Expand Up @@ -5364,7 +5364,7 @@ class ScreenCaptureParameters {
final bool? windowFocus;

/// The ID list of the windows to be blocked. When calling startScreenCaptureByDisplayId to start screen sharing, you can use this parameter to block a specified window. When calling updateScreenCaptureParameters to update screen sharing configurations, you can use this parameter to dynamically block a specified window.
@JsonKey(name: 'excludeWindowList')
@JsonKey(name: 'excludeWindowList', readValue: readIntPtr)
final List<int>? excludeWindowList;

/// The number of windows to be excluded. On the Windows platform, the maximum value of this parameter is 24; if this value is exceeded, excluding the window fails.
Expand Down Expand Up @@ -6325,7 +6325,7 @@ class EchoTestConfiguration {
this.intervalInSeconds});

/// The view used to render the local user's video. This parameter is only applicable to scenarios testing video devices, that is, when enableVideo is true.
@JsonKey(name: 'view')
@JsonKey(name: 'view', readValue: readIntPtr)
final int? view;

/// Whether to enable the audio device for the loop test: true : (Default) Enable the audio device. To test the audio device, set this parameter as true. false : Disable the audio device.
Expand Down
11 changes: 6 additions & 5 deletions lib/src/agora_base.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/src/agora_media_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1387,12 +1387,12 @@ class AudioFrameObserver extends AudioFrameObserverBase {
onEarMonitoringAudioFrame: onEarMonitoringAudioFrame,
);

/// Retrieves the audio frame of a specified user before mixing.
/// Retrieves the audio frame before mixing of subscribed remote users.
///
/// Due to framework limitations, this callback does not support sending processed audio data back to the SDK.
///
/// * [channelId] The channel ID.
/// * [uid] The user ID of the specified user.
/// * [uid] The ID of subscribed remote users.
/// * [audioFrame] The raw audio data. See AudioFrame.
final void Function(String channelId, int uid, AudioFrame audioFrame)?
onPlaybackAudioFrameBeforeMixing;
Expand Down
Loading

0 comments on commit 6bba482

Please sign in to comment.