When a 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.
Note: The 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.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Chrome
Full support Yes |
Edge
Full support ≤79 |
Firefox Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
IE
No support No |
Opera
Full support Yes |
Safari
? |
WebView Android
No support No |
Chrome Android
Full support Yes |
Firefox Android Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
Opera Android
Full support Yes |
Safari iOS
? |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
PresentationConnection.binaryType by Mozilla Contributors is licensed under CC-BY-SA 2.5.