public function VideoRemoteStreamWrapper::stream_read in Video 8.2
Same name and namespace in other branches
- 8 src/StreamWrapper/VideoRemoteStreamWrapper.php \Drupal\video\StreamWrapper\VideoRemoteStreamWrapper::stream_read()
Support for fread(), file_get_contents() etc.
Parameters
int $count: Maximum number of bytes to be read.
Return value
string|bool The string that was read, or FALSE in case of an error.
Overrides PhpStreamWrapperInterface::stream_read
See also
http://php.net/manual/streamwrapper.stream-read.php
File
- src/
StreamWrapper/ VideoRemoteStreamWrapper.php, line 272
Class
- VideoRemoteStreamWrapper
- Defines a video read only stream wrapper class.
Namespace
Drupal\video\StreamWrapperCode
public function stream_read($count) {
return fread($this->handle, $count);
}