fix(core): resolve cast button ssr hydration mismatch (#1518)

This commit is contained in:
Santiago Puppo
2026-05-08 10:16:35 -07:00
committed by GitHub
parent a1e37dd66f
commit ff7d901bc4
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@ export class CastButtonCore {
readonly state = createState<CastButtonState>({
castState: 'disconnected',
availability: 'unavailable',
availability: 'unsupported',
label: '',
});
@@ -10,7 +10,7 @@ export const remotePlaybackFeature = definePlayerFeature({
name: 'remotePlayback',
state: ({ target }): MediaRemotePlaybackState => ({
remotePlaybackState: 'disconnected',
remotePlaybackAvailability: 'unavailable',
remotePlaybackAvailability: 'unsupported',
async toggleRemotePlayback() {
const { media, container } = target();