pub fn find_boxes_stream<R>(
reader: R,
) -> impl Iterator<Item = Result<PsshBox, Error>>where
R: Read,Expand description
Extract PSSH boxes from a stream of octets (an object that implements Read), if any are
present. Returns an iterator whose elements are a PsshBox or an io::Error. The input is read
in streaming mode (chunk by chunk), without storing the entire contents in memory. The search is
undertaken lazily: successive chunks of octets are read only as needed for the iterator to
provide the next item.