diff options
author | Peter Maatman <blackwolf12333@gmail.com> | 2013-11-01 11:55:22 +0100 |
---|---|---|
committer | Peter Maatman <blackwolf12333@gmail.com> | 2013-11-01 11:55:22 +0100 |
commit | 760edd0c56f36055c9cac9c1adfc4ef938aadce8 (patch) | |
tree | d984051a8122fd8bbddf959c4a18a6ff7a38f08d /docs/av_api.md | |
parent | 0234609ab1bf41eb2c640560f1e32931d34e9d4b (diff) |
Update av_api.md
and some more
Diffstat (limited to 'docs/av_api.md')
-rw-r--r-- | docs/av_api.md | 14 |
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 ); | |||
91 | Reject incomming call. | 91 | Reject incomming call. |
92 | 92 | ||
93 | 93 | ||
94 | ###Now for rtp: | ||
94 | 95 | ||
95 | |||
96 | Now for rtp: | ||
97 | You will need 2 sessions; one for audio one for video. | 96 | You will need 2 sessions; one for audio one for video. |
98 | You start them with: | 97 | You start them with: |
99 | 98 | ``` | |
100 | rtp_session_t* rtp_init_session ( int _max_users, int _multi_session ); | 99 | rtp_session_t* rtp_init_session ( int _max_users, int _multi_session ); |
100 | ``` | ||
101 | 101 | ||
102 | Params: | 102 | Params: |
103 | ``` | ||
103 | int _max_users - max users. -1 if undefined | 104 | int _max_users - max users. -1 if undefined |
104 | int _multi_session - any positive number means uses multi session; -1 if not. | 105 | int _multi_session - any positive number means uses multi session; -1 if not. |
106 | ``` | ||
105 | 107 | ||
106 | Return value: | 108 | Return value: |
109 | ``` | ||
107 | rtp_session_t* - pointer to a newly created rtp session handler. | 110 | rtp_session_t* - pointer to a newly created rtp session handler. |
111 | ``` | ||
108 | 112 | ||
109 | How to handle rtp session: | 113 | How to handle rtp session: |
110 | Take a look at | 114 | Take 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 | ||
132 | A/V initialization: | 136 | ##A/V initialization: |
133 | 137 | ||
134 | int init_receive_audio(codec_state *cs); | 138 | int init_receive_audio(codec_state *cs); |
135 | int init_receive_video(codec_state *cs); | 139 | int 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 | ||
150 | A/V encoding/decoding: | 154 | ###A/V encoding/decoding: |
151 | 155 | ||
152 | void *encode_video_thread(void *arg); | 156 | void *encode_video_thread(void *arg); |
153 | Spawns the video encoding thread. The argument should hold a pointer to a codec_state. | 157 | Spawns the video encoding thread. The argument should hold a pointer to a codec_state. |