Twitch SDK (Internal)
modules
broadcast
broadcast_common
include
twitchsdk
broadcast
internal
muxers
rtmpcreatestreamstate.h
Go to the documentation of this file.
1
/********************************************************************************************
2
* Twitch Broadcasting SDK
3
*
4
* This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5
* may not be copied or used except in accordance with the terms of that agreement
6
* Copyright (c) 2012-2016 Twitch Interactive, Inc.
7
*********************************************************************************************/
8
9
#pragma once
10
11
#include "
twitchsdk/broadcast/internal/muxers/rtmpstate.h
"
12
13
namespace
ttv
14
{
15
namespace
broadcast
16
{
17
class
RtmpCreateStreamState;
18
}
19
}
20
21
class
ttv::broadcast::RtmpCreateStreamState
:
public
RtmpState
22
{
23
public
:
24
RtmpCreateStreamState
(
RtmpContext
* context)
25
:
RtmpState
(context) {}
26
27
virtual
~RtmpCreateStreamState
() {}
28
29
private
:
30
virtual
uint64_t
GetTimeoutDuration
()
const
{
return
5000; }
31
32
virtual
void
OnEnterInternal
();
33
virtual
void
HandleIncomingAmf0
(
ChunkHeader
header,
const
uint8_t* data);
34
35
TTV_ErrorCode
SendOutgoingChunkSizeMessage
();
36
TTV_ErrorCode
SendReleaseStreamMessage
();
37
TTV_ErrorCode
SendFCPublishMessage
();
38
TTV_ErrorCode
SendCreateStreamMessage
();
39
};
rtmpstate.h
ttv::broadcast::RtmpCreateStreamState::OnEnterInternal
virtual void OnEnterInternal()
ttv::broadcast::RtmpState
Definition:
rtmpstate.h:40
ttv::broadcast::RtmpContext
Definition:
rtmpcontext.h:31
ttv::broadcast::RtmpCreateStreamState
Definition:
rtmpcreatestreamstate.h:21
ttv::broadcast::RtmpCreateStreamState::~RtmpCreateStreamState
virtual ~RtmpCreateStreamState()
Definition:
rtmpcreatestreamstate.h:27
ttv
JSON (JavaScript Object Notation).
Definition:
adsapi.h:16
ttv::broadcast::RtmpCreateStreamState::HandleIncomingAmf0
virtual void HandleIncomingAmf0(ChunkHeader header, const uint8_t *data)
ttv::broadcast::RtmpCreateStreamState::SendCreateStreamMessage
TTV_ErrorCode SendCreateStreamMessage()
ttv::broadcast::RtmpCreateStreamState::SendOutgoingChunkSizeMessage
TTV_ErrorCode SendOutgoingChunkSizeMessage()
ttv::broadcast::RtmpCreateStreamState::GetTimeoutDuration
virtual uint64_t GetTimeoutDuration() const
Definition:
rtmpcreatestreamstate.h:30
TTV_ErrorCode
uint32_t TTV_ErrorCode
Definition:
errortypes.h:30
ttv::broadcast::ChunkHeader
Definition:
rtmp.h:141
ttv::broadcast::RtmpCreateStreamState::SendReleaseStreamMessage
TTV_ErrorCode SendReleaseStreamMessage()
ttv::broadcast::RtmpCreateStreamState::SendFCPublishMessage
TTV_ErrorCode SendFCPublishMessage()
ttv::broadcast::RtmpCreateStreamState::RtmpCreateStreamState
RtmpCreateStreamState(RtmpContext *context)
Definition:
rtmpcreatestreamstate.h:24
Generated by
1.8.13