Merge branch 'blending' of http://www.cloudview.work/git/fangxiang/media_player_client into blending
This commit is contained in:
commit
e229f9acb3
|
@ -1475,6 +1475,18 @@ export default class ClientConnection {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async SetBlendingOption(
|
||||||
|
id: number,
|
||||||
|
value: number
|
||||||
|
) {
|
||||||
|
return await this.doRpc<Protocol.NoneResponse>(
|
||||||
|
new Protocol.SetBlendingOptionRequestEntity(
|
||||||
|
id,
|
||||||
|
value
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public destory() {
|
public destory() {
|
||||||
this.ws?.close();
|
this.ws?.close();
|
||||||
if (this.ws) {
|
if (this.ws) {
|
||||||
|
|
|
@ -523,6 +523,9 @@ export namespace Protocol {
|
||||||
public static get kResetBlending() {
|
public static get kResetBlending() {
|
||||||
return Commands.PROTOCOL_PREFIX + "ResetBlending";
|
return Commands.PROTOCOL_PREFIX + "ResetBlending";
|
||||||
}
|
}
|
||||||
|
public static get kSetBlendingOption() {
|
||||||
|
return Commands.PROTOCOL_PREFIX + "SetBlendingOption";
|
||||||
|
}
|
||||||
|
|
||||||
static _all_commands = new Set([
|
static _all_commands = new Set([
|
||||||
Commands.kUnKnowCommand,
|
Commands.kUnKnowCommand,
|
||||||
|
@ -653,8 +656,9 @@ export namespace Protocol {
|
||||||
Commands.kGetBlendingConfig,
|
Commands.kGetBlendingConfig,
|
||||||
Commands.kSaveBlendingConfig,
|
Commands.kSaveBlendingConfig,
|
||||||
Commands.kSetBlendingHorDensity,
|
Commands.kSetBlendingHorDensity,
|
||||||
Commands.kSetBlendingVerDensity,
|
Commands.kSetBlendingVerDensity,
|
||||||
Commands.kResetBlending,
|
Commands.kResetBlending,
|
||||||
|
Commands.kSetBlendingOption,
|
||||||
]);
|
]);
|
||||||
public static get AllCommands() {
|
public static get AllCommands() {
|
||||||
return this._all_commands;
|
return this._all_commands;
|
||||||
|
@ -3462,4 +3466,22 @@ export namespace Protocol {
|
||||||
super.rpc_id = rpc_id;
|
super.rpc_id = rpc_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class SetBlendingOptionRequestEntity extends PacketEntity {
|
||||||
|
constructor(
|
||||||
|
id: number,
|
||||||
|
value: number,
|
||||||
|
rpc_id = 0
|
||||||
|
) {
|
||||||
|
super();
|
||||||
|
super.command = Commands.kSetBlendingOption;
|
||||||
|
super.flag = PacketEntity.FLAG_REQUEST;
|
||||||
|
super.rpc_id = rpc_id;
|
||||||
|
|
||||||
|
this.id = id ?? 0;
|
||||||
|
this.value = value ?? 0;
|
||||||
|
}
|
||||||
|
id = 0;
|
||||||
|
value = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue