fuchsia.media2

Added: HEAD

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.

FieldTypeDescriptionDefault
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.

NameValueDescription
1

The consumer's client requested that the connection be closed.

2

The client violated the StreamSink protocol. For example, the client's StartSegmeent call did not use a strictly-increasing ID.

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.

NameValueDescription
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.

OrdinalVariantTypeDescription
asap Asap

As soon as possible.

system_time zx/Time

Real time according to the system monotonic clock.

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 system_time.

stream_time zx/Duration

Stream time expressed as a duration (nanoseconds).

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.

OrdinalVariantTypeDescription
asap Asap

As soon as possible.

system_time zx/Time

Real time according to the system monotonic clock.

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 system_time.

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.

OrdinalVariantTypeDescription
stream_time zx/Duration

Stream time expressed as a duration (nanoseconds).

packet_timestamp int64

Stream time expressed in the same timestamps that are used on the relevant packets.