8000 [iOS] Not found video track for RTCMediaStream: {streamId} error when using Unified-Plan `onTrack` and videos don't render. · Issue #403 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content
[iOS] Not found video track for RTCMediaStream: {streamId} error when using Unified-Plan onTrack and videos don't render. #403
Closed
@Ayman-Kortobaa

Description

@Ayman-Kortobaa

Describe the bug
Using onTrack of PeerConnection results in a Not found video track for RTCMediaStream: {streamId} error in the console and videos not being rendered in UI.

To Reproduce

peerConnection.onTrack = (event) async {
        final stream = event.streams.first;
        final track = event.track;
        if (track.kind == 'video') {
            final remoteRenderer = RTCVideoRenderer();
            await remoteRenderer.initialize();
            remoteRenderer.srcObject = stream;
            _remoteRenderers.putIfAbsent(stream.id, () => remoteRenderer);
          }
    };

Expected behavior
The error should not be thrown as there are video tracks and they should renderer normally.

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