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

The argument type 'VideoSourceType' can't be assigned to the parameter type 'RtcConnection' #151

Closed
BobLee-GT opened this issue Aug 4, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@BobLee-GT
Copy link

../../.pub-cache/hosted/pub.dev/agora_uikit-1.3.5/lib/controllers/rtc_event_handlers.dart:66:16: Error: The argument type 'VideoSourceType' can't be assigned to the parameter type 'RtcConnection'.

  • 'VideoSourceType' is from 'package:agora_rtc_engine/src/agora_media_base.dart' ('../../.pub-cache/hosted/pub.dev/agora_rtc_engine-6.2.2/lib/src/agora_media_base.dart').
  • 'RtcConnection' is from 'package:agora_rtc_engine/src/agora_rtc_engine_ex.dart' ('../../.pub-cache/hosted/pub.dev/agora_rtc_engine-6.2.2/lib/src/agora_rtc_engine_ex.dart').
    ?.call(connection, elapsed);
    ^
    ../../.pub-cache/hosted/pub.dev/agora_uikit-1.3.5/lib/controllers/rtc_event_handlers.dart:120:48: Error: The argument type 'VideoSourceType' can't be assigned to the parameter type 'RtcConnection'.
  • 'VideoSourceType' is from 'package:agora_rtc_engine/src/agora_media_base.dart' ('../../.pub-cache/hosted/pub.dev/agora_rtc_engine-6.2.2/lib/src/agora_media_base.dart').
  • 'RtcConnection' is from 'package:agora_rtc_engine/src/agora_rtc_engine_ex.dart' ('../../.pub-cache/hosted/pub.dev/agora_rtc_engine-6.2.2/lib/src/agora_rtc_engine_ex.dart').
    agoraEventHandlers.onLocalVideoStats?.call(connection, stats);
@BobLee-GT BobLee-GT added the bug Something isn't working label Aug 4, 2023
@BobLee-GT
Copy link
Author

I was research from agora document but at the first time I run app it show this error

@Meherdeep
Copy link
Contributor

Thanks for sharing this. We will create a fix for this soon.

@maxxfrazer
Copy link
Contributor

Sorry for the inconvenience @BobLee-GT. Our Flutter SDK had a breaking release in a patch update.

We're working with that team to try align on reserving these updates for minor releases (MAJOR.MINOR.PATCH) going forward.

PR #152 should be merged and published soon to fix your issue

@Meherdeep
Copy link
Contributor

@BobLee-GT Please use the v1.3.6
This should fix the above mentioned error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants