Believe it or not we've actually done most of the heavy lifting to make this work on Android already! That's the beauty of NativeScript. Designing an API that makes sense, as well as an architecture that can plug/play underlying native APIs, is key to NativeScript development. At this point, we just need to plug in the Android pieces into the shape we have designed. So, to summarize, we now have the following:
RecorderServicethat works in tandem with
PlayerServiceto coordinate our multitrack handling abilities
- A Waveform view that is flexible and ready to provide an Android implementation under the hood
RecordModelthat should tap into the appropriate underlying target platform APIs and be ready for Android details to be plugged into
- Built interfaces defining the shape of the model, for Android models to simply implement to know which API they should define
Let's get to work.
We want to rename
record.model.ios.ts, since it's...