More documentation about seek()?
See original GitHub issueI believe the necessity for a better documentation for seek() is highly undervalued.
Some questions that I ran into while developing using react-native-video:
- Is seek() an async function?
- How does seek() affect the props of
<Video>
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Python seek() function - GeeksforGeeks
In Python, seek() function is used to change the position of the File Handle to a given specific position. File handle is like...
Read more >Python File seek() Method - Tutorialspoint
Python file method seek() sets the file's current position at the offset. The whence argument is optional and defaults to 0, which means...
Read more >seek — Python Reference (The Right Way) 0.1 documentation
If the file is only opened for writing in append mode (mode 'a'), this method is essentially a no-op, but it remains useful...
Read more >Python File seek() Method - W3Schools
The seek() method sets the current file position in a file stream. The seek() method also returns the new postion. Syntax. file.seek(offset). Parameter...
Read more >seek() function? - python - Stack Overflow
A seek() operation moves that pointer to some other part of the file so you can read or write at that place. So,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Take a look at this code:
https://github.com/react-native-community/react-native-video/blob/2e3ded763a9df2acdbae36450d392345554a678d/Video.js#L53
It is not an async function, however the seek is not immediate because the javascript thread and the corresponding ios/java thread are not in sync.
You can learn more about the bridge between javascript and native code here: https://hackernoon.com/understanding-react-native-bridge-concept-e9526066ddb8
Could you please be more specific with the question:
How does seek() affect the props of ?
Which platform are you seeing this issue on? I believe there is an open PR for iOS to handle an issue like this.
If you can paste in a snippet for just the Video related code, I can test that PR and see about getting this fixed.