diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/av_api.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/av_api.md b/docs/av_api.md index 2f536ade..f94b0c5d 100644 --- a/docs/av_api.md +++ b/docs/av_api.md | |||
@@ -1,8 +1,8 @@ | |||
1 | #A/V API reference | 1 | # A/V API reference |
2 | 2 | ||
3 | ##Take toxmsi/phone.c as a reference | 3 | ## Take toxmsi/phone.c as a reference |
4 | 4 | ||
5 | ###Initialization: | 5 | ### Initialization: |
6 | 6 | ||
7 | ``` | 7 | ``` |
8 | phone_t* initPhone(uint16_t _listen_port, uint16_t _send_port); | 8 | phone_t* initPhone(uint16_t _listen_port, uint16_t _send_port); |
@@ -31,7 +31,7 @@ const uint8_t* _user_agent - string describing phone client version. | |||
31 | Return value: | 31 | Return value: |
32 | msi_session_t* - pointer to a newly created msi session handler. | 32 | msi_session_t* - pointer to a newly created msi session handler. |
33 | 33 | ||
34 | ###msi_session_t reference: | 34 | ### msi_session_t reference: |
35 | 35 | ||
36 | How to handle msi session: | 36 | How to handle msi session: |
37 | Controlling is done via callbacks and action handlers. | 37 | Controlling is done via callbacks and action handlers. |
@@ -91,7 +91,7 @@ int msi_reject ( msi_session_t* _session ); | |||
91 | Reject incomming call. | 91 | Reject incomming call. |
92 | 92 | ||
93 | 93 | ||
94 | ###Now for rtp: | 94 | ### Now for rtp: |
95 | 95 | ||
96 | You will need 2 sessions; one for audio one for video. | 96 | You will need 2 sessions; one for audio one for video. |
97 | You start them with: | 97 | You start them with: |
@@ -110,7 +110,7 @@ Return value: | |||
110 | rtp_session_t* - pointer to a newly created rtp session handler. | 110 | rtp_session_t* - pointer to a newly created rtp session handler. |
111 | ``` | 111 | ``` |
112 | 112 | ||
113 | ###How to handle rtp session: | 113 | ### How to handle rtp session: |
114 | Take a look at | 114 | Take a look at |
115 | ``` | 115 | ``` |
116 | void* phone_handle_media_transport_poll ( void* _hmtc_args_p ) in phone.c | 116 | void* phone_handle_media_transport_poll ( void* _hmtc_args_p ) in phone.c |
@@ -139,7 +139,7 @@ int rtp_send_msg ( rtp_session_t* _session, struct rtp_msg_s* _msg, void* _core_ | |||
139 | _core_handler is the same network handler as in msi_session_s struct. | 139 | _core_handler is the same network handler as in msi_session_s struct. |
140 | 140 | ||
141 | 141 | ||
142 | ##A/V initialization: | 142 | ## A/V initialization: |
143 | ``` | 143 | ``` |
144 | int init_receive_audio(codec_state *cs); | 144 | int init_receive_audio(codec_state *cs); |
145 | int init_receive_video(codec_state *cs); | 145 | int init_receive_video(codec_state *cs); |
@@ -157,7 +157,7 @@ The variable bps is the required bitrate in bits per second. | |||
157 | ``` | 157 | ``` |
158 | 158 | ||
159 | 159 | ||
160 | ###A/V encoding/decoding: | 160 | ### A/V encoding/decoding: |
161 | ``` | 161 | ``` |
162 | void *encode_video_thread(void *arg); | 162 | void *encode_video_thread(void *arg); |
163 | ``` | 163 | ``` |