media_player_client/src/entities/MultimediaWindowEntity.ts

40 lines
1002 B
TypeScript
Raw Normal View History

2021-08-05 14:23:45 +08:00
import BaseEntity from "./BaseEntity";
import { SignalSourceEntity } from "./SignalSourceEntity";
import { Protocol } from "./WSProtocol";
2021-08-05 14:23:45 +08:00
export class MultimediaWindowEntity extends BaseEntity {
2021-08-05 14:23:45 +08:00
x: number = 0;
y: number = 0;
width: number = 0;
height: number = 0;
signal_source_table_uuid: string = "";
2021-08-09 10:59:16 +08:00
2021-12-22 19:44:02 +08:00
volume: number = 80;
muted: boolean = false;
2022-01-18 16:09:15 +08:00
playing: boolean = false;
2021-12-22 19:44:02 +08:00
play_speed: number = 1;
}
export class WindowOpenNotifyEntity extends MultimediaWindowEntity {
public static get FLAG_REQUEST() {
return 0;
}
public static get FLAG_RESPONSE() {
return 1;
}
public static get FLAG_NOTIFY() {
return 2;
}
/** 是否出现异常,如果是异常,则为 ExceptionEntity */
has_exception = false;
/** 0: 请求 1: 响应 */
flag = WindowOpenNotifyEntity.FLAG_REQUEST;
/** rpc 消息 ID默认 0 */
rpc_id = 0;
/** 命令 */
command = Protocol.Commands.kUnKnowCommand;
window_id: number = 0;
2021-08-05 14:23:45 +08:00
}