-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[WIP] Flutter Web (WIP, don't merge) #120
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
Conversation
@cloudwebrtc As you can see, there is some code duplication |
Note: in every file you can see imports: // ignore: uri_does_not_exist
import 'dart:html' as HTML;
// ignore: uri_does_not_exist
import 'dart:js' as JS; This is required to force Dart Analyzer to shut up |
Yes, this is a good idea. |
lib/web/rtc_video_view.dart
Outdated
initialize() async { | ||
if (!_isViewFactoryRegistered) { | ||
// ignore: implementation_imports | ||
ui.platformViewRegistry.registerViewFactory('webrtc_video', (int viewId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dart Analyzer will yell on this, just ignore it
@rostopira Great, just now, I tried the branch and getUserMedia works fine. |
@cloudwebrtc For now I can't get multiple videos, video needs additional |
I tried to debug it, but vscode doesn't seem to be able to debug the flutter web project, I will try again on the weekend. |
71d1ee9
to
a07b46c
Compare
@rostopira I have modified getDisplayMedia to get the screen object, but I get it to JsObject. I haven't found a way to convert this JsObject to MediaStream. Because it is stored in a private variable. |
|
a6afdbf
to
d4e172f
Compare
Switch camera in Chrome will trigger SDP re-negotiation, I have not found a better way. :( |
…em settings on Linux (flutter-webrtc#120) Co-authored-by: alexlapa <lapa.alex@ex.ua>
Adds support for Flutter Web
Linked issue #85