-
Notifications
You must be signed in to change notification settings - Fork 17
/
plugin.xml
157 lines (142 loc) · 8.58 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?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.hutchind.cordova.plugins.vitamio"
version="0.0.2">
<name>Vitamio</name>
<description>
This plugin allows you to launch a fullscreen streaming player for audio or video on Android using software decoding via Vitamio.
</description>
<author>Nicholas Hutchind</author>
<license>MIT</license>
<keywords>Streaming, Media, Video, Audio, Android, Vitamio</keywords>
<repo>https://github.com/nchutchind/Vitamio-Cordova-Plugin.git</repo>
<issue>https://github.com/nchutchind/Vitamio-Cordova-Plugin/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/Vitamio.js" name="Vitamio">
<clobbers target="vitamio" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Vitamio">
<param name="android-package" value="com.hutchind.cordova.plugins.vitamio.Vitamio" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:configChanges="orientation|screenSize"
android:name="com.hutchind.cordova.plugins.vitamio.VitamioMedia"
android:label="Vitamio Media" />
<activity
android:name="io.vov.vitamio.activity.InitActivity"
android:configChanges="orientation|keyboardHidden|navigation"
android:launchMode="singleTop"
android:theme="@android:style/Theme.NoTitleBar"
android:windowSoftInputMode="stateAlwaysHidden" />
</config-file>
<config-file target="res/values/colors.xml" parent="/resources">
<color name="transparent">#00000000</color>
<color name="mediacontroller_bg_pressed">#ff53c1bd</color>
<color name="mediacontroller_bg">#99000000</color>
</config-file>
<config-file target="res/values/styles.xml" parent="/resources">
<style name="MediaController_SeekBar" parent="android:Widget.SeekBar">
<item name="android:progressDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:minHeight">13dip</item>
<item name="android:maxHeight">13dip</item>
<item name="android:thumb">@drawable/scrubber_control_selector_holo</item>
<item name="android:thumbOffset">16dip</item>
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
</style>
<style name="MediaController_Text">
<item name="android:textColor">#ffffffff</item>
<item name="android:textSize">14sp</item>
<item name="android:textStyle">bold</item>
</style>
</config-file>
<config-file target="res/values/strings.xml" parent="/resources">
<string name="vitamio_library_app_name">VitamioLibrary</string>
<string name="vitamio_init_decoders">Initializing decoders…</string>
<string name="permission_group_tools_label">Vitamio tools</string>
<string name="permission_group_tools_description">Access Vitamio package and resources.</string>
<string name="permission_receive_messages_label">Receive Vitamio messages</string>
<string name="permission_receive_messages_description">Receive all broadcasts from Vitamio service.</string>
<string name="permission_write_providers_label">Write Vitamio providers</string>
<string name="permission_write_providers_description">Delete, update or create new items in Vitamio providers.</string>
<string name="VideoView_error_title">Cannot play video</string>
<string name="VideoView_error_text_invalid_progressive_playback">Sorry, this video is not valid for streaming to this device.</string>
<string name="VideoView_error_text_unknown">Sorry, this video cannot be played.</string>
<string name="VideoView_error_button">OK</string>
<string name="mediacontroller_play_pause">Play/Pause</string>
</config-file>
<source-file src="src/android/Vitamio.java" target-dir="src/com/hutchind/cordova/plugins/vitamio" />
<source-file src="src/android/VitamioMedia.java" target-dir="src/com/hutchind/cordova/plugins/vitamio" />
<source-file src="src/android/ImageLoadTask.java" target-dir="src/com/hutchind/cordova/plugins/vitamio" />
<source-file src="src/android/ImageLoadTaskListener.java" target-dir="src/com/hutchind/cordova/plugins/vitamio" />
<source-file src="src/android/libs/vitamio.jar" target-dir="libs" />
<source-file src="src/android/libs/armeabi/libvinit.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/armeabi-v7a/libvinit.so" target-dir="libs/armeabi-v7a" />
<source-file src="src/android/libs/x86/libvinit.so" target-dir="libs/x86" />
<source-file src="src/android/res/raw/libarm.so" target-dir="res/raw" />
<source-file src="src/android/res/drawable/mediacontroller_pause.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/mediacontroller_play.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_control_disabled_holo.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_control_focused_holo.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_control_normal_holo.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_control_pressed_holo.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_control_selector_holo.xml" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_primary_holo.9.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_progress_horizontal_holo_dark.xml" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_secondary_holo.9.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/scrubber_track_holo_dark.9.png" target-dir="res/drawable" />
<info>
<![CDATA[
You may need to make the following changes yourself. These files also exist in the GitHub repo at src/android/res/values/
In res/values/colors.xml, add the following lines inside the <resources> node:
<color name="transparent">#00000000</color>
<color name="mediacontroller_bg_pressed">#ff53c1bd</color>
<color name="mediacontroller_bg">#99000000</color>
In res/values/styles.xml, add the following lines inside the <resources> node:
<style name="MediaController_SeekBar" parent="android:Widget.SeekBar">
<item name="android:progressDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:indeterminateDrawable">@drawable/scrubber_progress_horizontal_holo_dark</item>
<item name="android:minHeight">13dip</item>
<item name="android:maxHeight">13dip</item>
<item name="android:thumb">@drawable/scrubber_control_selector_holo</item>
<item name="android:thumbOffset">16dip</item>
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
</style>
<style name="MediaController_Text">
<item name="android:textColor">#ffffffff</item>
<item name="android:textSize">14sp</item>
<item name="android:textStyle">bold</item>
</style>
In res/values/strings.xml, add the following lines inside the <resources> node:
<string name="vitamio_library_app_name">VitamioLibrary</string>
<string name="vitamio_init_decoders">Initializing decoders…</string>
<string name="permission_group_tools_label">Vitamio tools</string>
<string name="permission_group_tools_description">Access Vitamio package and resources.</string>
<string name="permission_receive_messages_label">Receive Vitamio messages</string>
<string name="permission_receive_messages_description">Receive all broadcasts from Vitamio service.</string>
<string name="permission_write_providers_label">Write Vitamio providers</string>
<string name="permission_write_providers_description">Delete, update or create new items in Vitamio providers.</string>
<string name="VideoView_error_title">Cannot play video</string>
<string name="VideoView_error_text_invalid_progressive_playback">Sorry, this video is not valid for streaming to this device.</string>
<string name="VideoView_error_text_unknown">Sorry, this video cannot be played.</string>
<string name="VideoView_error_button">OK</string>
<string name="mediacontroller_play_pause">Play/Pause</string>
]]>
</info>
</platform>
</plugin>