Table of Contents

Class EmbeddedVideo

Namespace
idunno.Bluesky.Embed
Assembly
idunno.Bluesky.dll

Defines the record structure for embedding videos in a post.

public record EmbeddedVideo : EmbeddedMediaBase, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>, IEquatable<EmbeddedMediaBase>, IEquatable<EmbeddedVideo>

Inheritance

AtProtoRecord

Implements

Inherited Members

AtProtoRecord.Equals(AtProtoRecord?)
AtProtoRecord.GetHashCode()
AtProtoRecord.ToString()
AtProtoRecord.PrintMembers(StringBuilder)
AtProtoRecord.Equals(object?)
AtProtoRecord.<Clone>$()
AtProtoRecord.EqualityContract
AtProtoRecord.ExtensionData

Constructors

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

presentation string?

A hint to the client about how to present the video.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, Caption, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

caption Caption

A idunno.Bluesky.Embed.Caption for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video or caption is null.

EmbeddedVideo(EmbeddedVideo)

protected EmbeddedVideo(EmbeddedVideo original)

Parameters

original EmbeddedVideo

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

presentation string?

A hint to the client about how to present the video.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, Caption, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

caption Caption

A idunno.Bluesky.Embed.Caption for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video or caption is null.

EmbeddedVideo(EmbeddedVideo)

protected EmbeddedVideo(EmbeddedVideo original)

Parameters

original EmbeddedVideo

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?, string?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

[JsonConstructor]
public EmbeddedVideo(Blob video, ICollection<Caption>? captions = null, string? altText = null, AspectRatio? aspectRatio = null, string? presentation = null)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

presentation string?

A hint to the client about how to present the video.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, ICollection<Caption>?, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, ICollection<Caption>? captions, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

captions ICollection<Caption>?

A collection of idunno.Bluesky.Embed.Captions for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

EmbeddedVideo(Blob, Caption, string?, AspectRatio?)

Constructs a new instance of idunno.Bluesky.Embed.EmbeddedVideo

public EmbeddedVideo(Blob video, Caption caption, string? altText, AspectRatio? aspectRatio)

Parameters

video Blob

The idunno.AtProto.Blob containing the video.

caption Caption

A idunno.Bluesky.Embed.Caption for the video, if any.

altText string?

The alternative text for the video, if any.

aspectRatio AspectRatio?

The idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

Exceptions

ArgumentNullException

Thrown when video or caption is null.

EmbeddedVideo(EmbeddedVideo)

protected EmbeddedVideo(EmbeddedVideo original)

Parameters

original EmbeddedVideo

Properties

AltText

Gets the alternative text for the video, if any.

[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }

Property Value

string?

AltText

Gets the alternative text for the video, if any.

[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }

Property Value

string?

AltText

Gets the alternative text for the video, if any.

[JsonInclude]
[JsonPropertyName("alt")]
public string? AltText { get; init; }

Property Value

string?

AspectRatio

Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

AspectRatio

Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

AspectRatio

Gets the idunno.Bluesky.Embed.EmbeddedVideo.AspectRatio of the video, if any.

[JsonInclude]
public AspectRatio? AspectRatio { get; init; }

Property Value

AspectRatio?

Captions

Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.

[JsonInclude]
public ICollection<Caption>? Captions { get; init; }

Property Value

ICollection<Caption>?

Captions

Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.

[JsonInclude]
public ICollection<Caption>? Captions { get; init; }

Property Value

ICollection<Caption>?

Captions

Gets a collection of idunno.Bluesky.Embed.Captions for the video, if any.

[JsonInclude]
public ICollection<Caption>? Captions { get; init; }

Property Value

ICollection<Caption>?

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Presentation

Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }

Property Value

string?

Presentation

Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }

Property Value

string?

Presentation

Gets a hint to the client about how to present the video. Known values are provided by idunno.Bluesky.Embed.VideoPresentationKnownValues, but may contain any value.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Presentation { get; init; }

Property Value

string?

Video

Gets the idunno.AtProto.Blob information for the video.

[JsonInclude]
public Blob Video { get; init; }

Property Value

Blob

Video

Gets the idunno.AtProto.Blob information for the video.

[JsonInclude]
public Blob Video { get; init; }

Property Value

Blob

Video

Gets the idunno.AtProto.Blob information for the video.

[JsonInclude]
public Blob Video { get; init; }

Property Value

Blob

Methods

<Clone>$()

public override EmbeddedVideo <Clone>$()

Returns

EmbeddedVideo

<Clone>$()

public override EmbeddedVideo <Clone>$()

Returns

EmbeddedVideo

<Clone>$()

public override EmbeddedVideo <Clone>$()

Returns

EmbeddedVideo

Equals(EmbeddedVideo?)

Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.

public virtual bool Equals(EmbeddedVideo? other)

Parameters

other EmbeddedVideo?

The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedMediaBase?)

public override sealed bool Equals(EmbeddedMediaBase? other)

Parameters

other EmbeddedMediaBase?

Returns

bool

Equals(EmbeddedVideo?)

Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.

public virtual bool Equals(EmbeddedVideo? other)

Parameters

other EmbeddedVideo?

The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedMediaBase?)

public override sealed bool Equals(EmbeddedMediaBase? other)

Parameters

other EmbeddedMediaBase?

Returns

bool

Equals(EmbeddedVideo?)

Determines whether the specified idunno.Bluesky.Embed.EmbeddedVideo is equal to the current instance.

public virtual bool Equals(EmbeddedVideo? other)

Parameters

other EmbeddedVideo?

The idunno.Bluesky.Embed.EmbeddedVideo to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Embed.EmbeddedVideo.Captions is compared by its contents rather than by reference.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedMediaBase?)

public override sealed bool Equals(EmbeddedMediaBase? other)

Parameters

other EmbeddedMediaBase?

Returns

bool

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool

operator ==(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool

operator ==(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator ==(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool

operator !=(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool

operator !=(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool

operator !=(EmbeddedVideo?, EmbeddedVideo?)

public static bool operator !=(EmbeddedVideo? left, EmbeddedVideo? right)

Parameters

left EmbeddedVideo?
right EmbeddedVideo?

Returns

bool