-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.xml
58 lines (43 loc) · 1.85 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.ademc.plugins.bg-player"
version="1.0.0">
<name>BgPlayer</name>
<description>
This plugin allows you to play background audio.
Media player plays audio or video (only sound) files even your application goes to background.
</description>
<author>AdemC</author>
<license>MIT</license>
<keywords>android, player, media player, background, sound</keywords>
<repo>https://github.com/ademc/bg-player.git</repo>
<issue>https://github.com/ademc/bg-player/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<js-module src="www/BgPlayer.js" name="BgPlayer">
<clobbers target="window.plugins.BgPlayer" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BgPlayer">
<param name="android-package" value="com.ademc.plugins.BgPlayer" />
</feature>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<preference name="KeepRunning" value="true" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!--
* Puts the service in a foreground state, where the system considers
* it to be something the user is actively aware of and thus not a
* candidate for killing when low on memory.
-->
<service android:name="com.ademc.plugins.PlayerService" />
</config-file>
<source-file src="src/com/ademc/plugins/BgPlayer.java" target-dir="src/com/ademc/plugins"/>
<source-file src="src/com/ademc/plugins/PlayerService.java" target-dir="src/com/ademc/plugins"/>
</platform>
</plugin>