Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] daily update 2023-10-11 #1364

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions lib/src/agora_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ class VideoEncoderConfiguration {
@JsonKey(name: 'frameRate')
final int? frameRate;

/// The encoding bitrate (Kbps) of the video. : (Recommended) Standard bitrate mode. In this mode, the bitrates of the live broadcasting profile is higher than that of the communication profile. : Adaptive bitrate mode In this mode, the bitrates of the live broadcasting profile equals that of the communication profile. If this mode is selected, the video frame rate of live broadcasting scenarios may be lower than the set value.
/// The encoding bitrate (Kbps) of the video. (0): (Recommended) Standard bitrate mode. In this mode, the bitrates of the live broadcasting profile is higher than that of the communication profile. (-1): Adaptive bitrate mode. In this mode, the bitrates of the live broadcasting profile equals that of the communication profile. If this mode is selected, the video frame rate of live broadcasting scenarios may be lower than the set value.
@JsonKey(name: 'bitrate')
final int? bitrate;

Expand Down Expand Up @@ -2654,7 +2654,7 @@ enum LocalAudioStreamError {
@JsonValue(2)
localAudioStreamErrorDeviceNoPermission,

/// 3: (Android and iOS only) The local audio capture device is used. Remind your users to check whether another application occupies the microphone. Local audio capture automatically resumes after the microphone is idle for about five seconds. You can also try to rejoin the channel after the microphone is idle.
/// 3: (Android and iOS only) The local audio capture device is already in use. Remind your users to check whether another application occupies the microphone. Local audio capture automatically resumes after the microphone is idle for about five seconds. You can also try to rejoin the channel after the microphone is idle.
@JsonValue(3)
localAudioStreamErrorDeviceBusy,

Expand Down Expand Up @@ -2760,42 +2760,42 @@ enum LocalVideoStreamError {
@JsonValue(5)
localVideoStreamErrorEncodeFailure,

/// 6: (For iOS only) The app is in the background. Remind the user that video capture cannot be performed normally when the app is in the background.
/// 6: (iOS only) The app is in the background. Remind the user that video capture cannot be performed normally when the app is in the background.
@JsonValue(6)
localVideoStreamErrorCaptureInbackground,

/// 7: (For iOS only) The current application window is running in Slide Over, Split View, or Picture in Picture mode, and another app is occupying the camera. Remind the user that the application cannot capture video properly when the app is running in Slide Over, Split View, or Picture in Picture mode and another app is occupying the camera.
/// 7: (iOS only) The current application window is running in Slide Over, Split View, or Picture in Picture mode, and another app is occupying the camera. Remind the user that the application cannot capture video properly when the app is running in Slide Over, Split View, or Picture in Picture mode and another app is occupying the camera.
@JsonValue(7)
localVideoStreamErrorCaptureMultipleForegroundApps,

/// 8: Fails to find a local video capture device. Remind the user to check whether the camera is connected to the device properly or the camera is working properly, and then to rejoin the channel.
@JsonValue(8)
localVideoStreamErrorDeviceNotFound,

/// 9: (For macOS only) The video capture device currently in use is disconnected (such as being unplugged).
/// 9: (macOS only) The video capture device currently in use is disconnected (such as being unplugged).
@JsonValue(9)
localVideoStreamErrorDeviceDisconnected,

/// 10: (For macOS and Windows only) The SDK cannot find the video device in the video device list. Check whether the ID of the video device is valid.
/// 10: (macOS and Windows only) The SDK cannot find the video device in the video device list. Check whether the ID of the video device is valid.
@JsonValue(10)
localVideoStreamErrorDeviceInvalidId,

/// 101: The current video capture device is unavailable due to excessive system pressure.
@JsonValue(101)
localVideoStreamErrorDeviceSystemPressure,

/// 11: (For macOS only) The shared window is minimized when you call startScreenCaptureByWindowId to share a window. The SDK cannot share a minimized window. You can cancel the minimization of this window at the application layer, for example by maximizing this window.
/// 11: (macOS only) The shared window is minimized when you call startScreenCaptureByWindowId to share a window. The SDK cannot share a minimized window. You can cancel the minimization of this window at the application layer, for example by maximizing this window.
@JsonValue(11)
localVideoStreamErrorScreenCaptureWindowMinimized,

/// 12: (For macOS and Windows only) The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing. Common scenarios for reporting this error code:
/// 12: (macOS and Windows only) The error code indicates that a window shared by the window ID has been closed or a full-screen window shared by the window ID has exited full-screen mode. After exiting full-screen mode, remote users cannot see the shared window. To prevent remote users from seeing a black screen, Agora recommends that you immediately stop screen sharing. Common scenarios reporting this error code:
/// When the local user closes the shared window, the SDK reports this error code.
/// The local user shows some slides in full-screen mode first, and then shares the windows of the slides. After the user exits full-screen mode, the SDK reports this error code.
/// The local user watches a web video or reads a web document in full-screen mode first, and then shares the window of the web video or document. After the user exits full-screen mode, the SDK reports this error code.
@JsonValue(12)
localVideoStreamErrorScreenCaptureWindowClosed,

/// 13: (For Windows only) The window being shared is overlapped by another window, so the overlapped area is blacked out by the SDK during window sharing.
/// 13: (Windows only) The window being shared is overlapped by another window, so the overlapped area is blacked out by the SDK during window sharing.
@JsonValue(13)
localVideoStreamErrorScreenCaptureWindowOccluded,

Expand All @@ -2807,7 +2807,7 @@ enum LocalVideoStreamError {
@JsonValue(21)
localVideoStreamErrorScreenCaptureFailure,

/// @nodoc
/// 22: (Windows and macOS only) No permission for screen capture.
@JsonValue(22)
localVideoStreamErrorScreenCaptureNoPermission,
}
Expand Down Expand Up @@ -3767,7 +3767,7 @@ class LiveTranscoding {
@JsonKey(name: 'height')
final int? height;

/// Bitrate of the output video stream for Media Push in Kbps. The default value is 400 Kbps.
/// Bitrate of the output video stream for Media Push in Kbps. The default value is 400 Kbps. Set this member according to the table. If you set a bitrate beyond the proper range, the SDK automatically adapts it to a value within the range.
@JsonKey(name: 'videoBitrate')
final int? videoBitrate;

Expand Down Expand Up @@ -4198,7 +4198,7 @@ enum ConnectionChangedReasonType {
@JsonValue(13)
connectionChangedClientIpAddressChanged,

/// 14: Timeout for the keep-alive of the connection between the SDK and the Agora edge server. The connection state changes to .
/// 14: Timeout for the keep-alive of the connection between the SDK and the Agora edge server. The SDK tries to reconnect to the server automatically.
@JsonValue(14)
connectionChangedKeepAliveTimeout,

Expand Down Expand Up @@ -5256,7 +5256,7 @@ class ScreenCaptureParameters {
@JsonKey(name: 'bitrate')
final int? bitrate;

/// Whether to capture the mouse in screen sharing: true : (Default) Capture the mouse. false : Do not capture the mouse.
/// Whether to capture the mouse in screen sharing: true : (Default) Capture the mouse. false : Do not capture the mouse. Due to macOS system restrictions, setting this parameter to false is ineffective during screen sharing (it has no impact when sharing a window).
@JsonKey(name: 'captureMouseCursor')
final bool? captureMouseCursor;

Expand Down Expand Up @@ -5397,7 +5397,7 @@ class AudioRecordingConfiguration {
this.quality,
this.recordingChannel});

/// The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.mp4. Ensure that the directory for the log files exists and is writable.
/// The absolute path (including the filename extensions) of the recording file. For example: C:\music\audio.aac. Ensure that the directory for the log files exists and is writable.
@JsonKey(name: 'filePath')
final String? filePath;

Expand Down
6 changes: 3 additions & 3 deletions lib/src/agora_media_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ enum ContentInspectType {
@JsonValue(0)
contentInspectInvalid,

/// 1: Video content moderation. SDK takes screenshots, inspects video content of the video stream in the channel, and uploads the screenshots and moderation results.
/// @nodoc
@JsonValue(1)
contentInspectModeration,

/// 2: Screenshot capture. SDK takes screenshots of the video stream in the channel and uploads them.
/// 2: Video screenshot and upload via Agora self-developed extension. SDK takes screenshots of the video stream in the channel and uploads them.
@JsonValue(2)
contentInspectSupervision,
}
Expand Down Expand Up @@ -558,7 +558,7 @@ enum VideoPixelFormat {
@JsonValue(4)
videoPixelRgba,

/// 8: The format is NV12.
/// @nodoc
@JsonValue(8)
videoPixelNv12,

Expand Down
4 changes: 2 additions & 2 deletions lib/src/agora_media_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract class MediaEngine {
/// Ensure that you call this method before joining a channel.
/// When handling the video data returned in the callbacks, pay attention to the changes in the width and height parameters, which may be adapted under the following circumstances:
/// When network conditions deteriorate, the video resolution decreases incrementally.
/// If the user adjusts the video profile, the resolution of the video returned in the callbacks also changes. After registering the raw video observer, you can use the obtained raw video data in various video pre-processing scenarios, such as implementing virtual backgrounds and image enhacement scenarios by yourself, Agora provides some open source sample projects on GitHub for your reference.
/// If the user adjusts the video profile, the resolution of the video returned in the callbacks also changes.
///
/// * [observer] The observer instance. See VideoFrameObserver.
///
Expand Down Expand Up @@ -232,7 +232,7 @@ abstract class MediaEngine {
/// When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown; and you need to catch the exception and handle it accordingly.
void unregisterVideoFrameObserver(VideoFrameObserver observer);

/// Unregisters a receiver object for the encoded video image.
/// Unregisters a receiver object for the encoded video frame.
///
/// * [observer] The video observer, reporting the reception of each video frame. See VideoEncodedFrameObserver.
///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/agora_media_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ abstract class MediaPlayer {

/// Gets the number of the media streams in the media resource.
///
/// Call this method after calling open.
/// Call this method after you call open and receive the onPlayerSourceStateChanged callback reporting the state playerStateOpenCompleted.
///
/// Returns
/// The number of the media streams in the media resource if the method call succeeds.
Expand Down
Loading
Loading