Skip to content

gatzsche/flutter-audio-unit-extension-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published