summaryrefslogtreecommitdiff
path: root/docs/av_api.md
diff options
context:
space:
mode:
authorPeter Maatman <blackwolf12333@gmail.com>2013-11-01 11:55:22 +0100
committerPeter Maatman <blackwolf12333@gmail.com>2013-11-01 11:55:22 +0100
commit760edd0c56f36055c9cac9c1adfc4ef938aadce8 (patch)
treed984051a8122fd8bbddf959c4a18a6ff7a38f08d /docs/av_api.md
parent0234609ab1bf41eb2c640560f1e32931d34e9d4b (diff)
Update av_api.md
and some more
Diffstat (limited to 'docs/av_api.md')
-rw-r--r--docs/av_api.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/av_api.md b/docs/av_api.md
index be9a195f..63e6801f 100644
--- a/docs/av_api.md
+++ b/docs/av_api.md
@@ -91,20 +91,24 @@ int msi_reject ( msi_session_t* _session );
91Reject incomming call. 91Reject incomming call.
92 92
93 93
94###Now for rtp:
94 95
95
96Now for rtp:
97You will need 2 sessions; one for audio one for video. 96You will need 2 sessions; one for audio one for video.
98You start them with: 97You start them with:
99 98```
100rtp_session_t* rtp_init_session ( int _max_users, int _multi_session ); 99rtp_session_t* rtp_init_session ( int _max_users, int _multi_session );
100```
101 101
102Params: 102Params:
103```
103int _max_users - max users. -1 if undefined 104int _max_users - max users. -1 if undefined
104int _multi_session - any positive number means uses multi session; -1 if not. 105int _multi_session - any positive number means uses multi session; -1 if not.
106```
105 107
106Return value: 108Return value:
109```
107rtp_session_t* - pointer to a newly created rtp session handler. 110rtp_session_t* - pointer to a newly created rtp session handler.
111```
108 112
109How to handle rtp session: 113How to handle rtp session:
110Take a look at 114Take a look at
@@ -129,7 +133,7 @@ _core_handler is the same network handler as in msi_session_s struct.
129 133
130 134
131 135
132A/V initialization: 136##A/V initialization:
133 137
134int init_receive_audio(codec_state *cs); 138int init_receive_audio(codec_state *cs);
135int init_receive_video(codec_state *cs); 139int init_receive_video(codec_state *cs);
@@ -147,7 +151,7 @@ The variable bps is the required bitrate in bits per second.
147 151
148 152
149 153
150A/V encoding/decoding: 154###A/V encoding/decoding:
151 155
152void *encode_video_thread(void *arg); 156void *encode_video_thread(void *arg);
153Spawns the video encoding thread. The argument should hold a pointer to a codec_state. 157Spawns the video encoding thread. The argument should hold a pointer to a codec_state.