Skip to content

Cannot push video frames on Flutter Web #2389

@katherineqian

Description

@katherineqian

Version of the agora_rtc_engine

6.5.2

Platforms affected

  • Android
  • iOS
  • macOS
  • Windows
  • Web

Steps to reproduce

  1. Call setExternalVideoSource( enabled: true, useTexture: false) on the MediaEngine.
  2. Call pushVideoFrame from MediaEngine and push a test frame.
  3. Observe that log appears to indicate the frame was successfully pushed with ret 0:
    [Iris log]:[callIrisApiAsync][result] MediaEngine_pushVideoFrame_4e544e2 ret 0
  4. Observe that Agora Analytics Call Inspector (web dashboard) shows no Video Sending activity for the call.

I am seeing that both createCustomVideoTrack and destroyCustomVideoTrack show Iris warnings that they are not supported on Flutter Web.

Is it still possible to work around this and publish a custom video source to Agora on Flutter Web, given that pushVideoFrame appears to be supported?

Expected results

We need to push a custom audio and video source (an HTML MediaStream) to Agora. Expected result is that the external video can be pushed to Agora.

Actual results

Custom video source cannot be published to Agora despite being described in the docs for Video SDK v6.5.2 for Flutter.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.4.1 23E224 darwin-arm64, locale en-US)
    • Flutter version 3.22.2 on channel stable at /Users/u/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (1 year, 1 month ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

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

[✓] VS Code (version 1.100.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0

[✓] Connected device (2 available)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 138.0.7204.101

[✓] Network resources
    • All expected network resources are available.

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