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

fix the type mismatch issue while compiling. #178

Merged
merged 8 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
5 changes: 2 additions & 3 deletions lib/controllers/rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ Future<RtcEngineEventHandler> rtcEngineEventHandler(
(connection, remoteUid, streamId, code, missed, cached) {
agoraEventHandlers.onStreamMessageError
?.call(connection, remoteUid, streamId, code, missed, cached);
}, onChannelMediaRelayEvent: (code) {
agoraEventHandlers.onChannelMediaRelayEvent?.call(code);
}, onChannelMediaRelayStateChanged: (state, code) {
},
onChannelMediaRelayStateChanged: (state, code) {
agoraEventHandlers.onChannelMediaRelayStateChanged?.call(state, code);
}, onAudioPublishStateChanged:
(channel, oldState, newState, elapseSinceLastState) {
Expand Down
15 changes: 4 additions & 11 deletions lib/models/agora_rtc_event_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class AgoraRtcEventHandlers {
/// * [state] The state of the local video, see LocalVideoStreamState .
/// * [error] The detailed error information, see LocalVideoStreamError .
final void Function(VideoSourceType source, LocalVideoStreamState state,
LocalVideoStreamError error)? onLocalVideoStateChanged;
LocalVideoStreamReason error)? onLocalVideoStateChanged;

/// Occurs when the remote video stream state changes.
/// This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 17.
Expand Down Expand Up @@ -351,7 +351,7 @@ class AgoraRtcEventHandlers {

/// @nodoc
final void Function(
RhythmPlayerStateType state, RhythmPlayerErrorType errorCode)?
RhythmPlayerStateType state, RhythmPlayerReason errorCode)?
onRhythmPlayerStateChanged;

/// Occurs when the SDK cannot reconnect to Agora's edge server 10 seconds after its connection to the server is interrupted.
Expand Down Expand Up @@ -443,7 +443,7 @@ class AgoraRtcEventHandlers {
/// * [state] The state of the local audio. See localaudiostreamstate .
/// * [error] Local audio state error codes. See LocalAudioStreamError .
final void Function(RtcConnection connection, LocalAudioStreamState state,
LocalAudioStreamError error)? onLocalAudioStateChanged;
LocalAudioStreamReason error)? onLocalAudioStateChanged;

/// Occurs when the remote audio state changes.
/// When the audio state of a remote user (in a voice/video call channel) or host (in a live streaming channel) changes, the SDK triggers this callback to report the current state of the remote audio stream.This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 17.
Expand Down Expand Up @@ -518,7 +518,7 @@ class AgoraRtcEventHandlers {
/// * [state] The current state of the media push. See RtmpStreamPublishState .
/// * [errCode] The detailed error information for the media push. See RtmpStreamPublishErrorType .
final void Function(String url, RtmpStreamPublishState state,
RtmpStreamPublishErrorType errCode)? onRtmpStreamingStateChanged;
RtmpStreamPublishReason errCode)? onRtmpStreamingStateChanged;

/// Reports events during the media push.
///
Expand Down Expand Up @@ -547,12 +547,6 @@ class AgoraRtcEventHandlers {
ChannelMediaRelayState state, ChannelMediaRelayError code)?
onChannelMediaRelayStateChanged;

/// Reports events during the media stream relay.
///
///
/// * [code] The event code of channel media relay. See ChannelMediaRelayEvent .
final void Function(ChannelMediaRelayEvent code)? onChannelMediaRelayEvent;

/// @nodoc
final void Function(bool isFallbackOrRecover)?
onLocalPublishFallbackToAudioOnly;
Expand Down Expand Up @@ -805,7 +799,6 @@ class AgoraRtcEventHandlers {
this.onTranscodingUpdated,
this.onAudioRoutingChanged,
this.onChannelMediaRelayStateChanged,
this.onChannelMediaRelayEvent,
this.onLocalPublishFallbackToAudioOnly,
this.onRemoteSubscribeFallbackToAudioOnly,
this.onRemoteAudioTransportStats,
Expand Down
Loading