Search
Preparing search index...
The search index is not available
ts-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
Platform
Class Platform
Hierarchy
Platform
Index
Properties
_platform
Type
platform
Info
reporter
Methods
create
Http
Request
create
Web
Socket
request
User
Media
set
Platform
Options
set
Platform
Type
Object literals
DEFAULT_
HTTP_
OPTIONS
DEFAULT_
WEB_
SOCKET_
OPTIONS
_request
Constraints
Map
Properties
Static
_platform
Type
_platform
Type
:
PlatformType
Static
platform
Info
platform
Info
:
SystemPlatformInfo
= detectBrowser()
Static
reporter
reporter
:
Reporter
= new Reporter('Platform')
Methods
Static
create
Http
Request
create
Http
Request
(
options
:
PlatformStandardHTTPOptions
)
:
Promise
<
any
>
Parameters
options:
PlatformStandardHTTPOptions
Returns
Promise
<
any
>
Static
create
Web
Socket
create
Web
Socket
(
options
:
PlatformStandardWebSocketOptions
)
:
Promise
<
WebSocket
>
Parameters
options:
PlatformStandardWebSocketOptions
Returns
Promise
<
WebSocket
>
Static
request
User
Media
request
User
Media
(
constraints
:
MediaStreamConstraints
)
:
Promise
<
MediaStream
>
请求用户媒体设备, 如约束条件与前一次相同不会再次请求用户
Parameters
constraints:
MediaStreamConstraints
Returns
Promise
<
MediaStream
>
Static
set
Platform
Options
set
Platform
Options
(
options
:
{
httpOptions
?:
PlatformStandardHTTPOptions
;
webSocketOptions
?:
PlatformStandardWebSocketOptions
}
)
:
void
Parameters
options:
{
httpOptions
?:
PlatformStandardHTTPOptions
;
webSocketOptions
?:
PlatformStandardWebSocketOptions
}
Optional
http
Options
?:
PlatformStandardHTTPOptions
Optional
web
Socket
Options
?:
PlatformStandardWebSocketOptions
Returns
void
Static
set
Platform
Type
set
Platform
Type
(
type
:
PlatformType
)
:
any
Parameters
type:
PlatformType
Returns
any
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
_request
Constraints
Map
_request
Constraints
Map
:
object
audio
audio
:
object
constraints
constraints
:
undefined
= undefined
track
track
:
undefined
= undefined
video
video
:
object
constraints
constraints
:
undefined
= undefined
track
track
:
undefined
= undefined
Globals
Platform
_platform
Type
platform
Info
reporter
create
Http
Request
create
Web
Socket
request
User
Media
set
Platform
Options
set
Platform
Type
DEFAULT_
HTTP_
OPTIONS
DEFAULT_
WEB_
SOCKET_
OPTIONS
_request
Constraints
Map
Generated using
TypeDoc
请求用户媒体设备, 如约束条件与前一次相同不会再次请求用户