Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vmosedge/web-sdk

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vmosedge/web-sdk

Vmos Edge Web SDK

latest
npmnpm
Version
1.2.7
Version published
Weekly downloads
38
-11.63%
Maintainers
2
Weekly downloads
 
Created
Source

Vmos Edge Web SDK

用于在 Web 端实现高性能 Android 设备远程控制的 SDK。

特性

  • WebCodecs + WebGL 高性能低延迟视频渲染
  • 完整的触摸事件支持(多指触控)
  • 设备控制(按键、文本输入、剪贴板)
  • 群控功能支持

安装

npm install @vmosedge/web-sdk
# 或
pnpm add @vmosedge/web-sdk

使用

详细使用说明请参考 SDK 文档

快速开始

import { VmosEdgeClient, VmosEdgeClientEvents } from "@vmosedge/web-sdk";

// 创建客户端实例
const client = new VmosEdgeClient({
  container: document.getElementById("container")!,
  mediaType: 2, // 1=仅视频,2=音视频
  config: {
    ip: "192.168.1.100",
    deviceId: "device_001",
    ports: {
      video: 8000,
      audio: 8001,
      touch: 8002,
    },
  },
});

// 监听连接成功事件
client.on(VmosEdgeClientEvents.STARTED, () => {
  console.log("设备连接成功!");
});

// 统一监听通道状态
client.on(VmosEdgeClientEvents.CHANNEL_CONNECTED, (event) => {
  console.log(event.channel, event.status, event.port);
});

// 启动连接
client.start();

// 运行时启用/禁用音频
await client.enableAudio();
client.disableAudio();

Keywords

web

FAQs

Package last updated on 09 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts