Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook to control audio #41

Closed
dlcastillop opened this issue Apr 22, 2024 · 2 comments · Fixed by #78
Closed

Hook to control audio #41

dlcastillop opened this issue Apr 22, 2024 · 2 comments · Fixed by #78
Assignees
Labels

Comments

@dlcastillop
Copy link
Collaborator

No description provided.

@uvee-dev
Copy link
Contributor

Can I take it?

@dlcastillop
Copy link
Collaborator Author

dlcastillop commented Apr 24, 2024

Can I take it?

Yes, you can. Please consider this hook must return the following:

  • Function to play (play)
  • Function to pause (pause)
  • Function to toggle pause (togglePause)
  • Function to increase volumen. Allow the developer to enter the increment as a parameter, but if not specified increase it by 5% each time. (increaseVolume)
  • Function to decrease volumen. Allow the developer to enter the decremetnt as a parameter, but if not specified decrease it by 5% each time. (decreaseVolume)
  • Function to mute (mute)
  • Function to unmute (unmute)
  • Function to toggle mute (toggleMute)
  • Function to go forward in the audio. Allow the developer to enter the amount of second they want to advance, but if not specified, increase it by 5 seconds each time. (forward)
  • Function to go back in the audio. Allow the developer to enter the amount of second they want to delay, but if they don't specify it, delay it by 5 seconds each time. (back)

It is like you are building a control remote for audio.

In parentheses I put the name that each function should have. I point out all these specifications so that this hook has the same API as the hook to control the video that I am developing.

Happy coding!

@dlcastillop dlcastillop linked a pull request Apr 27, 2024 that will close this issue
6 tasks
@dlcastillop dlcastillop linked a pull request May 22, 2024 that will close this issue
dlcastillop added a commit that referenced this issue May 31, 2024
@dlcastillop dlcastillop assigned dlcastillop and unassigned uvee-dev May 31, 2024
@dlcastillop dlcastillop linked a pull request May 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants