1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-26 15:37:41 +01:00
smov/src/components/player
2023-09-01 17:47:09 +02:00
..
atoms move video to old and setup new video structure 2023-07-23 15:00:08 +02:00
base basics of new video player state 2023-07-23 16:30:22 +02:00
display remove controller, introduce display interfaces 2023-09-01 17:47:09 +02:00
hooks basics of new video player state 2023-07-23 16:30:22 +02:00
internals start of a player thingy 2023-08-15 19:55:48 +02:00
index.tsx move video to old and setup new video structure 2023-07-23 15:00:08 +02:00
Player.tsx start of a player thingy 2023-08-15 19:55:48 +02:00
README.md start of a player thingy 2023-08-15 19:55:48 +02:00

Video player component

Video player is quite a complex component, so here is a rundown of all the parts

Composable parts

These parts can be used to build any shape of a video player.

  • /atoms- any ui element that controls the player. (Seekbar, Pause button, quality selection, etc)
  • /base - base components that are used to build a player. Like the main container

internal parts

These parts are internally used, they aren't exported. Do not use them outside of player internals.

  • /display - display interface, abstraction on how to actually play the content (e.g Video element, HLS player, Standard video element, etc)
  • /internals - Internal components that are always rendered on every player.
  • /utils - miscellaneous logic
  • /hooks - hooks only used for video player
  • ~/src/stores/player - state for the video player. Should only be used by internal parts