AlternativeVideo class final
Describes an alternative re-encoded quality of a video file
Constructors
- AlternativeVideo({required int id, required int width, required int height, required String codec, required File hlsFile, required File video})
-
Describes an alternative re-encoded quality of a video file
const
-
AlternativeVideo.fromJson(Map<
String, dynamic> json) -
Parses a AlternativeVideo from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- codec → String
-
Codec used for video file encoding, for example, "h264", "h265", "av1", or "av01"
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Video height
final
- hlsFile → File
-
HLS file describing the video
final
- id → int
-
Unique identifier of the alternative video, which is used in the HLS file
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- video → File
-
File containing the video
final
- width → int
-
Video width
final
Methods
-
copyWith(
{int? id, int? width, int? height, String? codec, File? hlsFile, File? video}) → AlternativeVideo -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.