forked from songz/cordova-plugin-opentok
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
90 lines (78 loc) · 3.92 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="com.tokbox.cordova.opentok"
version="1.0.2">
<name>OpenTokCordovaPlugin</name>
<description>Add live video streaming to your Cordova Application</description>
<license>Apache 2.0</license>
<keywords>opentok,tokbox</keywords>
<platform name="android">
<asset src="www/opentok.js" target="opentok.js" />
<source-file src="src/android/com/tokbox/cordova/OpenTokAndroidPlugin.java"
target-dir="src/com/tokbox/cordova/" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
</config-file>
<!-- copy opentok sdk -->
<source-file src="src/android/libs/opentok-android-sdk-2.3.1.jar" target-dir="libs/" />
<source-file src="src/android/libs/armeabi/libopentok.so" target-dir="libs/armeabi" />
<source-file src="src/android/libs/x86/libopentok.so" target-dir="libs/x86" />
<config-file target="config.xml" parent="/*">
<feature name="OpenTokPlugin">
<param name="android-package" value="com.tokbox.cordova.OpenTokAndroidPlugin"/>
</feature>
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<asset src="www/opentok.js" target="opentok.js" />
<header-file src="src/ios/MyAudioDevice.h" />
<header-file src="src/ios/UIView+JTViewToImage.h" />
<!-- <header-file src="TBExamplePhotoVideoCapture.h" /> -->
<header-file src="src/ios/OpenTokPlugin.h" />
<!-- <header-file src="src/ios/Rollerr-Bridging-Header.h" /> -->
<source-file src="src/ios/MyAudioDevice.m" />
<source-file src="src/ios/UIView+JTViewToImage.m" />
<!-- <source-file src="TBExamplePhotoVideoCapture.m" /> -->
<source-file src="src/ios/OpenTokPlugin.m" />
<!-- <source-file src="src/ios/VideoView.swift" /> -->
<framework src="src/ios/Opentok.framework" custom="true" />
<framework src="Foundation.framework" />
<framework src="UIKit.framework" />
<framework src="AVFoundation.framework" />
<framework src="QuartzCore.framework" />
<framework src="OpenGLES.framework" />
<framework src="CoreVideo.framework" />
<framework src="AudioToolbox.framework" />
<framework src="Security.framework" />
<framework src="CoreMedia.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="CFNetwork.framework" />
<framework src="CoreTelephony.framework" />
<framework src="libstdc++.6.0.9.dylib" />
<framework src="libz.dylib" />
<framework src="libsqlite3.dylib" />
<framework src="libxml2.dylib" />
<!-- Adopts project's config.xml to include the OpenTokPlugin and domain whitelists -->
<config-file target="config.xml" parent="/*/plugins">
<feature name="OpenTokPlugin">
<param name="ios-package" value="OpenTokPlugin"/>
</feature>
<!-- <feature name="Video">
<param name="ios-package" value="Video" />
<param name="onload" value="true" />
</feature> -->
</config-file>
<config-file target="config.xml" parent="/*">
<access origin="*" />
</config-file>
</platform>
</plugin>