Coder Social home page Coder Social logo

ion-app-flutter's People

Contributors

adwpc avatar cgojin avatar cloudwebrtc avatar johannes0horn avatar kangshaojun avatar renovate-bot avatar renovate[bot] avatar tarrencev avatar tomsun avatar vedartm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ion-app-flutter's Issues

sharing screen bug

Your environment.

  • Version: Release or SHA
  • Browser: include version
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

What did you do?

What did you expect?

What happened?

Flashbacks occur in the second time the screen is Shared, and it appears that the first time the resource is not fully released

Why I can't get remote video, always "waiting for others to join".

Can't get remote video

After "flutter run", I can't get remote video, always "waiting for others to join", but can get remote stream-ID.

  1. I have started every service, like sfu, biz and so on.
  2. Peer also can't get my video, his camera is open.
  3. My camera is open too, and I can see my own video.

What's wrong? I can't firgure it out. Please help!

Can't connect to pion/ion server

Your environment.

  • Version: master latest branch
  • Browser: Chrome 94.0.4606.54 (Official Build) (64-bit)
  • Other Information - pion/ion also is latest master which deployed on the public network server, I also enable cert and key values in signal.toml

What did you expect?

Connect to ion server by using ion-app-flutter.
Maybe Certificate or key should been added in a file?

Cannot run VP9 in ios

i try to use VP9 in ios but cannot use subscribe or publish in your app (VP8 is normal)

I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element

Your environment.

  • Package Version: 0.4.4
  • System: Android
  • Android Version : Android 10 (API 29) & Android 11 (API 30)

What did you do?

I wanted to only run this application with audio and not with video, so I changes the _localStream from

_localStream = await LocalStream.getUserMedia(
              constraints: Constraints.defaults
                ..simulcast = false
                ..resolution = resolution
                ..codec = codec);

to

_localStream = await LocalStream.getUserMedia(
              constraints: Constraints(
            audio: true,
            video: false,
            codec: codec,
          ));

but this isn't working.
And it's showing me this error:

I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element

Also, I've made some changes in the code based on this like in ion?.onTrack function

track.kind=='audio' 

rather than

track.kind=='video'

What did you expect?

I expected a black screen instead of video stream (which was there) and the audio stream to work fine (but it did not).

What happened?

Instead it didn't stream any audio and showing me this:

I/org.webrtc.Logging(20179): EglRenderer: Duration: 4009 ms. Frames received: 0. Dropped: 0. Rendered: 0. Render fps: .0. Average render time: NA. Average swapBuffer time: NA.
D/FlutterWebRTCPlugin(20179): onConnectionChangeCONNECTED
I/org.webrtc.Logging(20179): NetworkMonitorAutoDetect: capabilities changed: [ Transports: WIFI Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=49500Kbps LinkDnBandwidth>=49500Kbps SignalStrength: -61 AdministratorUids: [] RequestorUid: -1 RequestorPackageName: null]
I/org.webrtc.Logging(20179): EglRenderer: Duration: 4009 ms. Frames received: 0. Dropped: 0. Rendered: 0. Render fps: .0. Average render time: NA. Average swapBuffer time: NA.

and also,

I/flutter (13346): [ion-sdk-flutter] ERROR: onnegotiationneeded: e => Bad state: No element

Performance needs to be optimized

Your environment.

  • Version: Release or SHA
  • Browser: include version
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

What did you do?

What did you expect?

What happened?

iPhone's performance is poor after multi-person video conferencing. and it just broke down in about eight people meeting

videoencoder: encoder queue full

Your environment.

  • Version: Release or SHA
  • Browser: include version
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

What did you do?

What did you expect?

What happened?

opening both video and screen sharing can error. no video

Cant join server

I ran the app normally, following instructions.

When i join a room the following error is output (spaced for easier reading):

`I/flutter ( 8141): [protoo-client] DEBUG: connecting to WebSocket https://pionion.org:8443/ws?peer=ade21d34-6a36-4cdb-b4a6-62d0c448f962

I/flutter ( 8141): [Logger::Dart::WebSocket] DEBUG: connect https://pionion.org:8443/ws?peer=ade21d34-6a36-4cdb-b4a6-62d0c448f962, {}, null

I/flutter ( 8141): [Logger::Dart::WebSocket] ERROR: error HandshakeException: Handshake error in client (OS Error:

I/flutter ( 8141): WRONG_VERSION_NUMBER(tls_record.cc:242))

I/flutter ( 8141): [protoo-client] DEBUG: emit "error" [currentAttempt:NoSuchMethodError: The getter 'closeCode' was called on null.

I/flutter ( 8141): Receiver: null

I/flutter ( 8141): Tried calling: closeCode]`

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • ubuntu 20.04
pub
pubspec.yaml
  • flutter no version found
  • cupertino_icons ^1.0.0
  • flutter_ion ^1.0.0
  • shared_preferences ^2.0.5
  • date_format ^2.0.2
  • quiver ^3.0.0
  • community_material_icon ^5.9.55
  • get ^4.3.8
  • get_storage ^2.0.2
  • responsive_builder ^0.4.1
  • flutter_test no version found

  • Check this box to trigger a request for Renovate to run again on this repository

meeting_page.dart : Error: Method not found

lib/page/meeting_page.dart:358:36: Error: Method not found: 'MaterialCommunityIcons.getIconData'.
MaterialCommunityIcons.getIconData(
^^^^^^^^^^^
lib/page/meeting_page.dart:376:36: Error: Method not found: 'MaterialCommunityIcons.getIconData'.
MaterialCommunityIcons.getIconData("video-switch"),
^^^^^^^^^^^
lib/page/meeting_page.dart:393:36: Error: Method not found: 'MaterialCommunityIcons.getIconData'.
MaterialCommunityIcons.getIconData(
^^^^^^^^^^^
lib/page/meeting_page.dart:411:27: Error: Method not found: 'MaterialIcons.getIconData'.
MaterialIcons.getIconData(
^^^^^^^^^^^
lib/page/meeting_page.dart:429:36: Error: Method not found: 'MaterialCommunityIcons.getIconData'.
MaterialCommunityIcons.getIconData("phone-hangup"),
^^^^^^^^^^^

fail to create project with create command

Your environment.

  • Version: Release or SHA
  • Browser: include version
  • Other Information - failed to create the ios project with the "create" command

What did you do?

the error like following:
IOError: [Errno 2] No such file or directory: '../ios/Runner/Info.plist'
Traceback (most recent call last):

What did you expect?

it need to create the info.plist file by myself? thanks

What happened?

some question about echo

I test it between android with web

What did you expect?

when web and web, voice works good no echo
web and android, voice works good no echo

What happened?

web and web test good
web and android has Very serious echo
do some configuration in android can reduse it?
thanks

project_tools.sh broken on MacOs

Explained in detail

I can submit a patch, but wanted to discuss the appropriate way. I suggest changing project_tools.sh to use python3, and checking for its existence, then changing add-line.py to print(...) instead of print.

Obviously there is more than one way to do things, but this seems to be the approach of least surprise and doesn't encourage users to install EOL software.

Thoughts?

stream not being published on iOS

Your environment.

What did you do?

I deployed the following versions:

  • ion 42777ea
  • ion-app-web d89c95f
  • ion-app-flutter cb73697 (on iOS 14.7.1)

I open the ion-app-web and join the same room from different browsers (chrome, firefox) under different operating systems (android, windows 10 64bits)
I launch the ion-app-flutter on iOS and join the same room

What did you expect?

to see every participant's stream on each device

What happened?

nobody can see iOS stream, but they can see iOS join and leave the room.

Possible Fix:

downgrade ion-app-flutter dependencies
from flutter_ion 0.5.4 to 0.5.3

this makes it work as expected, there seems to be a bug on flutter_ion 0.5.4 under iOS or something.

Specs satisfying the `flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)` dependency were found, but they required a higher minimum deployment target.

Your environment.

➜ ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.19.0-3.0.pre, on Mac OS X 10.15.5 19F96, locale zh-Hans-CN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.45.1)
[✓] Connected device (4 available)

! Doctor found issues in 2 categories.

What did you do?

What did you expect?

What happened?

Launching lib/main.dart on jinzhu的iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 86R4V3XFLU
Running pod install... 1.0s
CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `flutter_webrtc` from `.symlinks/plugins/flutter_webrtc/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `shared_preferences_macos` from `.symlinks/plugins/shared_preferences_macos/ios`
-> Fetching podspec for `shared_preferences_web` from `.symlinks/plugins/shared_preferences_web/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "flutter_webrtc":
  In Podfile:
    flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)

Specs satisfying the `flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)` dependency were found, but they
required a higher minimum deployment target.

/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in
`raise_error_unless_state'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in
unwind_for_conflict'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in
`unwind_for_conflict'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in
`attempt_to_activate'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in
`process_topmost_state'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/resolver.rb:94:in `resolve'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1065:in

Uncomment this line to define a global platform for your project

`block in resolve_dependencies'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1063:in
`resolve_dependencies'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:124:in
`analyze'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:410:in `analyze'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:235:in `block in
resolve_dependencies'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:234:in
`resolve_dependencies'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:156:in `install!'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/Users/mac/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/Users/mac/.rvm/rubies/ruby-2.6.3/bin/pod:23:in `load'
/Users/mac/.rvm/rubies/ruby-2.6.3/bin/pod:23:in `<main>'
/Users/mac/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
/Users/mac/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'

Exception: Error running pod install

Flutter Web Unexpected Null Error on RTCVideoRenderer stream.

Your environment.

  • Version: 0.5.3
  • Browser: Chrome Version 92.0.4515.131 (Official Build) (64-bit)
  • Other Information -
"Error: Unexpected null value.
   at Object.throw_ [as throw] (http://localhost:44309/dart_sdk.js:5061:11)
   at Object.nullCheck (http://localhost:44309/dart_sdk.js:5388:30)
   at rtc_video_renderer_impl.RTCVideoRendererWeb.new.findHtmlView (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:752:24)
   at rtc_video_renderer_impl.RTCVideoRendererWeb.new.set srcObject [as srcObject] (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:729:19)
   at rtc_video_renderer.RTCVideoRenderer.new.set srcObject [as srcObject] (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:368:40)
   at ion$.Participant._internal.setupSrcObject (http://localhost:44309/packages/flutter_ion_conference/screens/chat_screen.dart.lib.js:1121:44)
   at setupSrcObject.next (<anonymous>)
   at http://localhost:44309/dart_sdk.js:38640:33
   at _RootZone.runUnary (http://localhost:44309/dart_sdk.js:38511:59)
   at _FutureListener.thenAwait.handleValue (http://localhost:44309/dart_sdk.js:33713:29)
   at handleValueCallback (http://localhost:44309/dart_sdk.js:34265:49)
   at Function._propagateToListeners (http://localhost:44309/dart_sdk.js:34303:17)
   at _Future.new.[_completeWithValue] (http://localhost:44309/dart_sdk.js:34151:23)
   at async._AsyncCallbackEntry.new.callback (http://localhost:44309/dart_sdk.js:34172:35)
   at Object._microtaskLoop (http://localhost:44309/dart_sdk.js:38778:13)
   at _startMicrotaskLoop (http://localhost:44309/dart_sdk.js:38784:13)
   at http://localhost:44309/dart_sdk.js:34519:9"

What did you do?

Run the ion app on flutter web. The app is working when I run it on macos and mobile devices. It crashes when I use web. This problem only appears when a second device join the room, and the error only occurs in flutter web.

Probably related to flutter-webrtc/flutter-webrtc#622

Building as Flutter build apk --release

to replicate just
use this repo then run "Flutter build apk --release"

in debug it is working properly
but when I tried it building it to release

the app wont run at all.
is there additional configuration for released apps?

Unhandled Exception: type 'Null' is not a subtype of type 'String'

Your environment.

  • Version: ion-sdk-flutter v0.4.4, ion v1.9.0

What did you do?

Run ion-app-flutter

What happened?

Got this error after connected to room
E/flutter (16274): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
E/flutter (16274): #0 new RTCRtpTransceiverNative.fromMap (package:flutter_webrtc/src/native/rtc_rtp_transceiver_impl.dart:72:12)
E/flutter (16274): #1 RTCPeerConnectionNative.addTransceiver (package:flutter_webrtc/src/native/rtc_peerconnection_impl.dart:516:38)
E/flutter (16274):
E/flutter (16274): #2 LocalStream.publishTrack (package:flutter_ion/src/stream.dart:237:27)
E/flutter (16274):

Cannot run on MAC

Your environment.

os: macos mojave 10.14.5

What did you do?

lvzx% flutter run -d macos

What did you expect?

It works on a MAC

What happened?

lvzx% flutter run -d macos
Flutter assets will be downloaded from http://mirrors.cnnic.cn/flutter. Make sure you trust this source!
Downloading darwin-x64/FlutterMacOS.framework tools... 12.8s
Downloading darwin-x64-profile/FlutterMacOS.framework tools... 3.9s
Downloading darwin-x64-profile tools... 5.4s
Downloading darwin-x64-release/FlutterMacOS.framework tools... 4.1s
Downloading darwin-x64-release tools... 4.1s
Launching lib/main.dart on macOS in debug mode...
Running pod install... 29.1s
CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Fetching external sources
-> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral/.symlinks/flutter/darwin-x64`
-> Fetching podspec for `flutter_webrtc` from `Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos`
-> Fetching podspec for `shared_preferences` from `Flutter/ephemeral/.symlinks/plugins/shared_preferences/macos`
-> Fetching podspec for `shared_preferences_macos` from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update

Comparing resolved specification to the sandbox manifest
  A FlutterMacOS
  A flutter_webrtc
  A shared_preferences
  A shared_preferences_macos

Downloading dependencies

-> Installing FlutterMacOS (1.0.0)

-> Installing flutter_webrtc (0.2.2)

-> Installing shared_preferences (0.0.1)

-> Installing shared_preferences_macos (0.0.1)
  - Running pre install hooks

Generating Pods project
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod install --verbose
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 1.8.4
        Ruby : ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-darwin14.0.0]
    RubyGems : 2.4.7
        Host : Mac OS X 10.14.5 (18F132)
       Xcode : 11.3 (11C29)
         Git : git version 2.21.0
Ruby lib dir : /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib
Repositories : master-1 - git - https://github.com/CocoaPods/Specs.git @ 22d361b5e8e5029a14bae04b1258a083ae494885
               trunk - CDN - https://cdn.cocoapods.org/
```

### Plugins

```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0
```

### Podfile

```ruby
platform :osx, '10.11'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

def pubspec_supports_macos(file)
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return false;
  end
  File.foreach(file_abs_path) { |line|
    return true if line =~ /^\s*macos:/
  }
  return false
end

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  ephemeral_dir = File.join('Flutter', 'ephemeral')
  symlink_dir = File.join(ephemeral_dir, '.symlinks')
  symlink_plugins_dir = File.join(symlink_dir, 'plugins')
  system("rm -rf #{symlink_dir}")
  system("mkdir -p #{symlink_plugins_dir}")

  # Flutter Pods
  generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig'))
  if generated_xcconfig.empty?
    puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcconfig.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join(symlink_dir, 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join(symlink_plugins_dir, p[:name])
    File.symlink(p[:path], symlink)
    if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml'))
      pod p[:name], :path => File.join(symlink, 'macos')
    end
  }
end

# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
install! 'cocoapods', :disable_input_output_paths => true
```

### Error

```
LoadError - library not found for class Digest::SHA256 -- digest/sha2.so
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/digest.rb:12:in `const_missing'
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/digest.rb:87:in `const_get'
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/digest.rb:87:in `Digest'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/project.rb:47:in `initialize'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in `new'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:82:in
`create_project'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/project_generator.rb:73:in
`generate!'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:16:in `generate!'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:308:in `block in create_and_save_projects'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:303:in `create_and_save_projects'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:294:in `generate_pods_project'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:173:in `integrate'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:162:in `install!'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:in `load'
/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:in `<main>'
```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=library+not+found+for+class+Digest%3A%3ASHA256+--+digest%2Fsha2.so&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

Error output from CocoaPods:

/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require': dlopen(/Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle Reason: image not found - /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/x86_64-darwin14.0.0/openssl.bundle from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in require'
from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/openssl.rb:17:in <top (required)>' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:890:in connect'
from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:862:in do_start' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:851:in start'
from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/net/http.rb:1367:in request' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:84:in get_api_results'
from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/sidekick.rb:28:in search' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:68:in search_query'
from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/gh_inspector-1.1.3/lib/gh_inspector/inspector.rb:62:in search_exception' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/user_interface/error_report.rb:119:in search_for_exceptions'
from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:67:in report_error' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:396:in handle_exception'
from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:337:in rescue in run' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/claide-1.0.3/lib/claide/command.rb:325:in run'
from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in run' from /Users/lvzx/.rvm/gems/ruby-2.0.0-p598@global/gems/cocoapods-1.8.4/bin/pod:55:in <top (required)>'
from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:in load' from /Users/lvzx/.rvm/rubies/ruby-2.0.0-p598/bin/pod:23:in

'

Exception: Error running pod install

Flutter Web - Uncaught TypeError: func.call$1 is not a functi

When connecting and on subsequent client connections, the web app throws an uncaught type error. Chrome points to zone.dart line 1175, firefox does the same but points to client.dart line 487.

Your environment.

  • Version: 6512fef
  • Browser: issue persists

What did you do?

flutter create .
flutter build web --release
host it

Chrome

Uncaught TypeError: func.call$1 is not a function
    at Client.callback$7 (event_emitter.dart:29)
    at EventEmitter_emit_closure.call$1 (event_emitter.dart:64)
    at Interceptor.forEach$1 (js_array.dart:257)
    at Object.forEach$1$ax (main.dart.js:7204)
    at Client.emit$5 (event_emitter.dart:63)
    at Client._handleNotification$1 (client.dart:506)
    at Object.eval (eval at Closure_forwardCallTo (js_helper.dart:2182), <anonymous>:3:41)
    at Peer.callback$7 (event_emitter.dart:29)
    at EventEmitter_emit_closure.call$1 (event_emitter.dart:64)
    at Interceptor.forEach$1 (js_array.dart:257)

Firefox:

Uncaught Error: undefined
    wrapException js_helper.dart:1129
    firstWhere$2$orElse js_array.dart:327
    firstWhere$1 main.dart.js:40658
    2 meeting_page.dart:64
    protected main.dart.js:7440
    call$2 async_patch.dart:340
    _asyncStartSync async_patch.dart:245
    call$2 meeting_page.dart:64
    callback$7 event_emitter.dart:32
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$3 main.dart.js:53619
    _handleNotification$1 client.dart:514
    anonymous main.dart.js line 4671 > Function:3
    callback$7 event_emitter.dart:29
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$2 main.dart.js:53613
    call$1 peer.dart:120
    callback$7 event_emitter.dart:29
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$2 main.dart.js:53613
    call$1 main.dart.js:102223
    1 websocket_web_impl.dart:36
    protected main.dart.js:7440
    call$2 async_patch.dart:340
    _asyncStartSync async_patch.dart:245
    $call$body$WebSocketImpl_connect_closure websocket_web_impl.dart:30
    call$1 websocket_web_impl.dart:30
    call$1 html_dart2js.dart:37188
    invokeClosure js_helper.dart:1825
    function main.dart.js:4533

What did you expect?

I expected it to join the room and conferencing to work.

What happened?

Client joins but hangs at waiting for others to join. You can see your own camera and hear your own audio, but you cannot hear any other participants as they never show joined to the room. The SFU logs indicate multiple peers are connected, and publishing.

image

APK not running "flutter build apk --release"

to replicate just
use this repo then run "Flutter build apk --release"

in debug it is working properly
but when I tried it building it to release

the app wont run at all.
is there additional configuration for released apps?

[√] Flutter (Channel master, 1.19.0-2.0.pre, on Microsoft Windows [Version 10.0.17763.1217], locale en-US)
• Flutter version 1.19.0-2.0.pre at C:\flutter
• Framework revision 721927efd3 (4 weeks ago), 2020-05-21 17:52:02 -0700
• Engine revision 9ce1e5c5c7
• Dart version 2.9.0 (build 2.9.0-10.0.dev 7706afbcf5)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\Eleo\AppData\Local\Android\sdk
• Platform android-R, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.45.1)
• VS Code at C:\Users\Eleo\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.11.0

[√] Connected device (3 available)
• SM G988B • R5CN20CC82P • android-arm64 • Android 10 (API 29)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 83.0.4103.106

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.