Table of Contents

Class StreamData

Namespace
TorBoxSDK.Models.Stream
Assembly
TorBoxSDK.dll

Represents the stream data response for direct playback.

public sealed record StreamData : IEquatable<StreamData>
Inheritance
StreamData
Implements
Inherited Members

Properties

AudioIndex

Gets the selected audio track index, or null if not available.

[JsonPropertyName("audio_index")]
public int? AudioIndex { get; init; }

Property Value

int?

Domain

Gets the stream domain, or null if not available.

[JsonPropertyName("domain")]
public string? Domain { get; init; }

Property Value

string

FileToken

Gets the file token, or null if not available.

[JsonPropertyName("file_token")]
public string? FileToken { get; init; }

Property Value

string

HlsUrl

Gets the HLS playback URL, or null if not available.

[JsonPropertyName("hls_url")]
public string? HlsUrl { get; init; }

Property Value

string

IsTranscoding

Gets a value indicating whether transcoding is currently active.

[JsonPropertyName("is_transcoding")]
public bool? IsTranscoding { get; init; }

Property Value

bool?

Metadata

Gets nested stream metadata, or null if not available.

[JsonPropertyName("metadata")]
public StreamMetadata? Metadata { get; init; }

Property Value

StreamMetadata

NeedsTranscoding

Gets a value indicating whether transcoding is required.

[JsonPropertyName("needs_transcoding")]
public bool? NeedsTranscoding { get; init; }

Property Value

bool?

PresignedToken

Gets the presigned token for stream access, or null if not available.

[JsonPropertyName("presigned_token")]
public string? PresignedToken { get; init; }

Property Value

string

ResolutionIndex

Gets the selected resolution index, or null if not available.

[JsonPropertyName("resolution_index")]
public int? ResolutionIndex { get; init; }

Property Value

int?

SearchMetadata

Gets search metadata payload, or null if not available.

[JsonPropertyName("search_metadata")]
public object? SearchMetadata { get; init; }

Property Value

object

SubtitleIndex

Gets the selected subtitle track index, or null if not available.

[JsonPropertyName("subtitle_index")]
public int? SubtitleIndex { get; init; }

Property Value

int?

Token

Gets the stream token, or null if not available.

[JsonPropertyName("token")]
public string? Token { get; init; }

Property Value

string