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

[highlighter] - new games and import flow #5347

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

marvinoffers
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

} else {
callback();
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

not blocking but there is actually a cleaner way to do this if the validation is just a regex match like this:

const specialCharacterValidator = {
  pattern: /[\\/:"*?<>|]+/g,
  message: $t('You cannot use special characters in this field'),
}
...
<Input rules={[specialCharacterValidator]} />

setDraggingOver(true);
}}
onDrop={e => {
console.log(e.dataTransfer.files);
Copy link
Contributor

Choose a reason for hiding this comment

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

console log

style={
{
'--border-style': filePath ? 'solid' : 'dashed',
'--border-color': draggingOver ? 'var(--teal)' : 'var(--midtone)',
Copy link
Contributor

Choose a reason for hiding this comment

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

do borderStyle and borderColor not work here?

objectFit: 'cover',
borderRadius: '2px',
}}
onError={e => {
Copy link
Contributor

Choose a reason for hiding this comment

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

when are we expecting this to happen?

background-color: #232d3530;
border-radius: 22px;
margin-top: 8px;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

while global styles should be wrapped in a scoped class we generally want to avoid that for other scoped classes as it impacts performance when painting frames

) : (
<>
<span style={{ fontWeight: 700 }}>Ai Highlighter requirements</span>
<span style={{ fontWeight: 700 }}>AI Highlighter requirements</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

needs translation

@@ -423,6 +420,19 @@ export class HighlighterService extends PersistentStatefulService<IHighlighterSt
title: this.streamingService.views.settings.platforms.twitch?.title,
game,
};

// console.log('recording Alreadyt running?:', this.streamingService.views.isRecording);
Copy link
Contributor

Choose a reason for hiding this comment

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

comment

});

if (this.streamingService.views.isRecording) {
// console.log('Recording is already running');
Copy link
Contributor

Choose a reason for hiding this comment

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

comment

});
})
.catch(error => {
console.error('Failed getting duration right after the recoding.', error);
});

aiRecordingInProgress = false;
this.detectAndClipAiHighlights(path, streamInfo, true);
// this.detectAndClipAiHighlights(path, streamInfo, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

comment

WARZONE = 'warzone',
MARVEL_RIVALS = 'marvel_rivals',
WAR_THUNDER = 'war_thunder',
VALORANT = 'valorant',
Copy link
Contributor

Choose a reason for hiding this comment

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

just fyi the enum values can have spaces in them, might be useful for the switch in highlighter/index.ts

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.

4 participants