STRUCTS
Asap
Defined in fuchsia.media2/transport.fidl
As soon as possible.
<EMPTY>
PayloadRange
Defined in fuchsia.media2/payload_range.fidl
Describes a packet payload.
Field | Type | Description | Default |
---|---|---|---|
buffer_id |
uint32
|
The id of the buffer in which the payload resides. |
No default |
offset |
uint64
|
The offset of the payload in the specified buffer. |
No default |
size |
uint64
|
The size in bytes of the payload. |
No default |
ENUMS
ConsumerClosedReason flexible
Type: uint32
Defined in fuchsia.media2/reasons.fidl
Used to indicate why a consumer has closed a stream sink connection. TODO(dalesat): Expand this enum as needed.
Name | Value | Description |
---|---|---|
REQUESTED_BY_CLIENT |
1 |
The consumer's client requested that the connection be closed. |
PROTOCOL_ERROR |
2 |
The client violated the StreamSink protocol. For example, the client's StartSegmeent call did not use a strictly-increasing ID. |
INVALID_PACKET |
3 |
The client sent an invalid Packet. |
ProducerClosedReason flexible
Type: uint32
Defined in fuchsia.media2/reasons.fidl
Used to indicate why a producer has closed a stream sink connection. TODO(dalesat): Expand this enum as needed.
Name | Value | Description |
---|---|---|
REQUESTED_BY_CLIENT |
1 |
The producer's client requested that the connection be closed. |
UNIONS
RealOrStreamTime flexible
Defined in fuchsia.media2/transport.fidl
Specifies a real time or a stream time. Real time is expressed using a system monotonic or reference clock time. Stream time is expressed either as a duration or as a packet timestamp in the relevant units. This type is used when a transport control operation is to occur using a time value that is meaningful when the transport is progressing.
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
asap |
Asap
|
As soon as possible. |
2 |
system_time |
zx/Time
|
Real time according to the system monotonic clock. |
3 |
reference_time |
zx/Time
|
Real time according to the relevant reference clock. If no reference
clock (other than the system clock) is relevant, this is equivalent to
|
4 |
stream_time |
zx/Duration
|
Stream time expressed as a duration (nanoseconds). |
5 |
packet_timestamp |
int64
|
Stream time expressed in the same timestamps that are used on the relevant packets. |
RealTime flexible
Defined in fuchsia.media2/transport.fidl
Specifies a real time using a system monotonic or reference clock time or an option specifying ‘as soon as possible’. This type is used when a transport control operation is to occur using a time value that is meaningful when the transport is stopped.
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
asap |
Asap
|
As soon as possible. |
2 |
system_time |
zx/Time
|
Real time according to the system monotonic clock. |
3 |
reference_time |
zx/Time
|
Real time according to the relevant reference clock. If no reference
clock (other than the system clock) is relevant, this is equivalent to
|
StreamTime flexible
Defined in fuchsia.media2/transport.fidl
Specifies a stream time either as a duration or as a packet timestamp in the relevant timestamp units. This type is used when a transport control operation is to define a positional offset value that is relative to the beginning of the stream.
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
stream_time |
zx/Duration
|
Stream time expressed as a duration (nanoseconds). |
2 |
packet_timestamp |
int64
|
Stream time expressed in the same timestamps that are used on the relevant packets. |