Class Stream
- Namespace
- Twikit
- Assembly
- Twikit.dll
メディアストリーム(動画の 1 つの画質)。
public sealed class Stream
- Inheritance
-
Stream
- Inherited Members
Constructors
Stream(IRequestClient, JsonObject)
public Stream(IRequestClient client, JsonObject data)
Parameters
clientIRequestClientdataJsonObject
Properties
Bitrate
ビットレート。
public long? Bitrate { get; }
Property Value
- long?
ContentType
MIME タイプ。
public string? ContentType { get; }
Property Value
Data
public JsonObject Data { get; }
Property Value
Url
ストリームの URL。
public string? Url { get; }
Property Value
Methods
DownloadAsync(string)
ストリームをダウンロードしてファイルに保存します。
public Task DownloadAsync(string outputPath)
Parameters
outputPathstring
Returns
GetAsync()
ストリームの内容を取得します。
public Task<byte[]> GetAsync()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.