You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In canary v3.0.0, when I use fallback = false, whenever any state variable updated from the player has an updated value, the video starts again from the beginning.
Expected Behavior
The video should continue to play.
Steps to Reproduce
Use a state variable like const [isPlaying, setIsPlaying] = useState<boolean>(false);
Use fallback = false (or fallback={false as unknown as ReactElement})
Update the state variable using a player prop, like:
onPause={()=>{setIsPlaying(!isPlaying);}}
Let the video play/pause it to trigger the change of your state variable.
The video starts again from the beginning.
fallback={false as unknown as ReactElement} is typed like this as fallback cannot be false with the current typings in v3.
The state variable needs to have an updated value for the restart to happen.
Current Behavior
In canary v3.0.0, when I use
fallback = false
, whenever any state variable updated from the player has an updated value, the video starts again from the beginning.Expected Behavior
The video should continue to play.
Steps to Reproduce
const [isPlaying, setIsPlaying] = useState<boolean>(false);
fallback = false
(orfallback={false as unknown as ReactElement}
)fallback={false as unknown as ReactElement}
is typed like this as fallback cannot be false with the current typings in v3.Environment
The text was updated successfully, but these errors were encountered: