question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More documentation about seek()?

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
n1ru4lcommented, Sep 26, 2018

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 ?

0reactions
cobarxcommented, Oct 15, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found