当
reconnect
(presentationId)
method is called on a
PresentationRequest
presentationRequest
,
用户代理
MUST
run the following steps to
reconnect to a presentation
:
PresentationRequest
object that
reconnect
()
was called on.
"Prohibits Mixed Security Contexts"
和
presentation request URL
of
presentationRequest
是
a priori unauthenticated URL
, then return a
Promise
rejected with a
SecurityError
and abort these steps.
SecurityError
and abort these steps.
PresentationConnection
that meets the following criteria: its
controlling browsing context
is the current
浏览上下文
, its
presentation connection state
不是
terminated
, its
presentation URL
is equal to one of the
presentation request URLs
of
presentationRequest
及其
presentation identifier
等于
presentationId
.
PresentationConnection
exists, run the following steps:
PresentationConnection
.
connecting
or
connected
, then abort all remaining steps.
connecting
.
PresentationConnection
that meets the following criteria: its
presentation connection state
不是
terminated
, its
presentation URL
is equal to one of the
presentation request URLs
of
presentationRequest
, and its
presentation identifier
等于
presentationId
.
PresentationConnection
exists, let
E
be that
PresentationConnection
, and run the following steps:
PresentationConnection
S
.
connecting
.
connectionavailable
, that uses the
PresentationConnectionAvailableEvent
interface with the
connection
attribute initialized to
S
, at
presentationRequest
. The event must not bubble and cancelable and should have no default action.
NotFoundError
异常。
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
reconnect
|
Chrome 48 | Edge ≤79 | Firefox 51 | IE No | Opera 35 | Safari ? | WebView Android No | Chrome Android 48 | Firefox Android 51 | Opera Android 35 | Safari iOS ? | Samsung Internet Android 5.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。