Comments (4)
Hey there! As you've noted, the currentTime
prop does only seek when changed, and is a limitation of the prop API for this since we cannot distinguish between re-renders that should not seek from re-renders that should seek when the currentTime
has not changed.
A better approach here is to use the streamRef
to get access to the actual stream
element and set the currentTime
property on it, which will always trigger seeking.
It looks like streamRef
has an issue with the typings, and we need to add some docs to the README. Working on updating these!
Lastly, regarding the notes for the currentTime
— thanks for mentioning! Looks like this was copied over from other docs and isn't quite accurate in the context of props. Will update this as well.
Thanks for reporting!
from stream-react.
Published a new version that addresses the streamRef
type definition and adds it to the documented props.
Thanks again!
from stream-react.
Awesome, thanks for the detailed reply!
It seems this could be closed, or do you want to leave it open to track the documentation changes?
from stream-react.
I'll close it out when the streamRef
types are fixed and docs are updated!
from stream-react.
Related Issues (20)
- pausing and playing VAST vidoes HOT 2
- For some users the player automatically pauses after ~1 second of playback HOT 2
- Custom full-screen button HOT 2
- 403 status code doesn't trigger any EventListener
- SVG play icon not consistently displaying on iOS HOT 3
- Play Icon is still on the screen after clicking "play" in Chrome and Firefox HOT 2
- Specifying Signed URL results in downloading the manifest m3u8 file HOT 2
- Inspecting error from onError callback HOT 2
- letterboxColor not supported HOT 3
- How can I access the video duration from the API? HOT 4
- Responsive video gets cut off when using full screen API on parent element HOT 6
- Feature: Opensource the player which is being loaded in Iframe HOT 2
- How to hide this loader icon HOT 3
- Remix Run Support? HOT 1
- Add customerCode prop to use a unique subdomain HOT 3
- Multiple rerenders before changing the videoId causes unknown error occured message
- Apply `object-fit: cover` to the `<video/>` element HOT 5
- Feature: Enable a mechanism to show/hide captions on-demand
- Stream height HOT 2
- poster prop is not declarative (does not update poster when URL changes) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-react.