Skip to content

[bug] Error disposing #1133

Description

@bdlukaa

Describe the bug

Error when disposing the video.

Unhandled Exception: type 'RTCVideoPlatformViewController' is not a subtype of type 'RTCVideoRenderer?' in type cast
#0      _VideoTrackRendererState._attach.<anonymous closure>.<anonymous closure> (package:livekit_client/src/widgets/video_track_renderer.dart:195:37)
#1      State.setState (package:flutter/src/widgets/framework.dart:1199:30)
#2      _VideoTrackRendererState._attach.<anonymous closure> (package:livekit_client/src/widgets/video_track_renderer.dart:194:9)
#3      RTCVideoPlatformViewController.eventListener (package:flutter_webrtc/src/native/rtc_video_platform_view_controller.dart:133:19)
#4      _RootZone.runUnaryGuarded (dart:async/zone.dart:891:10)
#5      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
#6      _DelayedData.perform (dart:async/stream_impl.dart:573:14)
#7      _PendingEvents.handleNext (dart:async/stream_impl.dart:678:11)
#8      _PendingEvents.schedule.<anonymous closure> (dart:async/strea<…>

Expected behavior

No error thrown.

Platform information

  • Flutter version: Flutter version 3.44.4 on channel stable
  • Plugin version: 2.8.0
  • Flutter target OS: iOS
  • Flutter target OS version: Latest
  • Flutter console log:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions