class StreamSink
Defined at line 22046 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/hlcpp/fuchsia/media/cpp/fidl.h
Consumes a stream of packets. This interface is typically inherited along
with `StreamBufferSet` to enable the transport of elementary streams from
clients to services.
Public Methods
void ~StreamSink ()
void SendPacket (::fuchsia::media::StreamPacket packet, SendPacketCallback callback)
Sends a packet to the service. The response is sent when the service is
done with the associated payload memory.
`packet` must be valid for the current buffer set, otherwise the service
will close the connection.
void SendPacketNoReply (::fuchsia::media::StreamPacket packet)
Sends a packet to the service. This interface doesn't define how the
client knows when the sink is done with the associated payload memory.
The inheriting interface must define that.
`packet` must be valid for the current buffer set, otherwise the service
will close the connection.
void EndOfStream ()
Indicates the stream has ended. The precise semantics of this method are
determined by the inheriting interface.
void DiscardAllPackets (DiscardAllPacketsCallback callback)
Discards packets previously sent via `SendPacket` or `SendPacketNoReply`
and not yet released. The response is sent after all packets have been
released.
void DiscardAllPacketsNoReply ()
Discards packets previously sent via `SendPacket` or `SendPacketNoReply`
and not yet released.