Support for native events on video, dispatch to redux when event happens on video ref, not on specific action #5

Closed
opened 2022-07-19 13:27:01 +02:00 by VityaSchel · 0 comments
VityaSchel commented 2022-07-19 13:27:01 +02:00 (Migrated from github.com)

Describe the bug
Imagine some user has a binding that muted/unmutes video in web browser. Currently redux state is updated when user presses mute/unmute button. On click event, components changes property in player and dispatches to redux. This way, redux will never change its state if user muted video not using this button.

Expected behavior
It's better to dispatch thunks to redux from native video events (such as onVolumeChange) so every change (including component's changes to player instance) will be recorded and rendered.

**Describe the bug** Imagine some user has a binding that muted/unmutes video in web browser. Currently redux state is updated when user presses mute/unmute button. On click event, components changes property in player and dispatches to redux. This way, redux will never change its state if user muted video not using this button. **Expected behavior** It's better to dispatch thunks to redux from native video events (such as onVolumeChange) so every change (including component's changes to player instance) will be recorded and rendered.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hloth/replica-player#5
No description provided.