summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-04-12 08:07:06 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2017-04-19 20:22:28 -0400
commitf6285d7a60a75773f91754d5f254192139b5ceb8 (patch)
tree843701b69e8108b47968de52e2f36d695e3840ea /docs
parent439f676d45d75f59f47a000a6adca8e9fe6a6e4e (diff)
Fix markdown formatting
Diffstat (limited to 'docs')
-rw-r--r--docs/av_api.md16
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```
8phone_t* initPhone(uint16_t _listen_port, uint16_t _send_port); 8phone_t* initPhone(uint16_t _listen_port, uint16_t _send_port);
@@ -31,7 +31,7 @@ const uint8_t* _user_agent - string describing phone client version.
31Return value: 31Return value:
32msi_session_t* - pointer to a newly created msi session handler. 32msi_session_t* - pointer to a newly created msi session handler.
33 33
34###msi_session_t reference: 34### msi_session_t reference:
35 35
36How to handle msi session: 36How to handle msi session:
37Controlling is done via callbacks and action handlers. 37Controlling is done via callbacks and action handlers.
@@ -91,7 +91,7 @@ int msi_reject ( msi_session_t* _session );
91Reject incomming call. 91Reject incomming call.
92 92
93 93
94###Now for rtp: 94### Now for rtp:
95 95
96You will need 2 sessions; one for audio one for video. 96You will need 2 sessions; one for audio one for video.
97You start them with: 97You start them with:
@@ -110,7 +110,7 @@ Return value:
110rtp_session_t* - pointer to a newly created rtp session handler. 110rtp_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:
114Take a look at 114Take a look at
115``` 115```
116void* phone_handle_media_transport_poll ( void* _hmtc_args_p ) in phone.c 116void* 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```
144int init_receive_audio(codec_state *cs); 144int init_receive_audio(codec_state *cs);
145int init_receive_video(codec_state *cs); 145int 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```
162void *encode_video_thread(void *arg); 162void *encode_video_thread(void *arg);
163``` 163```