Skip to content

Commit 5e756de

Browse files
committed
fix(core): resolve cast button ssr hydration mismatch
1 parent e3c1b28 commit 5e756de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/core/ui/cast-button/cast-button-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class CastButtonCore {
2727

2828
readonly state = createState<CastButtonState>({
2929
castState: 'disconnected',
30-
availability: 'unavailable',
30+
availability: 'unsupported',
3131
label: '',
3232
});
3333

packages/core/src/dom/store/features/remote-playback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const remotePlaybackFeature = definePlayerFeature({
1010
name: 'remotePlayback',
1111
state: ({ target }): MediaRemotePlaybackState => ({
1212
remotePlaybackState: 'disconnected',
13-
remotePlaybackAvailability: 'unavailable',
13+
remotePlaybackAvailability: 'unsupported',
1414

1515
async toggleRemotePlayback() {
1616
const { media, container } = target();

0 commit comments

Comments
 (0)