mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(packages)!: replace DelegateMixin & ProxyMixin with MediaHost base classes (#1292)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { MediaApi } from '@videojs/core/dom';
|
||||
import type { Media } from '@videojs/core';
|
||||
|
||||
type AnyClass = abstract new (...args: any[]) => any;
|
||||
|
||||
@@ -13,7 +13,7 @@ function getSettableProps(DelegateClass: AnyClass): Set<string> {
|
||||
return props;
|
||||
}
|
||||
|
||||
export function mediaProps(media: MediaApi, DelegateClass: AnyClass, props: Record<string, any>) {
|
||||
export function mediaProps(media: Media, DelegateClass: AnyClass, props: Record<string, any>) {
|
||||
const delegateKeys = getSettableProps(DelegateClass);
|
||||
const rest: Record<string, any> = {};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import type { Media } from '@videojs/core/dom';
|
||||
import type { Media } from '@videojs/core';
|
||||
import { useState } from 'react';
|
||||
|
||||
import { useMediaAttach } from '../player/context';
|
||||
|
||||
Reference in New Issue
Block a user