Twitch SDK (Internal)
modules
broadcast
broadcast_common
include
twitchsdk
broadcast
packet.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/broadcasttypes.h
"
12
#include <vector>
13
14
namespace
ttv
15
{
16
namespace
broadcast
17
{
18
struct
Packet;
19
}
20
}
21
22
26
struct
ttv::broadcast::Packet
27
{
28
Packet
()
29
:
timestamp
(0)
30
,
cts
(0)
31
,
streamIndex
(0)
32
,
keyframe
(false)
33
,
sequenceHeader
(false)
34
{
35
}
36
37
std::vector<uint8_t>
data
;
38
uint64_t
timestamp
;
39
uint32_t
cts
;
40
uint32_t
streamIndex
;
41
bool
keyframe
;
42
bool
sequenceHeader
;
// TODO: This is AVC specific but I don't have a better idea right now
43
};
ttv::broadcast::Packet
Definition:
packet.h:26
ttv::broadcast::Packet::streamIndex
uint32_t streamIndex
Definition:
packet.h:40
ttv::broadcast::Packet::sequenceHeader
bool sequenceHeader
Definition:
packet.h:42
ttv::broadcast::Packet::timestamp
uint64_t timestamp
Definition:
packet.h:38
ttv::broadcast::Packet::keyframe
bool keyframe
Definition:
packet.h:41
ttv::broadcast::Packet::data
std::vector< uint8_t > data
Definition:
packet.h:37
ttv
JSON (JavaScript Object Notation).
Definition:
adsapi.h:16
ttv::broadcast::Packet::cts
uint32_t cts
Definition:
packet.h:39
broadcasttypes.h
ttv::broadcast::Packet::Packet
Packet()
Definition:
packet.h:28
Generated by
1.8.13