Class Session
- Namespace
- Vonage.Video.ExperienceComposer
- Assembly
- Vonage.dll
Represents an Experience Composer session.
public record Session : IEquatable<Session>
- Inheritance
-
Session
- Implements
- Inherited Members
Constructors
Session(string, string, Guid, long, Uri, long, string, Uri, RenderResolution, SessionStatus, string, string)
Represents an Experience Composer session.
public Session(string Id, string SessionId, Guid ApplicationId, long CreatedAt, Uri CallbackUrl, long UpdatedAt, string Name, Uri Url, RenderResolution Resolution, SessionStatus Status, string StreamId, string Reason)
Parameters
IdstringThe unique ID for the Experience Composer.
SessionIdstringThe session ID of the Vonage Video session you are working with
ApplicationIdGuidA Vonage Application ID
CreatedAtlongThe time the Experience Composer started, expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
CallbackUrlUriThe callback URL for Experience Composer events (if one was set).
UpdatedAtlongThis is the UNIX timestamp when the Experience Composer status was last updated. For this start method, this timestamp matches the createdAt timestamp.
NamestringThe name of the composed output stream which is published to the session.
UrlUriA publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.
ResolutionRenderResolutionThe resolution of the archive, either "640x480" (SD landscape, the default), "1280x720" (HD landscape), "1920x1080" (FHD landscape), "480x640" (SD portrait), "720x1280" (HD portrait), or "1080x1920" (FHD portrait). You may want to use a portrait aspect ratio for archives that include video streams from mobile devices (which often use the portrait aspect ratio). This property only applies to composed archives. If you set this property and set the outputMode property to "individual", the call to the REST method results in an error.
StatusSessionStatusThe session status.
StreamIdstringThe ID of the composed stream being published.
ReasonstringThe reason field is only available when the status is either "stopped" or "failed". If the status is stopped, the reason field will contain either "Max Duration Exceeded" or "Stop Requested." If the status is failed, the reason will contain a more specific error message.
Properties
ApplicationId
A Vonage Application ID
public Guid ApplicationId { get; init; }
Property Value
CallbackUrl
The callback URL for Experience Composer events (if one was set).
public Uri CallbackUrl { get; init; }
Property Value
CreatedAt
The time the Experience Composer started, expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
public long CreatedAt { get; init; }
Property Value
Id
The unique ID for the Experience Composer.
public string Id { get; init; }
Property Value
Name
The name of the composed output stream which is published to the session.
public string Name { get; init; }
Property Value
Reason
The reason field is only available when the status is either "stopped" or "failed". If the status is stopped, the reason field will contain either "Max Duration Exceeded" or "Stop Requested." If the status is failed, the reason will contain a more specific error message.
public string Reason { get; init; }
Property Value
Resolution
The resolution of the archive, either "640x480" (SD landscape, the default), "1280x720" (HD landscape), "1920x1080" (FHD landscape), "480x640" (SD portrait), "720x1280" (HD portrait), or "1080x1920" (FHD portrait). You may want to use a portrait aspect ratio for archives that include video streams from mobile devices (which often use the portrait aspect ratio). This property only applies to composed archives. If you set this property and set the outputMode property to "individual", the call to the REST method results in an error.
[JsonConverter(typeof(EnumDescriptionJsonConverter<RenderResolution>))]
public RenderResolution Resolution { get; init; }
Property Value
SessionId
The session ID of the Vonage Video session you are working with
public string SessionId { get; init; }
Property Value
Status
The session status.
[JsonConverter(typeof(EnumDescriptionJsonConverter<SessionStatus>))]
public SessionStatus Status { get; init; }
Property Value
StreamId
The ID of the composed stream being published.
public string StreamId { get; init; }
Property Value
UpdatedAt
This is the UNIX timestamp when the Experience Composer status was last updated. For this start method, this timestamp matches the createdAt timestamp.
public long UpdatedAt { get; init; }
Property Value
Url
A publicly reachable URL controlled by the customer and capable of generating the content to be rendered without user intervention.
public Uri Url { get; init; }