Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export function TwitchEditStreamInfo(p: IPlatformComponentParams<'twitch'>) {
p.isStreamShiftMode,
]);

// Twitch enhanced broadcasting is only available on Windows and Apple Silicon Macs due to hardware encoding requirements
const isEnhancedBroadcastingVisible =
process.platform !== 'darwin' || (process.platform === 'darwin' && process.arch === 'arm64');

const optionalFields = (
<div key="optional">
<TwitchTagsInput label={$t('Twitch Tags')} {...bind.tags} layout={p.layout} />
Expand All @@ -65,7 +69,7 @@ export function TwitchEditStreamInfo(p: IPlatformComponentParams<'twitch'>) {
>
<CheckboxInput label={$t('Stream features branded content')} {...bind.isBrandedContent} />
</InputWrapper>
{process.platform !== 'darwin' && (
{isEnhancedBroadcastingVisible && (
<InputWrapper
layout={p.layout}
className={cx(styles.twitchCheckbox, { [styles.hideLabel]: p.layout === 'vertical' })}
Expand Down
11 changes: 5 additions & 6 deletions test/regular/obs-importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ test('OBS Importer', async t => {
await click('button=Continue');
await click('button=Skip');

/*
await click('a=Login');
await isDisplayed('button=Log in with Twitch');
await click('button=Skip');
*/

await logIn(t, 'twitch', { prime: false }, false, true);
await sleep(1000);

Expand Down Expand Up @@ -93,6 +87,11 @@ test('OBS Importer', async t => {
// check that widgets have been migrated
await focusMain();
await switchCollection('Widgets');

// Without this sleep widgetsService might have empty widgetSources
// TODO: Certainly, there is a race condition that should be addressed.
await sleep(1000);

const api = await getApiClient();
const widgetsService = api.getResource<WidgetsService>('WidgetsService');

Expand Down
Loading