2020-03-21 21:33:51 +01:00
|
|
|
#include "Stream.h"
|
2020-03-25 15:49:13 +01:00
|
|
|
#include "../../VoIPController.h"
|
|
|
|
#include "protocol/Index.h"
|
2020-03-21 21:33:51 +01:00
|
|
|
|
2020-03-25 15:49:13 +01:00
|
|
|
using namespace tgvoip;
|
|
|
|
|
|
|
|
OutgoingAudioStream::OutgoingAudioStream(uint8_t _id) : OutgoingMediaStream(_id, TYPE){};
|
|
|
|
OutgoingAudioStream::~OutgoingAudioStream(){};
|
|
|
|
|
|
|
|
OutgoingVideoStream::OutgoingVideoStream(uint8_t _id) : OutgoingMediaStream(_id, TYPE){};
|
|
|
|
OutgoingVideoStream::~OutgoingVideoStream(){};
|
|
|
|
|
|
|
|
ExtraStreamInfo OutgoingAudioStream::getStreamInfo() const
|
|
|
|
{
|
|
|
|
ExtraStreamInfo a;
|
|
|
|
a.streamId = id;
|
|
|
|
a.codec = codec;
|
|
|
|
a.enabled = enabled;
|
|
|
|
a.type = type;
|
|
|
|
a.frameDuration = frameDuration;
|
|
|
|
return a;
|
2020-03-25 21:38:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
OutgoingStream::OutgoingStream(uint8_t _id, StreamType _type) : StreamInfo(_id, _type), packetManager(_id){};
|
|
|
|
|
|
|
|
OutgoingStream::~OutgoingStream(){};
|
|
|
|
|
|
|
|
ExtraStreamInfo OutgoingStream::getStreamInfo() const
|
|
|
|
{
|
|
|
|
ExtraStreamInfo a;
|
|
|
|
a.streamId = id;
|
|
|
|
a.enabled = enabled;
|
|
|
|
a.type = type;
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
|
|
|
|
OutgoingMediaStream::OutgoingMediaStream(uint8_t id, StreamType type) : OutgoingStream(id, type){};
|
|
|
|
|
|
|
|
OutgoingMediaStream::~OutgoingMediaStream(){};
|
|
|
|
|
|
|
|
ExtraStreamInfo OutgoingMediaStream::getStreamInfo() const
|
|
|
|
{
|
|
|
|
ExtraStreamInfo a;
|
|
|
|
a.streamId = OutgoingStream::id;
|
|
|
|
a.codec = codec;
|
|
|
|
a.enabled = OutgoingStream::enabled;
|
|
|
|
a.type = OutgoingStream::type;
|
|
|
|
return a;
|
2020-03-25 15:49:13 +01:00
|
|
|
}
|