1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-12-03 10:07:45 +01:00
libtgvoip/controller/protocol/Stream.h

37 lines
655 B
C
Raw Normal View History

2020-03-24 15:07:56 +01:00
namespace tgvoip
{
struct StreamInfo
{
StreamInfo() = delete;
StreamInfo(uint8_t _id, StreamType _type) : id(_id), type(_type){};
uint8_t id;
StreamType type;
bool enabled = true;
bool paused = false;
};
struct MediaStreamInfo
{
int32_t userID;
uint32_t codec;
};
struct AudioStreamInfo : public MediaStreamInfo
{
bool extraECEnabled;
uint16_t frameDuration;
};
struct VideoStreamInfo : public MediaStreamInfo
{
unsigned int width = 0;
unsigned int height = 0;
uint16_t rotation = 0;
int resolution;
};
using IncomingStream = StreamInfo;
} // namespace tgvoip
2020-03-21 21:33:51 +01:00
#include "packets/PacketSender.h"