diff options
| author | Anton <anton@picapica> | 2019-12-28 02:17:15 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-12-28 02:17:15 +0400 |
| commit | eac8372eeb9a2ba4b2b71432051478762560b6a4 (patch) | |
| tree | f9882a387a91bc2f385aa7b31f5cfe7f9a3b98ad /doc/proto-doc-audiovideo.txt | |
| parent | 9302dc71e5efe8915d18e88a2e3e9567a7f8111a (diff) | |
| download | pica-pica-eac8372eeb9a2ba4b2b71432051478762560b6a4.tar.gz pica-pica-eac8372eeb9a2ba4b2b71432051478762560b6a4.zip | |
draft spec for audio/video calls
Diffstat (limited to 'doc/proto-doc-audiovideo.txt')
| -rw-r--r-- | doc/proto-doc-audiovideo.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/proto-doc-audiovideo.txt b/doc/proto-doc-audiovideo.txt new file mode 100644 index 0000000..11e65b7 --- /dev/null +++ b/doc/proto-doc-audiovideo.txt @@ -0,0 +1,34 @@ +Audio and Video Calls. + +Call request (ring) +[0x70 0x70] + +Call answer (pick up) +[0x71 0x71] + +Call reject +[0x72 0x72] + +Call hang up (finished) +[0x73 0x73] + +Audio stream parameters +[0x74 0x74] +[codec - 20 octet string, left-aligned, padded with zeroes, +"opus", "adpcm_g722", "pcm_alaw" named as in ffmpeg] +[sample rate, uint16_t little-endian] + +Video stream parameters +[0x75 0x75] +[codec - 20 octet string, left-aligned, padded with zeroes, e.g. +"hevc", "h264", "mjpeg", "vp9", named as in ffmpeg] +[width, uint16_t, little-endian] +[height, uint16_t, little-endian] + +Voice (audio) packet +[0x76 0x76][length 2 octets][PTS][data] + +Video packet +[0x77 0x77][length 2 octets][PTS][data] + + |
