Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Platform

Hierarchy

  • Platform

Index

Properties

Static _platformType

_platformType: PlatformType

Static platformInfo

platformInfo: SystemPlatformInfo = detectBrowser()

Static reporter

reporter: Reporter = new Reporter('Platform')

Methods

Static createHttpRequest

Static createWebSocket

Static requestUserMedia

  • requestUserMedia(constraints: MediaStreamConstraints): Promise<MediaStream>
  • 请求用户媒体设备, 如约束条件与前一次相同不会再次请求用户

    Parameters

    • constraints: MediaStreamConstraints

    Returns Promise<MediaStream>

Static setPlatformOptions

Static setPlatformType

Object literals

Static DEFAULT_HTTP_OPTIONS

DEFAULT_HTTP_OPTIONS: object

method

method: "GET" = "GET"

timeout

timeout: number = 60 * 1000

url

url: undefined = undefined

Static DEFAULT_WEB_SOCKET_OPTIONS

DEFAULT_WEB_SOCKET_OPTIONS: object

timeout

timeout: number = 60 * 1000

transports

transports: undefined = undefined

url

url: undefined = undefined

Static _requestConstraintsMap

_requestConstraintsMap: object

audio

audio: object

constraints

constraints: undefined = undefined

track

track: undefined = undefined

video

video: object

constraints

constraints: undefined = undefined

track

track: undefined = undefined

Generated using TypeDoc