Skip to content

Custom hook for MediaPlayer and VideoJSPlayer handling - #647

Merged
Dananji merged 5 commits into
mainfrom
state-refactor4-630
Sep 30, 2024
Merged

Custom hook for MediaPlayer and VideoJSPlayer handling#647
Dananji merged 5 commits into
mainfrom
state-refactor4-630

Conversation

@Dananji

@Dananji Dananji commented Sep 19, 2024

Copy link
Copy Markdown
Collaborator

Related issue: #630

Includes custom hook implementations for player related state updates.

For some of the functionality in the custom hooks, unit tests are added. Most of the code in these hooks are covered by the unit tests in respective components' test-cases. Test coverage in the new module @Services/ramp-hooks.js added in this work (#630) is around 70%. The parts that are not covered in tests are either impossible/hard to write tests with just the custom hook functionality.

@Dananji
Dananji force-pushed the state-refactor4-630 branch 2 times, most recently from 870cd1a to f92b814 Compare September 23, 2024 18:59
@Dananji
Dananji marked this pull request as ready for review September 24, 2024 20:35

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great as far as I can tell!

Comment thread src/components/MediaPlayer/VideoJS/VideoJSPlayer.js
@Dananji
Dananji force-pushed the state-refactor4-630 branch from f94085a to 7d380c5 Compare September 30, 2024 18:48
@Dananji
Dananji merged commit 6870d37 into main Sep 30, 2024
@Dananji
Dananji deleted the state-refactor4-630 branch September 30, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants