remotion-dev/remotion

Allow to customize the Player UI more, e.g. the Play button #740

JonnyBurger posted onGitHub

šŸŽƒ This issue is part of our Hacktoberfest campaign! šŸ“š Read more about Hacktoberfest here šŸ•› This issue is currently assigned to @uragirii šŸ’° Thanks to CodeChem for sponsoring this issue!

Right now you can set controls for the Player and choose the default behavior, or you have the build the UI completely yourself. Screenshot 2022-10-06 at 17 50 52

We want to introduce a middle-way where you can override only certain elements of the Player control.

Acceptance criteria

  • Allow at least two types of elements to be overridden, one of them being the Play/Pause button. Others can be: Fullscreen button, volume control, Time component, Slider
  • The API could look something like this:
import { PlayButtonRenderMethod } from "@remotion/player"

// ...
const renderPlayPauseButton = useCallback(({paused}) => {
  if (paused) {
    return <CustomPauseButton />
  }

  return <CustomPlayButton />
}, []);

<Player renderPlayPauseButton={renderPlayPauseButton} />
  • Add documentation to packages/docs/docs/player/api.md

@remotion-dev has funded $223.00 to this issue.


posted by issuehunt-app[bot] over 2 years ago

Can i work on this?

posted by uragirii over 2 years ago

@uragirii Assigned!

posted by JonnyBurger over 2 years ago

@JonnyBurger should i provide an option to customise the whole button here or simply the ui icon?

posted by uragirii over 2 years ago

It would be nice if you can replace everything inside the container that has the click listener attached.

posted by JonnyBurger over 2 years ago

@JonnyBurger can you also accept the PR on issuehunt?

posted by uragirii over 2 years ago

@jonnyburger has rewarded $200.70 to @uragirii. See it on IssueHunt

  • :moneybag: Total deposit: $223.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $22.30
posted by issuehunt-app[bot] over 2 years ago

@uragirii Sorry for missing that! Done now šŸ’°

posted by JonnyBurger over 2 years ago

No problem šŸ˜‰ thanks šŸ™

posted by uragirii over 2 years ago

Fund this Issue

$223.00
Rewarded

Rewarded pull request

Recent activities

uragirii was rewarded by jonnyburger for remotion-dev/remotion# 740
over 2 years ago
uragirii submitted an output to  remotion-dev/ remotion# 740
over 2 years ago