当
PresentationConnection
object is created, its
binaryType
IDL attribute
MUST
be set to the string
"arraybuffer"
. Upon getting, the attribute
MUST
return its most recent value (the value it was last set as). Upon setting, the user agent
MUST
set the IDL attribute to the new value.
注意:
binaryType
attribute allows authors to control how binary data is exposed to scripts. By setting the attribute to
"blob"
, binary data is returned in
Blob
form; by setting it to
"arraybuffer"
, it is returned in
ArrayBuffer
form. The attribute defaults to
"arraybuffer"
. This attribute has no effect on data sent in a string form.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
binaryType
|
Chrome Yes | Edge ≤79 | Firefox 51 | IE No | Opera Yes | Safari ? | WebView Android No | Chrome Android Yes | Firefox Android 51 | Opera Android Yes | Safari iOS ? | Samsung Internet Android Yes |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。