API Reference for web - Module: interface/StreamInterface

更新时间: 2023-10-23 16:45:52

# Module: interface/StreamInterface

# Enumerations

# Interfaces

# Type aliases

# AudioSourceOptions

AudioSourceOptions: Object

音频数据源处理的设置。用于 startProcessAudioBuffer.

# Type declaration

Name Type Description
cycle? number 设置是否无限循环。
loop? boolean 设置循环播放的次数。
startPlayTime? number startPlayTime

# DeviceState

DeviceState: "ACTIVE" | "INACTIVE"

采集设备当前的插拔状态。

  • "ACTIVE": 该设备已经插入。
  • "INACTIVE": 该设备已经被拔出。

# ScreenSourceType

ScreenSourceType: "screen" | "window" | "application"

屏幕共享源的类型。

  • "screen": 共享屏幕。
  • "application": 共享某一个 app 的所有窗口。
  • "window": 共享某一个 app 的某一个窗口。