forked from edimuj/cordova-plugin-audioinput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
78 lines (62 loc) · 3.01 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-audioinput"
version="0.5.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>Audio Input</name>
<description>This cordova plugin enables audio capture from the device microphone, by in (near) real-time forwarding raw audio data to the web layer of your web application.</description>
<author>Edin Mujkanovic</author>
<license>MIT</license>
<keywords>cordova,phonegap,media,microphone,mic,input,audio,waapi,audionode,web,audio,api,audionode,capture,ios,android</keywords>
<repo>git://github.com/nzilbb/cordova-plugin-audioinput.git</repo>
<!--issue>https://github.com/edimuj/cordova-plugin-audioinput/issues</issue-->
<js-module name="AudioInput" src="www/audioInputCapture.js">
<clobbers target="audioinput" />
</js-module>
<dependency id="cordova-plugin-compat" version="^1.0.0" />
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="AudioInputCapture">
<param name="android-package" value="com.exelerus.cordova.audioinputcapture.AudioInputCapture" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
<source-file src="src/android/AudioInputCapture.java" target-dir="src/com/exelerus/cordova/audioinputcapture" />
<source-file src="src/android/AudioInputReceiver.java" target-dir="src/com/exelerus/cordova/audioinputcapture" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>This app needs microphone access</string>
</config-file>
<config-file parent="/*" target="config.xml">
<feature name="AudioInputCapture">
<param name="ios-package" value="CDVAudioInputCapture" />
</feature>
</config-file>
<source-file src="src/ios/CDVAudioInputCapture.m" />
<source-file src="src/ios/AudioReceiver.h" />
<source-file src="src/ios/AudioReceiver.m" />
<framework src="Accelerate.framework" weak="true" />
<framework src="CoreAudio.framework" weak="true" />
<framework src="AudioToolbox.framework" weak="true" />
<framework src="AVFoundation.framework" weak="true" />
</platform>
<!-- browser -->
<platform name="browser">
<config-file parent="/*" target="config.xml">
<feature name="AudioInputCapture">
<param name="browser-package" value="AudioInputCapture" />
</feature>
</config-file>
<js-module src="src/browser/AudioInputCaptureProxy.js" name="AudioInputCaptureProxy">
<runs />
</js-module>
<asset src="src/browser/RecorderWorker.js" target=".">
<runs />
</asset>
</platform>
</plugin>