Twitch SDK (Internal)
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ttv::broadcast::RtmpContext Struct Reference

#include <rtmpcontext.h>

Public Types

enum  State {
  State::Invalid = -1, State::Idle, State::Initialize, State::Handshake,
  State::Connect, State::CreateStream, State::Publish, State::SendVideo,
  State::Shutdown, State::Error, State::Count
}
 

Public Member Functions

 RtmpContext (std::shared_ptr< StreamStats > streamStats)
 
void SetNextState (State nextState)
 
void SetCurrentStateToNext ()
 
State GetCurrentState () const
 
State GetNextState () const
 

Public Attributes

std::string mURL
 
std::string mHostName
 
std::string mApplication
 
uint32_t mPort
 
std::string mStreamName
 
uint mIncomingChunkSize
 
uint mOutgoingChunkSize
 
uint mWindowAckSize
 
uint mIncomingPeerBW
 
size_t mChunkSpace
 
double mTransactionId
 
double mStreamId
 
TTV_ErrorCode mLastError
 
BufferedSocket mSocket
 
AMF0Encoder mAmfEncoder
 
std::shared_ptr< StreamStatsmStreamStats
 

Static Public Attributes

static const uint32_t kDesiredOutgoingChunkSize = 4096
 

Private Member Functions

void OnStateChange ()
 

Private Attributes

State mCurrentState
 
State mNextState
 

Member Enumeration Documentation

◆ State

Enumerator
Invalid 
Idle 
Initialize 
Handshake 
Connect 
CreateStream 
Publish 
SendVideo 
Shutdown 
Error 
Count 

Constructor & Destructor Documentation

◆ RtmpContext()

ttv::broadcast::RtmpContext::RtmpContext ( std::shared_ptr< StreamStats streamStats)

Member Function Documentation

◆ GetCurrentState()

State ttv::broadcast::RtmpContext::GetCurrentState ( ) const
inline

◆ GetNextState()

State ttv::broadcast::RtmpContext::GetNextState ( ) const
inline

◆ OnStateChange()

void ttv::broadcast::RtmpContext::OnStateChange ( )
private

◆ SetCurrentStateToNext()

void ttv::broadcast::RtmpContext::SetCurrentStateToNext ( )
inline

◆ SetNextState()

void ttv::broadcast::RtmpContext::SetNextState ( State  nextState)

Member Data Documentation

◆ kDesiredOutgoingChunkSize

const uint32_t ttv::broadcast::RtmpContext::kDesiredOutgoingChunkSize = 4096
static

◆ mAmfEncoder

AMF0Encoder ttv::broadcast::RtmpContext::mAmfEncoder

◆ mApplication

std::string ttv::broadcast::RtmpContext::mApplication

◆ mChunkSpace

size_t ttv::broadcast::RtmpContext::mChunkSpace

◆ mCurrentState

State ttv::broadcast::RtmpContext::mCurrentState
private

◆ mHostName

std::string ttv::broadcast::RtmpContext::mHostName

◆ mIncomingChunkSize

uint ttv::broadcast::RtmpContext::mIncomingChunkSize

◆ mIncomingPeerBW

uint ttv::broadcast::RtmpContext::mIncomingPeerBW

◆ mLastError

TTV_ErrorCode ttv::broadcast::RtmpContext::mLastError

◆ mNextState

State ttv::broadcast::RtmpContext::mNextState
private

◆ mOutgoingChunkSize

uint ttv::broadcast::RtmpContext::mOutgoingChunkSize

◆ mPort

uint32_t ttv::broadcast::RtmpContext::mPort

◆ mSocket

BufferedSocket ttv::broadcast::RtmpContext::mSocket

◆ mStreamId

double ttv::broadcast::RtmpContext::mStreamId

◆ mStreamName

std::string ttv::broadcast::RtmpContext::mStreamName

◆ mStreamStats

std::shared_ptr<StreamStats> ttv::broadcast::RtmpContext::mStreamStats

◆ mTransactionId

double ttv::broadcast::RtmpContext::mTransactionId

◆ mURL

std::string ttv::broadcast::RtmpContext::mURL

◆ mWindowAckSize

uint ttv::broadcast::RtmpContext::mWindowAckSize

The documentation for this struct was generated from the following file: