remove (or move) paused prop #3576
YangJonghun
started this conversation in
Ideas
Replies: 1 comment
-
@YangJonghun I hope you fix this issue, but you can use the prop at start pause={true}. and then use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think the
paused
prop needs to be fixed before v6 is released.Many situations require synchronizing the state of the video and the UI (controller) implemented in JS, and it would be great if we could only synchronize it in JS, but in reality the state is often changed by other external factors, so there is a lot of room for misunderstanding and misuse.
In most cases, you can synchronize the state in JS with
ref.resume()
,ref.puase()
, andonPlaybackStateChanged
, with the only exception being that they don't handle whether or not the video is playing when it first starts.Therefore, I think the proper implementation of paused is to expose it externally so that it is controllable only when the first state is injected, such as
startPosition
in thesource
prop.example)
Beta Was this translation helpful? Give feedback.
All reactions