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

flutter web is in beta now. Is there any plan that this Agora sdk will support flutter web as well? #63

Closed
CoderJerry opened this issue Dec 22, 2019 · 125 comments
Assignees
Labels
enhancement New feature or request

Comments

@CoderJerry
Copy link

No description provided.

@plutoless plutoless added the enhancement New feature or request label Dec 23, 2019
@plutoless

This comment has been minimized.

@CoderJerry

This comment has been minimized.

@CoderJerry

This comment has been minimized.

@plutoless

This comment has been minimized.

@DorNickie

This comment has been minimized.

@xnio94

This comment has been minimized.

@AxesandGrinds

This comment has been minimized.

@AxesandGrinds

This comment has been minimized.

@felipeszu

This comment has been minimized.

@yashharkhani

This comment has been minimized.

@mayurdhurpate

This comment has been minimized.

@plutoless

This comment has been minimized.

@plutoless

This comment has been minimized.

@mayurdhurpate

This comment has been minimized.

@plutoless

This comment has been minimized.

@rgb1380

This comment has been minimized.

@AxesandGrinds

This comment has been minimized.

@wer-mathurin

This comment has been minimized.

@plutoless

This comment has been minimized.

@mayurdhurpate

This comment has been minimized.

@mayurdhurpate

This comment has been minimized.

@plutoless

This comment has been minimized.

@envyram

This comment has been minimized.

@plutoless

This comment has been minimized.

@bogdannedelcu

This comment has been minimized.

@bogdannedelcu

This comment has been minimized.

@oncul
Copy link

oncul commented Jun 28, 2021

@LichKing-2234 i can buy you a dinner :) Can you give priority ?

@LichKing-2234
Copy link
Contributor

@oncul I will check it tomorrow.

@oncul
Copy link

oncul commented Jun 30, 2021

@LichKing-2234 any update ?

@LichKing-2234
Copy link
Contributor

@oncul I have reproduced this issue, still procesing.

@LichKing-2234
Copy link
Contributor

@oncul Seems like a bug from flutter? the MethodChannel can not call succeed on web release mode. You can test it.

@oncul
Copy link

oncul commented Jun 30, 2021

@oncul Seems like a bug from flutter? the MethodChannel can not call succeed on web release mode. You can test it.

I dont have any idea, i cant figure out bug from flutter or agora sdk.

@LichKing-2234
Copy link
Contributor

@oncul I will test other web plugin tomorrow.

@reeteshranjan
Copy link

reeteshranjan commented Jul 1, 2021

@oncul I will test other web plugin tomorrow.

I have been using this plugin on web successfully: https://pub.dev/packages/firebase_messaging. This plugin does have additional JS to be added like in Agora's case to make its web version work; but it does not create this problem seen with Agora's web release build running under a domain. I am able to make firebase_messaging work across my Android, iOS apps and the web version created using Flutter. May be you can look at it and see if it helps you find the solution.

@LichKing-2234
Copy link
Contributor

@reeteshranjan @oncul My mistake. It has been fixed. I forget to add the external constructor.

external _IrisRtcEngine();

@reeteshranjan
Copy link

@reeteshranjan @oncul My mistake. It has been fixed. I forget to add the external constructor.

external _IrisRtcEngine();

I am able to see the example app release build video example work in a domain to the extent of joining and leaving channel and seeing other user in the same channel appear in inset view. Thanks for the work on this issue!

@reeteshranjan
Copy link

@LichKing-2234 the audio does not seem to work on the web release build. I had seen it earlier with debug build as well. I am trying to use the audio channel example itself. I have played with all the controls available in the audio channel example for volume, microphone control, earpiece vs speakerphone etc.; and put 2 browser sessions in 2 different laptops for the same Agora channel name to test the audio channel. Each session uses a different UID and a token created for that UID for the common channel name. But I cannot hear anything said on other session. I have also integrated things in my app, and as earlier, the audio works perfectly fine on Android and iOS but anything spoken on the web version does not get heard on android/ios, and anything spoken on android/ios app does not get heard on web version.

@LichKing-2234
Copy link
Contributor

@reeteshranjan thanks you, I will check and test it.

maybe you can create a new issue to discuss the issues.

@reeteshranjan
Copy link

@reeteshranjan thanks you, I will check and test it.

maybe you can create a new issue to discuss the issues.

Please see #365. Could there be any ETA on this?

@reeteshranjan
Copy link

@LichKing-2234 any updates on the audio related bug? Any ETA?

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Jul 9, 2021

I suggest you use webpack --mode=development to build the AgoraRtcWrapper.js for debugging.
You can refer to the README.

@reeteshranjan
Copy link

@LichKing-2234 please see #376. It's about mirror mode not working on web version using dev/flutter2 but working properly on iOS and Android using the same code.

@reeteshranjan
Copy link

@LichKing-2234 please also see #377. This one is about changing video dimension using setVideoEncoderConfiguration crashing on web while working fine on iOS and Android.

@reeteshranjan
Copy link

Is resolution of #310 going to be in dev/flutter2? If yes, is there any ETA for that, @LichKing-2234 ?

I see a screen share example in dev/flutter2 branch with different code for web and app. I have tried the web version. I see that a view of the screen appears; but it's difficult to understand how the shared screen will be viewed by other user, for web version. The code for web does not even use the screen share UID. So, the overall status of screen share, at least on web, looks not stable.

Please clarify about to what extent and by when the support to screen share will be added in the SDK.

@LichKing-2234
Copy link
Contributor

@reeteshranjan It has been supported, you can checkout the new dev/flutter2 branch.

@reeteshranjan
Copy link

@reeteshranjan It has been supported, you can checkout the new dev/flutter2 branch.

Thanks! Will check.

@tjcampanella
Copy link

I am unable to get the video streaming for web working. I am just trying to join the stream as an audience member on web to a stream coming from my iphone. I keep getting this error Error: PlatformException(error, AgoraRTCError DEVICE_NOT_FOUND: NotFoundError: Requested device not found, null, null). Here is my initialization code. Please lmk if i am doing anything wrong. Thank you.

Future<void> initialize() async {
    await _initRtcEngine();
    _addAgoraEventHandlers();

    String token = await userBloc.getStreamToken(
      apiKey: Util.apiKey,
      channelName: widget.channelName,
      role: "audience",
    );
    
    await engine?.joinChannel(token, widget.channelName, null, 0, null);
  }

  /// Create agora sdk instance and initialize
  Future<void> _initRtcEngine() async {
    engine = await RtcEngine.createWithContext(
      RtcEngineContext(
        Util.agoraID,
      ),
    );

    await engine?.enableVideo();
    await engine?.setChannelProfile(ChannelProfile.LiveBroadcasting);

    ClientRoleOptions options = ClientRoleOptions(
      audienceLatencyLevel: AudienceLatencyLevelType.UltraLowLatency,
    );

    await engine?.setClientRole(ClientRole.Audience, options);
  }

@LichKing-2234
Copy link
Contributor

@tjcampanella I will test your case.

@tjcampanella
Copy link

@LichKing-2234 Have you had a chance to look at this? I believe someone just opened a new issue possibly relating to the same thing on web.

@LichKing-2234
Copy link
Contributor

@tjcampanella I have tested it, it works for me. Could you pls test the latest code on the dev/flutter2 branch?

@AgoraIO-Extensions AgoraIO-Extensions locked as resolved and limited conversation to collaborators Aug 11, 2021
@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Aug 11, 2021

If you have any problem with the Web platform, you can create a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests