8000 [Web] 0.14 Build fails on Web · Issue #1837 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content
[Web] 0.14 Build fails on Web #1837
Open
@rokk4

Description

@rokk4

Describe the bug
With 0.14 the web build fails with:

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
../../.pub-cache/hosted/pub.dev/flutter_webrtc-0.14.0/lib/src/web/rtc_video_renderer_impl.dart:34:7:
Error: The non-abstract class 'RTCVideoRenderer' is missing implementations for these members:
 - VideoRenderer.videoValue
class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
      ^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/webrtc_interface-1.2.3/lib/src/rtc_video_renderer.dart:57:21:
Info: 'VideoRenderer.videoValue' is defined here.
  RTCVideoValue get videoValue => RTCVideoValue();
                    ^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/flutter_webrtc-0.14.0/lib/src/native/rtc_video_platform_view_controller.dart:11:7:
Error: The non-abstract class 'RTCVideoPlatformViewController' is missing implementations for these members:
 - VideoRenderer.videoValue
class RTCVideoPlatformViewController extends ValueNotifier<RTCVideoValue>
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/webrtc_interface-1.2.3/lib/src/rtc_video_renderer.dart:57:21:
Info: 'VideoRenderer.videoValue' is defined here.
  RTCVideoValue get videoValue => RTCVideoValue();
                    ^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/flutter_webrtc-0.14.0/lib/src/media_recorder.dart:32:10:
Error: The method 'MediaRecorder.stop' has fewer named arguments than those of overridden method 'MediaRecorder.stop'.
  Future stop() => _delegate.stop();
         ^
../../.pub-cache/hosted/pub.dev/webrtc_interface-1.2.3/lib/src/media_recorder.dart:23:19:
Info: This is the overridden method ('stop').
  Future<dynamic> stop({String? albumName});
                  ^
../../.pub-cache/hosted/pub.dev/flutter_webrtc-0.14.0/lib/src/native/media_recorder_impl.dart:49:19:
Error: The method 'MediaRecorderNative.stop' has fewer named arguments than those of overridden method 'MediaRecorder.stop'.
  Future<dynamic> stop() async {
                  ^
../../.pub-cache/hosted/pub.dev/webrtc_interface-1.2.3/lib/src/media_recorder.dart:23:19:
Info: This is the overridden method ('stop').
  Future<dynamic> stop({String? albumName});


To Reproduce
Try to build web.
Expected behavior
Web build works.
Platform information

  • Flutter version:
 x fvm flutter doctor -v                                                                                                                             
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.3.2 24D81 darwin-arm64, locale en-US) [1,139ms]
    • Flutter version 3.29.3 on channel stable at [REDACTED]/versions/3.29.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (5 weeks ago), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.3s]
    • Android SDK at [REDACTED]
    • Platform android-35, build-tools 35.0.1
    • ANDROID_HOME = [REDACTED]
    • Java binary at:  [REDACTED]
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Homebrew (build 17.0.15+0)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,695ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [31ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) [30ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.1.1) [28ms]
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.100.1) [10ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.111.20250501

[✓] VS Code (version 1.96.0-insider) [9ms]
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available) [5.9s]
[REDACTED]

[✓] Network resources [233ms]
    • All expected network resources are available.
  • Plugin version: 0.14.0
  • OS: Web build on MacOS XCode 16.3
  • OS version: Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0