toggle menu
RootEncoder
androidJvm
switch theme
search in API
rtmp
/
com.pedro.rtmp.rtmp.message.data
/
DataAmf0
Data
Amf0
class
DataAmf0
(
name
:
String
=
""
,
timeStamp
:
Int
=
0
,
streamId
:
Int
=
0
,
basicHeader
:
BasicHeader
=
BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark)
)
:
Data
Created by pedro on 21/04/21.
Members
Constructors
Data
Amf0
Link copied to clipboard
constructor
(
name
:
String
=
""
,
timeStamp
:
Int
=
0
,
streamId
:
Int
=
0
,
basicHeader
:
BasicHeader
=
BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark)
)
Properties
header
Link copied to clipboard
val
header
:
RtmpHeader
Functions
add
Data
Link copied to clipboard
fun
addData
(
amfData
:
AmfData
)
get
Size
Link copied to clipboard
open
override
fun
getSize
(
)
:
Int
get
Type
Link copied to clipboard
open
override
fun
getType
(
)
:
MessageType
read
Body
Link copied to clipboard
open
override
fun
readBody
(
input
:
InputStream
)
store
Body
Link copied to clipboard
open
override
fun
storeBody
(
)
:
ByteArray
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
update
Header
Link copied to clipboard
fun
updateHeader
(
rtmpHeader
:
RtmpHeader
)
write
Body
Link copied to clipboard
suspend
fun
writeBody
(
socket
:
RtmpSocket
)
write
Header
Link copied to clipboard
suspend
fun
writeHeader
(
socket
:
RtmpSocket
)