cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/3] git commit: added Ubuntu support
Date Tue, 03 Dec 2013 00:21:25 GMT
added Ubuntu support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/683a7562
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/683a7562
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/683a7562

Branch: refs/heads/dev
Commit: 683a7562c3710e5c8ff0ab63d99fd5481a909889
Parents: 814881a a05deff
Author: Steven Gill <stevengill97@gmail.com>
Authored: Mon Dec 2 16:21:16 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Mon Dec 2 16:21:16 2013 -0800

----------------------------------------------------------------------
 plugin.xml           |  12 +++
 src/ubuntu/media.cpp | 128 ++++++++++++++++++++++
 src/ubuntu/media.h   | 267 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 407 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/683a7562/plugin.xml
----------------------------------------------------------------------
diff --cc plugin.xml
index 259e4bf,43ef31b..041ef80
--- a/plugin.xml
+++ b/plugin.xml
@@@ -38,26 -36,18 +38,38 @@@ id="org.apache.cordova.media
          <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media"
/>
       </platform>
       
 +     <!-- amazon-fireos -->
 +    <platform name="amazon-fireos">
 +        <config-file target="res/xml/config.xml" parent="/*">
 +            <feature name="Media" >
 +                <param name="android-package" value="org.apache.cordova.media.AudioHandler"/>
 +            </feature>
 +        </config-file>
 +        
 +        <config-file target="AndroidManifest.xml" parent="/*">
 +            <uses-permission android:name="android.permission.RECORD_AUDIO" />
 +            <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"
/>
 +            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
/>
 +        </config-file>
 +        
 +        <source-file src="src/android/AudioHandler.java" target-dir="src/org/apache/cordova/media"
/>
 +        <source-file src="src/android/AudioPlayer.java" target-dir="src/org/apache/cordova/media"
/>
 +        <source-file src="src/android/FileHelper.java" target-dir="src/org/apache/cordova/media"
/>
 +     </platform>
 +
 +
+      <!-- ubuntu -->
+      <platform name="ubuntu">
+          <config-file target="config.xml" parent="/*">
 -             <feature name="Camera">
++             <feature name="Media">
+                  <param policy_group="microphone" policy_version="1" />
+                  <param policy_group="video" policy_version="1" />
+              </feature>
+          </config-file>
+          <header-file src="src/ubuntu/media.h" />
+          <source-file src="src/ubuntu/media.cpp" />
+      </platform>
+ 
       <!-- ios -->
       <platform name="ios">    
           <config-file target="config.xml" parent="/*">


Mime
View raw message