-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ResetReader function for resetting the underlying file in IVFReader. This is for keeping the stream alive if the file is being encoded at the same time as it's being streamed. It takes in a function that returns an io.Reader. A sample function might look like: func(bytesRead int64) io.Reader { underlyingFile.Seek(bytesRead, io.SeekStart) return underlyingFile } and you would call it when ivf.ParseNextFrame(...) returns an error indicating incomplete data.
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters