AlexSheiko / flutter-audio-unit-extension-experiments

I'm trying to make Flutter based Audio Unit Extensions possible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlutterViewController Not Visible in Audio Unit Extensions

Goal

Make it possible to develop Audio Unit Extensions with Flutter.

Problem

Until now we were not able to show a Flutter view controller within an Audio Unit Extensions

Solution

We need support from the Flutter team, to help us to make FlutterViewController work as part of an Audio Unit Extension. Here are the steps to reproduce the issue:

1. Check out and prepare the repository

git clone git@github.com:gatzsche/flutter-audio-unit-extension-experiments.git
cd flutter-audio-unit-extension-experiments/
cd flutter_auv3_unit/
flutter pub get

2. Build and run the plugin container app

  • Open flutter_auv3_unit/ios/Runner.xcworkspace/ with Xcode.

  • Select target Runner

    INL010485.png

  • Run Runner on a chosen simulator

    INL010486.png

3. Build and run the plugin host app

  • Open AUV3Host/AUv3Host/AUv3Host.xcodeproj/ with Xcode

  • Select iOSAUv3Host as target

    INL010487.png

  • Run iOSAUv3Host on the same simulator the plugin container app was executed.

    INL010488.png

4. Debug the audio unit using the plugin host app

  • Switch back to flutter_auv3_unit/ios/Runner.xcworkspace/ Xcode project

  • Select audio unit target FlutterAUV3

    INL010489.png

  • Run the plugin on the same simulator as before

    INL010490.png

  • Select AUv3Host as the app to run

    INL010491.png

  • Within AUv3Host: select the Instruments tab

    INL010492.png

  • Select Flutter Example Audio Unit

    INL010493.png

  • Wait three seconds

  • Click on View

    INL010494.png

5. Here is the bug

  • Normally the Flutter default app should be shown
  • But you see only the red background of the FlutterViewController

6. Hints

  • The commandline output shows that flutter is executed and also the widget tree is built. Probably the rendering does not work properly.

    INL010497.png

About

I'm trying to make Flutter based Audio Unit Extensions possible.

License:MIT License


Languages

Language:Swift 34.7%Language:Objective-C 30.4%Language:C++ 16.2%Language:Objective-C++ 13.3%Language:Dart 2.7%Language:HTML 1.9%Language:Python 0.7%Language:Kotlin 0.1%