- Macos
- JUCE directory in
/Users/<username>/JUCE/
(JUCE VERSION 8.0.2 download) - Xcode
xcodebuild -version
- Cocoapods (
brew install cocoapods
).pod --version
should work. - Gradle (
brew install gradle
)gradle --version
should work.
- open
juce_lib/juce_lib.jucer
using Projucer and hit (command+P to regenerate) or - run
sh setup_clean_projects.sh
- To develop the native code use
ios_app/ios_app.xcodeproj
, (to debug native code)
- run
sh android_juce_lib_build.sh
orios_juce_lib_build.sh
. This will build juce native library and copy output binary to flutter project - run flutter project normally or
- use vscode launch tasks
flutter_app_android
andflutter_app_ios
- The player takes json string input
{
"tracks": [
{
"id_": "music",
"path": "/data/user/0/com.example.flutter_app/app_flutter/assets/media/music_big.mp3"
},
{
"id_": "met_1",
"path": "/data/user/0/com.example.flutter_app/app_flutter/assets/media/met_h.wav",
"offset": 0.0,
"volume": 0.1,
"repeat": true,
"repeatInterval": 2.0
},
{
"id_": "met_2",
"path": "/data/user/0/com.example.flutter_app/app_flutter/assets/media/met_l.wav",
"offset": 0.5,
"volume": 0.1,
"repeat": true,
"repeatInterval": 2.0
},
{
"id_": "met_3",
"path": "/data/user/0/com.example.flutter_app/app_flutter/assets/media/met_l.wav",
"offset": 1.0,
"volume": 0.1,
"repeat": true,
"repeatInterval": 2.0
},
{
"id_": "met_4",
"path": "/data/user/0/com.example.flutter_app/app_flutter/assets/media/met_l.wav",
"offset": 1.5,
"volume": 0.1,
"repeat": true,
"repeatInterval": 2.0
}
]
}
- Check
/flutter_app
or/ios_app
for details
This project is licensed under the MIT License - see the LICENSE file for details.
- email: chan.only.123@gmail.com