Table of Contents

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

client IRequestClient
data JsonObject

Properties

Bitrate

ビットレート。

public long? Bitrate { get; }

Property Value

long?

ContentType

MIME タイプ。

public string? ContentType { get; }

Property Value

string

Data

public JsonObject Data { get; }

Property Value

JsonObject

Url

ストリームの URL。

public string? Url { get; }

Property Value

string

Methods

DownloadAsync(string)

ストリームをダウンロードしてファイルに保存します。

public Task DownloadAsync(string outputPath)

Parameters

outputPath string

Returns

Task

GetAsync()

ストリームの内容を取得します。

public Task<byte[]> GetAsync()

Returns

Task<byte[]>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.