teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
DocumentAttributeVideo
Class DocumentAttributeVideo
Hierarchy (
View Summary
)
VirtualClass
<
{
duration
:
double
;
h
:
int
;
nosound
?:
boolean
;
preloadPrefixSize
?:
int
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
double
;
w
:
int
;
}
,
>
DocumentAttributeVideo
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
CONSTRUCTOR_
ID
duration
h
nosound?
original
Args
preload
Prefix
Size?
round
Message?
SUBCLASS_
OF_
ID
supports
Streaming?
video
Codec?
video
Start
Ts?
w
Constructors
constructor
new
DocumentAttributeVideo
(
args
:
{
duration
:
number
;
h
:
number
;
nosound
?:
boolean
;
preloadPrefixSize
?:
number
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
number
;
w
:
number
;
}
,
)
:
DocumentAttributeVideo
Parameters
args
:
{
duration
:
number
;
h
:
number
;
nosound
?:
boolean
;
preloadPrefixSize
?:
number
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
number
;
w
:
number
;
}
Returns
DocumentAttributeVideo
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
DocumentAttributeVideo
Parameters
reader
:
any
Returns
DocumentAttributeVideo
Static
serialize
Bytes
serializeBytes
(
data
:
string
|
Buffer
<
ArrayBufferLike
>
)
:
Buffer
Parameters
data
:
string
|
Buffer
<
ArrayBufferLike
>
Returns
Buffer
Static
serialize
Date
serializeDate
(
date
:
number
|
Date
)
:
Buffer
Parameters
date
:
number
|
Date
Returns
Buffer
get
Bytes
getBytes
()
:
Buffer
Returns
Buffer
to
JSON
toJSON
()
:
{
duration
:
number
;
h
:
number
;
nosound
?:
boolean
;
preloadPrefixSize
?:
number
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
number
;
w
:
number
;
}
Returns
{
duration
:
number
;
h
:
number
;
nosound
?:
boolean
;
preloadPrefixSize
?:
number
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
number
;
w
:
number
;
}
Properties
Static
class
Name
className
:
string
Static
class
Type
classType
:
"constructor"
|
"request"
Static
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
number
Static
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
number
class
Name
className
:
"DocumentAttributeVideo"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
1137015880
duration
duration
:
number
h
h
:
number
Optional
nosound
nosound
?:
boolean
original
Args
originalArgs
:
{
duration
:
number
;
h
:
number
;
nosound
?:
boolean
;
preloadPrefixSize
?:
number
;
roundMessage
?:
boolean
;
supportsStreaming
?:
boolean
;
videoCodec
?:
string
;
videoStartTs
?:
number
;
w
:
number
;
}
Optional
preload
Prefix
Size
preloadPrefixSize
?:
number
Optional
round
Message
roundMessage
?:
boolean
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
4146719643
Optional
supports
Streaming
supportsStreaming
?:
boolean
Optional
video
Codec
videoCodec
?:
string
Optional
video
Start
Ts
videoStartTs
?:
number
w
w
:
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
class
Name
class
Type
CONSTRUCTOR_
ID
duration
h
nosound
original
Args
preload
Prefix
Size
round
Message
SUBCLASS_
OF_
ID
supports
Streaming
video
Codec
video
Start
Ts
w
GitHub
npm
Issues
teleproto - v1.229.0
Loading...