-
Notifications
You must be signed in to change notification settings - Fork 0
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
First Draft #2
base: review-branch
Are you sure you want to change the base?
First Draft #2
Conversation
Example karaoke
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lekker bezig hoor! Ik heb het idee dat sommige stukken nog ingewikkelder of 'mooier' zijn dan nodig, misschien daar nog even over sparren. Ook goed om later Erik hier ook nog eens naar te laten kijken.
readme.md
Outdated
| Key | Initial values | Description | | ||
|-----------------| --- |---------------------------------------------------------------------------------------------------------------| | ||
| `subtitles` | `[]` | An array of all subtitles available for the specified language. | | ||
| `current` | See below. | An object representing the currently active subtitle and metadata, with metadata containing the properties `startTime`, `endTime`, and `text`, and subtitle also containing `voice`[^1]. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik zou hier een andere naam aan geven, zodat je meteen snapt wat erin zit. Nu doet current
me teveel denken aan een ref, waardoor ik het idee heb dat er iets sketchies gebeurt (wat niet zo is). Wellicht active
of activeSubtitle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had ik ook, ik zou gaan voor activeSubtitle
@@ -0,0 +1,23 @@ | |||
/** @param {{ text: string }} _*/ | |||
export function getVoiceFromCue({ text }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zou text
dan niet cue
moeten heten?
Co-authored-by: Peeke <[email protected]>
Co-authored-by: Peeke <[email protected]>
Co-authored-by: Peeke <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Geen gek idee om een keer samen te zitten. Ik denk dat we best wel wat dingen iets makkelijker kunnen maken.
Is wel altijd een tricky om vanuit React met dingen uit de DOM te communiceren :-D
Wel leuk projectje!
|
||
| Key | Initial values | Description | | ||
|-----------------| --- |---------------------------------------------------------------------------------------------------------------| | ||
| `subtitles` | `[]` | An array of all subtitles available for the specified language. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deze zag ik volgens mij niet in de voorbeelden in de readme terug komen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Het is ook nog onduidelijk wat de structuur is van subtitles
, Ik zou gokken dat het dit is:
subtitles: Array<Subtitle>
activeSubtitle: Subtitle
ref: React.Ref
En dan kun je Subtitle
beschrijven.
Changes
metadata
can be JSON, as per WebVTT specvoice
is parsed from cues, as per WebVTT spec