mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
fix(core): resolve cast button ssr hydration mismatch (#1518)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user