This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
VideoStream::stream()
perform the streaming of calculated range
Source
File: classes/VideoStream.php
private function stream() { $i = $this->start; set_time_limit( 0 ); while ( ! feof( $this->stream ) && $i <= $this->end ) { $bytesToRead = $this->buffer; if ( ( $i + $bytesToRead ) > $this->end ) { $bytesToRead = $this->end - $i + 1; } //$data = fread($this->stream, $bytesToRead); $data = @stream_get_contents( $this->stream, $bytesToRead, $i ); echo $data; flush(); $i += $bytesToRead; } }