From cf45216693734e58f50cc36f73e43beedd65cbf2 Mon Sep 17 00:00:00 2001 From: DavidVentura Date: Fri, 2 Feb 2024 12:07:07 +0100 Subject: [PATCH] impl stopvideo --- datatypes.ts | 1 + impl.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/datatypes.ts b/datatypes.ts index 792e5e5..45c85c4 100644 --- a/datatypes.ts +++ b/datatypes.ts @@ -46,6 +46,7 @@ export const ControlCommands = { ListWifi: 0x0360, // CMD_NET_WIFI_SCAN ListWifiAck: 0x0361, StartVideo: 0x1030, // CMD_PEER_LIVEVIDEO_START + StopVideo: 0x1130, // CMD_PEER_LIVEVIDEO_STOP Shutdown: 0x1010, //CMD_SYSTEM_SHUTDOWN, Reboot: 0x1110, //CMD_SYSTEM_REBOOT, VideoParamSet: 0x1830, // CMD_PEER_VIDEOPARAM_SET diff --git a/impl.ts b/impl.ts index 7a0eae6..11ed4c5 100644 --- a/impl.ts +++ b/impl.ts @@ -63,6 +63,10 @@ export const SendListWifi = (session: Session): DataView => { return makeDataReadWrite(session, ControlCommands.ListWifi, null); }; +export const SendStopVideo = (session: Session): DataView => { + return makeDataReadWrite(session, ControlCommands.StopVideo, null); +}; + export const SendStartVideo = (session: Session): DataView => { return makeDataReadWrite(session, ControlCommands.StartVideo, null); };