123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.9
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
- namespace org.doubango.tinyWRAP {
- using System;
- using System.Runtime.InteropServices;
- public class MediaSessionMgr : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
- internal MediaSessionMgr(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
- internal static HandleRef getCPtr(MediaSessionMgr obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
- ~MediaSessionMgr() {
- Dispose();
- }
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- tinyWRAPPINVOKE.delete_MediaSessionMgr(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
- public bool sessionSetInt32(twrap_media_type_t media, string key, int value) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_sessionSetInt32(swigCPtr, (int)media, key, value);
- return ret;
- }
- public int sessionGetInt32(twrap_media_type_t media, string key) {
- int ret = tinyWRAPPINVOKE.MediaSessionMgr_sessionGetInt32(swigCPtr, (int)media, key);
- return ret;
- }
- public QoS sessionGetQoS(twrap_media_type_t media) {
- IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_sessionGetQoS(swigCPtr, (int)media);
- QoS ret = (cPtr == IntPtr.Zero) ? null : new QoS(cPtr, true);
- return ret;
- }
- public bool consumerSetInt32(twrap_media_type_t media, string key, int value) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_consumerSetInt32(swigCPtr, (int)media, key, value);
- return ret;
- }
- public bool consumerSetInt64(twrap_media_type_t media, string key, long value) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_consumerSetInt64(swigCPtr, (int)media, key, value);
- return ret;
- }
- public bool producerSetInt32(twrap_media_type_t media, string key, int value) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_producerSetInt32(swigCPtr, (int)media, key, value);
- return ret;
- }
- public bool producerSetInt64(twrap_media_type_t media, string key, long value) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_producerSetInt64(swigCPtr, (int)media, key, value);
- return ret;
- }
- public Codec producerGetCodec(twrap_media_type_t media) {
- IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_producerGetCodec(swigCPtr, (int)media);
- Codec ret = (cPtr == IntPtr.Zero) ? null : new Codec(cPtr, true);
- return ret;
- }
- public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) {
- IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, (int)media);
- ProxyPlugin ret = (cPtr == IntPtr.Zero) ? null : new ProxyPlugin(cPtr, false);
- return ret;
- }
- public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) {
- IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_findProxyPluginProducer(swigCPtr, (int)media);
- ProxyPlugin ret = (cPtr == IntPtr.Zero) ? null : new ProxyPlugin(cPtr, false);
- return ret;
- }
- public static uint registerAudioPluginFromFile(string path) {
- uint ret = tinyWRAPPINVOKE.MediaSessionMgr_registerAudioPluginFromFile(path);
- return ret;
- }
- public ulong getSessionId(twrap_media_type_t media) {
- ulong ret = tinyWRAPPINVOKE.MediaSessionMgr_getSessionId(swigCPtr, (int)media);
- return ret;
- }
- public static bool defaultsSetProfile(tmedia_profile_t profile) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetProfile((int)profile);
- return ret;
- }
- public static tmedia_profile_t defaultsGetProfile() {
- tmedia_profile_t ret = (tmedia_profile_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetProfile();
- return ret;
- }
- public static bool defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthLevel((int)bl);
- return ret;
- }
- public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() {
- tmedia_bandwidth_level_t ret = (tmedia_bandwidth_level_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetBandwidthLevel();
- return ret;
- }
- public static bool defaultsSetCongestionCtrlEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled);
- return ret;
- }
- public static bool defaultsSetVideoMotionRank(int video_motion_rank) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank);
- return ret;
- }
- public static bool defaultsSetVideoFps(int video_fps) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoFps(video_fps);
- return ret;
- }
- public static bool defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps);
- return ret;
- }
- public static bool defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps);
- return ret;
- }
- public static bool defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSize((int)pref_video_size);
- return ret;
- }
- public static bool defaultsSetPrefVideoSizeOutRange(tmedia_pref_video_size_t min, tmedia_pref_video_size_t max) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSizeOutRange((int)min, (int)max);
- return ret;
- }
- public static bool defaultsSetAdaptativeVideoSizeOutEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAdaptativeVideoSizeOutEnabled(enabled);
- return ret;
- }
- public static bool defaultsSetJbMargin(uint jb_margin_ms) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms);
- return ret;
- }
- public static bool defaultsSetJbMaxLateRate(uint jb_late_rate_percent) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent);
- return ret;
- }
- public static bool defaultsSetEchoTail(uint echo_tail) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoTail(echo_tail);
- return ret;
- }
- public static uint defaultsGetEchoTail() {
- uint ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetEchoTail();
- return ret;
- }
- public static bool defaultsSetEchoSkew(uint echo_skew) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoSkew(echo_skew);
- return ret;
- }
- public static bool defaultsSetEchoSuppEnabled(bool echo_supp_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled);
- return ret;
- }
- public static bool defaultsGetEchoSuppEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetEchoSuppEnabled();
- return ret;
- }
- public static bool defaultsSetAgcEnabled(bool agc_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled);
- return ret;
- }
- public static bool defaultsGetAgcEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetAgcEnabled();
- return ret;
- }
- public static bool defaultsSetAgcLevel(float agc_level) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAgcLevel(agc_level);
- return ret;
- }
- public static float defaultsGetAgcLevel() {
- float ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetAgcLevel();
- return ret;
- }
- public static bool defaultsSetVadEnabled(bool vad_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled);
- return ret;
- }
- public static bool defaultsGetGetVadEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetGetVadEnabled();
- return ret;
- }
- public static bool defaultsSetNoiseSuppEnabled(bool noise_supp_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled);
- return ret;
- }
- public static bool defaultsGetNoiseSuppEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetNoiseSuppEnabled();
- return ret;
- }
- public static bool defaultsSetNoiseSuppLevel(int noise_supp_level) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level);
- return ret;
- }
- public static int defaultsGetNoiseSuppLevel() {
- int ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetNoiseSuppLevel();
- return ret;
- }
- public static bool defaultsSetConditionalRingingEnabled(bool _cond_ringing_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetConditionalRingingEnabled(_cond_ringing_enabled);
- return ret;
- }
- public static bool defaultsGetConditionalRingingEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetConditionalRingingEnabled();
- return ret;
- }
- public static bool defaultsSet100relEnabled(bool _100rel_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled);
- return ret;
- }
- public static bool defaultsGet100relEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGet100relEnabled();
- return ret;
- }
- public static bool defaultsSetScreenSize(int sx, int sy) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetScreenSize(sx, sy);
- return ret;
- }
- public static bool defaultsSetAudioGain(int producer_gain, int consumer_gain) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain);
- return ret;
- }
- public static bool defaultsSetAudioPtime(int ptime) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioPtime(ptime);
- return ret;
- }
- public static bool defaultsSetAudioChannels(int channel_playback, int channel_record) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record);
- return ret;
- }
- public static bool defaultsSetRtpPortRange(ushort range_start, ushort range_stop) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop);
- return ret;
- }
- public static bool defaultsSetRtpSymetricEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled);
- return ret;
- }
- public static bool defaultsSetMediaType(twrap_media_type_t media_type) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetMediaType((int)media_type);
- return ret;
- }
- public static bool defaultsSetVolume(int volume) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVolume(volume);
- return ret;
- }
- public static int defaultsGetVolume() {
- int ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVolume();
- return ret;
- }
- public static bool defaultsSetInviteSessionTimers(int timeout, string refresher) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher);
- return ret;
- }
- public static bool defaultsSetSRtpMode(tmedia_srtp_mode_t mode) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetSRtpMode((int)mode);
- return ret;
- }
- public static tmedia_srtp_mode_t defaultsGetSRtpMode() {
- tmedia_srtp_mode_t ret = (tmedia_srtp_mode_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetSRtpMode();
- return ret;
- }
- public static bool defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetSRtpType((int)srtp_type);
- return ret;
- }
- public static tmedia_srtp_type_t defaultsGetSRtpType() {
- tmedia_srtp_type_t ret = (tmedia_srtp_type_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetSRtpType();
- return ret;
- }
- public static bool defaultsSetRtcpEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtcpEnabled(enabled);
- return ret;
- }
- public static bool defaultsGetRtcpEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtcpEnabled();
- return ret;
- }
- public static bool defaultsSetRtcpMuxEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled);
- return ret;
- }
- public static bool defaultsGetRtcpMuxEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtcpMuxEnabled();
- return ret;
- }
- public static bool defaultsSetStunEnabled(bool stun_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled);
- return ret;
- }
- public static bool defaultsSetIceStunEnabled(bool icestun_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled);
- return ret;
- }
- public static bool defaultsSetIceTurnEnabled(bool iceturn_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled);
- return ret;
- }
- public static bool defaultsSetStunServer(string server_ip, ushort server_port) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port);
- return ret;
- }
- public static bool defaultsSetStunCred(string username, string password) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunCred(username, password);
- return ret;
- }
- public static bool defaultsSetIceEnabled(bool ice_enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled);
- return ret;
- }
- public static bool defaultsSetByPassEncoding(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetByPassEncoding(enabled);
- return ret;
- }
- public static bool defaultsGetByPassEncoding() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetByPassEncoding();
- return ret;
- }
- public static bool defaultsSetByPassDecoding(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetByPassDecoding(enabled);
- return ret;
- }
- public static bool defaultsGetByPassDecoding() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetByPassDecoding();
- return ret;
- }
- public static bool defaultsSetVideoJbEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled);
- return ret;
- }
- public static bool defaultsGetVideoJbEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVideoJbEnabled();
- return ret;
- }
- public static bool defaultsSetVideoZeroArtifactsEnabled(bool enabled) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled);
- return ret;
- }
- public static bool defaultsGetVideoZeroArtifactsEnabled() {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled();
- return ret;
- }
- public static bool defaultsSetRtpBuffSize(uint buffSize) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize);
- return ret;
- }
- public static uint defaultsGetRtpBuffSize() {
- uint ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtpBuffSize();
- return ret;
- }
- public static bool defaultsSetAvpfTail(uint tail_min, uint tail_max) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max);
- return ret;
- }
- public static bool defaultsSetAvpfMode(tmedia_mode_t mode) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAvpfMode((int)mode);
- return ret;
- }
- public static bool defaultsSetOpusMaxCaptureRate(uint opus_maxcapturerate) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate);
- return ret;
- }
- public static bool defaultsSetOpusMaxPlaybackRate(uint opus_maxplaybackrate) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate);
- return ret;
- }
- public static bool defaultsSetMaxFds(int max_fds) {
- bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetMaxFds(max_fds);
- return ret;
- }
- }
- }
|