├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── demo ├── app │ ├── App_Resources │ │ ├── Android │ │ │ ├── drawable-hdpi │ │ │ │ └── icon.png │ │ │ ├── drawable-ldpi │ │ │ │ └── icon.png │ │ │ ├── drawable-mdpi │ │ │ │ └── icon.png │ │ │ └── drawable-nodpi │ │ │ │ └── splashscreen.9.png │ │ └── iOS │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape-568h@2x.png │ │ │ ├── Default-Landscape-667h@2x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ ├── Default@2x.png │ │ │ ├── Icon-Small-50.png │ │ │ ├── Icon-Small-50@2x.png │ │ │ ├── Icon-Small.png │ │ │ ├── Icon-Small@2x.png │ │ │ ├── Info.plist │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-60.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ ├── icon.png │ │ │ ├── icon@2x.png │ │ │ └── sounds │ │ │ ├── daddy.mp3 │ │ │ ├── harder-better-faster.mp3 │ │ │ └── hotline-bling.mp3 │ ├── app.css │ ├── app.ts │ ├── package.json │ ├── player │ │ ├── player-page.ts │ │ ├── player-page.xml │ │ └── player-view-model.ts │ └── recorder │ │ ├── recorder-page.ts │ │ ├── recorder-page.xml │ │ └── recorder-view-model.ts └── package.json ├── docs └── CONTRIBUTING.md ├── ezaudio.ios.ts ├── package.json ├── platforms └── ios │ └── Podfile ├── screenshots ├── 1.png ├── 2.png ├── 3.png └── 4.png ├── src ├── audioplot.ts ├── core.ts ├── player.ts └── recorder.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | *.d.ts 3 | *.js 4 | *.js.map 5 | demo/**/*.js 6 | demo/hooks 7 | demo/lib 8 | demo/platforms/ 9 | demo/node_modules/ 10 | demo/*d.ts 11 | demo/tsconfig.json 12 | node_modules 13 | *.log 14 | !ezaudio.d.ts 15 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | node_modules 3 | demo 4 | docs 5 | screenshots 6 | *.png 7 | *.log 8 | *.ts 9 | !*.d.ts -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | nativescript-ezaudio 4 | Copyright (c) 2016, Nathan Walker 5 | 6 | The iOS (https://github.com/syedhali/EZAudio) library is also licensed by their respective authors under the MIT License. 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 12 | the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 20 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 21 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 22 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![alt text](http://i.imgur.com/ll5q68r.png "EZAudioLogo") 2 | 3 | A NativeScript plugin for the simple, intuitive audio framework for iOS. 4 | [EZAudio](https://github.com/syedhali/EZAudio) 5 | 6 | * [Install](#install) 7 | * [Usage](#usage) 8 | * [Screenshots](#screenshots) 9 | * [TNSEZAudioPlayer](#tnsezaudioplayer) 10 | * [TNSEZRecorder](#tnsezrecorder) 11 | * [UI Components](#ui-components) 12 | * [Why the `TNS` prefixed name?](#why-the-tns-prefixed-name) 13 | * [Try it/Contributing](https://github.com/NathanWalker/nativescript-ezaudio/blob/master/docs/CONTRIBUTING.md) 14 | 15 | # Install 16 | 17 | ``` 18 | npm install nativescript-ezaudio --save 19 | ``` 20 | 21 | # Usage 22 | 23 | **IMPORTANT:** *Make sure you include `xmlns:ez="nativescript-ezaudio"` on the Page element* 24 | 25 | ``` 26 | // main-page.xml 27 | 30 | 31 | 38 |