Skip to content

Commit

Permalink
remove unimplemented event
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamJaggard committed Apr 25, 2024
1 parent e350cc0 commit bc18e19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions packages/mux-player-react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export type MuxPlayerProps = {
onCuePointChange?: GenericEventListener<MuxPlayerElementEventMap['cuepointchange']>;
onCuePointsChange?: GenericEventListener<MuxPlayerElementEventMap['cuepointschange']>;
onChapterChange?: GenericEventListener<MuxPlayerElementEventMap['chapterchange']>;
onChaptersChange?: GenericEventListener<MuxPlayerElementEventMap['chapterschange']>;
} & Partial<MuxMediaPropTypes> &
Partial<VideoApiAttributes>;

Expand Down Expand Up @@ -179,7 +178,6 @@ const usePlayer = (
onCuePointChange,
onCuePointsChange,
onChapterChange,
onChaptersChange,
metadata,
tokens,
paused,
Expand Down Expand Up @@ -247,7 +245,6 @@ const usePlayer = (
useEventCallbackEffect('cuepointchange', ref, onCuePointChange);
useEventCallbackEffect('cuepointschange', ref, onCuePointsChange);
useEventCallbackEffect('chapterchange', ref, onChapterChange);
useEventCallbackEffect('chapterschange', ref, onChaptersChange);
return [remainingProps];
};

Expand Down
1 change: 0 additions & 1 deletion packages/mux-player/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap {
cuepointchange: CustomEvent<{ time: number; value: any }>;
cuepointschange: CustomEvent<Array<{ time: number; value: any }>>;
chapterchange: CustomEvent<{ startTime: number; endTime: number; value: string }>;
chapterschange: CustomEvent<Array<{ startTime: number; endTime: number; value: string }>>;
}

interface MuxPlayerElement
Expand Down

0 comments on commit bc18e19

Please sign in to comment.