You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
937 B
20 lines
937 B
/* Отправка подготовленного MP4 в канал или dm:conv_id через общий attachment_send. |
|
* Android передаёт duration_ms/width/height; повторного транскодирования здесь нет. db_path не используется. |
|
* 0 = запрос поставлен в uasync, -1 = отказ. Передаётся владение временным cache-файлом: |
|
* задача удаляет src_file_path после подготовки. Результат публикации приходит событием ядра. */ |
|
#ifndef VIDEO_SENDER_H |
|
#define VIDEO_SENDER_H |
|
#include <stdint.h> |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
int video_send(const char* channel_id, const char* src_file_path, const char* db_path, |
|
int duration_ms, int width, int height, const uint8_t reply_to[32], uint64_t request_id); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
#endif
|
|
|