MediaSessionMgr.java 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class MediaSessionMgr {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected MediaSessionMgr(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(MediaSessionMgr obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_MediaSessionMgr(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public boolean sessionSetInt32(twrap_media_type_t media, String key, int value) {
  32. return tinyWRAPJNI.MediaSessionMgr_sessionSetInt32(swigCPtr, this, media.swigValue(), key, value);
  33. }
  34. public int sessionGetInt32(twrap_media_type_t media, String key) {
  35. return tinyWRAPJNI.MediaSessionMgr_sessionGetInt32(swigCPtr, this, media.swigValue(), key);
  36. }
  37. public QoS sessionGetQoS(twrap_media_type_t media) {
  38. long cPtr = tinyWRAPJNI.MediaSessionMgr_sessionGetQoS(swigCPtr, this, media.swigValue());
  39. return (cPtr == 0) ? null : new QoS(cPtr, true);
  40. }
  41. public boolean consumerSetInt32(twrap_media_type_t media, String key, int value) {
  42. return tinyWRAPJNI.MediaSessionMgr_consumerSetInt32(swigCPtr, this, media.swigValue(), key, value);
  43. }
  44. public boolean consumerSetInt64(twrap_media_type_t media, String key, long value) {
  45. return tinyWRAPJNI.MediaSessionMgr_consumerSetInt64(swigCPtr, this, media.swigValue(), key, value);
  46. }
  47. public boolean producerSetInt32(twrap_media_type_t media, String key, int value) {
  48. return tinyWRAPJNI.MediaSessionMgr_producerSetInt32(swigCPtr, this, media.swigValue(), key, value);
  49. }
  50. public boolean producerSetInt64(twrap_media_type_t media, String key, long value) {
  51. return tinyWRAPJNI.MediaSessionMgr_producerSetInt64(swigCPtr, this, media.swigValue(), key, value);
  52. }
  53. public Codec producerGetCodec(twrap_media_type_t media) {
  54. long cPtr = tinyWRAPJNI.MediaSessionMgr_producerGetCodec(swigCPtr, this, media.swigValue());
  55. return (cPtr == 0) ? null : new Codec(cPtr, true);
  56. }
  57. public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) {
  58. long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, this, media.swigValue());
  59. return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
  60. }
  61. public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) {
  62. long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginProducer(swigCPtr, this, media.swigValue());
  63. return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false);
  64. }
  65. public static long registerAudioPluginFromFile(String path) {
  66. return tinyWRAPJNI.MediaSessionMgr_registerAudioPluginFromFile(path);
  67. }
  68. public java.math.BigInteger getSessionId(twrap_media_type_t media) {
  69. return tinyWRAPJNI.MediaSessionMgr_getSessionId(swigCPtr, this, media.swigValue());
  70. }
  71. public static boolean defaultsSetProfile(tmedia_profile_t profile) {
  72. return tinyWRAPJNI.MediaSessionMgr_defaultsSetProfile(profile.swigValue());
  73. }
  74. public static tmedia_profile_t defaultsGetProfile() {
  75. return tmedia_profile_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetProfile());
  76. }
  77. public static boolean defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) {
  78. return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthLevel(bl.swigValue());
  79. }
  80. public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() {
  81. return tmedia_bandwidth_level_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetBandwidthLevel());
  82. }
  83. public static boolean defaultsSetCongestionCtrlEnabled(boolean enabled) {
  84. return tinyWRAPJNI.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled);
  85. }
  86. public static boolean defaultsSetVideoMotionRank(int video_motion_rank) {
  87. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank);
  88. }
  89. public static boolean defaultsSetVideoFps(int video_fps) {
  90. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoFps(video_fps);
  91. }
  92. public static boolean defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) {
  93. return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps);
  94. }
  95. public static boolean defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) {
  96. return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps);
  97. }
  98. public static boolean defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) {
  99. return tinyWRAPJNI.MediaSessionMgr_defaultsSetPrefVideoSize(pref_video_size.swigValue());
  100. }
  101. public static boolean defaultsSetPrefVideoSizeOutRange(tmedia_pref_video_size_t min, tmedia_pref_video_size_t max) {
  102. return tinyWRAPJNI.MediaSessionMgr_defaultsSetPrefVideoSizeOutRange(min.swigValue(), max.swigValue());
  103. }
  104. public static boolean defaultsSetAdaptativeVideoSizeOutEnabled(boolean enabled) {
  105. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAdaptativeVideoSizeOutEnabled(enabled);
  106. }
  107. public static boolean defaultsSetJbMargin(long jb_margin_ms) {
  108. return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms);
  109. }
  110. public static boolean defaultsSetJbMaxLateRate(long jb_late_rate_percent) {
  111. return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent);
  112. }
  113. public static boolean defaultsSetEchoTail(long echo_tail) {
  114. return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoTail(echo_tail);
  115. }
  116. public static long defaultsGetEchoTail() {
  117. return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoTail();
  118. }
  119. public static boolean defaultsSetEchoSkew(long echo_skew) {
  120. return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSkew(echo_skew);
  121. }
  122. public static boolean defaultsSetEchoSuppEnabled(boolean echo_supp_enabled) {
  123. return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled);
  124. }
  125. public static boolean defaultsGetEchoSuppEnabled() {
  126. return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoSuppEnabled();
  127. }
  128. public static boolean defaultsSetAgcEnabled(boolean agc_enabled) {
  129. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled);
  130. }
  131. public static boolean defaultsGetAgcEnabled() {
  132. return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcEnabled();
  133. }
  134. public static boolean defaultsSetAgcLevel(float agc_level) {
  135. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcLevel(agc_level);
  136. }
  137. public static float defaultsGetAgcLevel() {
  138. return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcLevel();
  139. }
  140. public static boolean defaultsSetVadEnabled(boolean vad_enabled) {
  141. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled);
  142. }
  143. public static boolean defaultsGetGetVadEnabled() {
  144. return tinyWRAPJNI.MediaSessionMgr_defaultsGetGetVadEnabled();
  145. }
  146. public static boolean defaultsSetNoiseSuppEnabled(boolean noise_supp_enabled) {
  147. return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled);
  148. }
  149. public static boolean defaultsGetNoiseSuppEnabled() {
  150. return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppEnabled();
  151. }
  152. public static boolean defaultsSetNoiseSuppLevel(int noise_supp_level) {
  153. return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level);
  154. }
  155. public static int defaultsGetNoiseSuppLevel() {
  156. return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppLevel();
  157. }
  158. public static boolean defaultsSetConditionalRingingEnabled(boolean _cond_ringing_enabled) {
  159. return tinyWRAPJNI.MediaSessionMgr_defaultsSetConditionalRingingEnabled(_cond_ringing_enabled);
  160. }
  161. public static boolean defaultsGetConditionalRingingEnabled() {
  162. return tinyWRAPJNI.MediaSessionMgr_defaultsGetConditionalRingingEnabled();
  163. }
  164. public static boolean defaultsSet100relEnabled(boolean _100rel_enabled) {
  165. return tinyWRAPJNI.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled);
  166. }
  167. public static boolean defaultsGet100relEnabled() {
  168. return tinyWRAPJNI.MediaSessionMgr_defaultsGet100relEnabled();
  169. }
  170. public static boolean defaultsSetScreenSize(int sx, int sy) {
  171. return tinyWRAPJNI.MediaSessionMgr_defaultsSetScreenSize(sx, sy);
  172. }
  173. public static boolean defaultsSetAudioGain(int producer_gain, int consumer_gain) {
  174. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain);
  175. }
  176. public static boolean defaultsSetAudioPtime(int ptime) {
  177. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioPtime(ptime);
  178. }
  179. public static boolean defaultsSetAudioChannels(int channel_playback, int channel_record) {
  180. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record);
  181. }
  182. public static boolean defaultsSetRtpPortRange(int range_start, int range_stop) {
  183. return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop);
  184. }
  185. public static boolean defaultsSetRtpSymetricEnabled(boolean enabled) {
  186. return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled);
  187. }
  188. public static boolean defaultsSetMediaType(twrap_media_type_t media_type) {
  189. return tinyWRAPJNI.MediaSessionMgr_defaultsSetMediaType(media_type.swigValue());
  190. }
  191. public static boolean defaultsSetVolume(int volume) {
  192. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVolume(volume);
  193. }
  194. public static int defaultsGetVolume() {
  195. return tinyWRAPJNI.MediaSessionMgr_defaultsGetVolume();
  196. }
  197. public static boolean defaultsSetInviteSessionTimers(int timeout, String refresher) {
  198. return tinyWRAPJNI.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher);
  199. }
  200. public static boolean defaultsSetSRtpMode(tmedia_srtp_mode_t mode) {
  201. return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpMode(mode.swigValue());
  202. }
  203. public static tmedia_srtp_mode_t defaultsGetSRtpMode() {
  204. return tmedia_srtp_mode_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpMode());
  205. }
  206. public static boolean defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) {
  207. return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpType(srtp_type.swigValue());
  208. }
  209. public static tmedia_srtp_type_t defaultsGetSRtpType() {
  210. return tmedia_srtp_type_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpType());
  211. }
  212. public static boolean defaultsSetRtcpEnabled(boolean enabled) {
  213. return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpEnabled(enabled);
  214. }
  215. public static boolean defaultsGetRtcpEnabled() {
  216. return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpEnabled();
  217. }
  218. public static boolean defaultsSetRtcpMuxEnabled(boolean enabled) {
  219. return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled);
  220. }
  221. public static boolean defaultsGetRtcpMuxEnabled() {
  222. return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpMuxEnabled();
  223. }
  224. public static boolean defaultsSetStunEnabled(boolean stun_enabled) {
  225. return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled);
  226. }
  227. public static boolean defaultsSetIceStunEnabled(boolean icestun_enabled) {
  228. return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled);
  229. }
  230. public static boolean defaultsSetIceTurnEnabled(boolean iceturn_enabled) {
  231. return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled);
  232. }
  233. public static boolean defaultsSetStunServer(String server_ip, int server_port) {
  234. return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port);
  235. }
  236. public static boolean defaultsSetStunCred(String username, String password) {
  237. return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunCred(username, password);
  238. }
  239. public static boolean defaultsSetIceEnabled(boolean ice_enabled) {
  240. return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled);
  241. }
  242. public static boolean defaultsSetByPassEncoding(boolean enabled) {
  243. return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassEncoding(enabled);
  244. }
  245. public static boolean defaultsGetByPassEncoding() {
  246. return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassEncoding();
  247. }
  248. public static boolean defaultsSetByPassDecoding(boolean enabled) {
  249. return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassDecoding(enabled);
  250. }
  251. public static boolean defaultsGetByPassDecoding() {
  252. return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassDecoding();
  253. }
  254. public static boolean defaultsSetVideoJbEnabled(boolean enabled) {
  255. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled);
  256. }
  257. public static boolean defaultsGetVideoJbEnabled() {
  258. return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoJbEnabled();
  259. }
  260. public static boolean defaultsSetVideoZeroArtifactsEnabled(boolean enabled) {
  261. return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled);
  262. }
  263. public static boolean defaultsGetVideoZeroArtifactsEnabled() {
  264. return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled();
  265. }
  266. public static boolean defaultsSetRtpBuffSize(long buffSize) {
  267. return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize);
  268. }
  269. public static long defaultsGetRtpBuffSize() {
  270. return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtpBuffSize();
  271. }
  272. public static boolean defaultsSetAvpfTail(long tail_min, long tail_max) {
  273. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max);
  274. }
  275. public static boolean defaultsSetAvpfMode(tmedia_mode_t mode) {
  276. return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfMode(mode.swigValue());
  277. }
  278. public static boolean defaultsSetOpusMaxCaptureRate(long opus_maxcapturerate) {
  279. return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate);
  280. }
  281. public static boolean defaultsSetOpusMaxPlaybackRate(long opus_maxplaybackrate) {
  282. return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate);
  283. }
  284. public static boolean defaultsSetMaxFds(int max_fds) {
  285. return tinyWRAPJNI.MediaSessionMgr_defaultsSetMaxFds(max_fds);
  286. }
  287. }