Skip to content

Commit

Permalink
fix: updated the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaspetra committed May 2, 2023
1 parent 2d1dd20 commit 507dfd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/controllers/rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ Future<RtcEngineEventHandler> rtcEngineEventHandler(
}, onFirstLocalAudioFramePublished: (connection, elapsed) {
agoraEventHandlers.onFirstLocalAudioFramePublished
?.call(connection, elapsed);
}, onFirstLocalVideoFrame: (connection, width, height, elapsed) {
}, onFirstLocalVideoFrame: (videoSourceType, width, height, elapsed) {
agoraEventHandlers.onFirstLocalVideoFrame
?.call(connection, width, height, elapsed);
?.call(videoSourceType, width, height, elapsed);
}, onFirstLocalVideoFramePublished: (connection, elapsed) {
agoraEventHandlers.onFirstLocalVideoFramePublished
?.call(connection, elapsed);
Expand Down
2 changes: 1 addition & 1 deletion lib/models/agora_rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class AgoraRtcEventHandlers {
/// * [height] The height (px) of the first local video frame.
/// * [elapsed] Time elapsed (ms) from the local user calling joinChannel [2/2] until the SDK triggers this callback. If you call startPreview before calling joinChannel [2/2], then this parameter is the time elapsed from calling the startPreview method until the SDK triggers this callback.
final void Function(
RtcConnection connection, int width, int height, int elapsed)?
VideoSourceType videoSourceType, int width, int height, int elapsed)?
onFirstLocalVideoFrame;

/// Occurs when the first video frame is published.
Expand Down

0 comments on commit 507dfd0

Please sign in to comment.