mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-31 22:37:00 +00:00
Receivers: Add post state update handler
This commit is contained in:
parent
e9834a7589
commit
92f7706353
2 changed files with 12 additions and 1 deletions
|
@ -8,6 +8,7 @@ import { mediaItemFromPlayMessage, playMessageFromMediaItem, Timer } from 'commo
|
|||
import { toast, ToastIcon } from 'common/components/Toast';
|
||||
import {
|
||||
targetPlayerCtrlStateUpdate,
|
||||
targetPlayerCtrlPostStateUpdate,
|
||||
targetKeyDownEventListener,
|
||||
captionsBaseHeightCollapsed,
|
||||
captionsBaseHeightExpanded,
|
||||
|
@ -635,6 +636,8 @@ function playerCtrlStateUpdate(event: PlayerControlEvent) {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
targetPlayerCtrlPostStateUpdate(event);
|
||||
}
|
||||
|
||||
function scrubbingMouseUIHandler(e: MouseEvent) {
|
||||
|
|
|
@ -44,7 +44,15 @@ export function targetPlayerCtrlStateUpdate(event: PlayerControlEvent): boolean
|
|||
return handledCase;
|
||||
}
|
||||
|
||||
export function targetKeyDownEventListener(event: KeyboardEvent): boolean {
|
||||
export function targetPlayerCtrlPostStateUpdate(event: PlayerControlEvent) {
|
||||
// Currently unused in electron player
|
||||
switch (event) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
export function targetKeyDownEventListener(event: KeyboardEvent): { handledCase: boolean, key: string } {
|
||||
let handledCase = false;
|
||||
|
||||
switch (event.code) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue