5 ms·
any specific reason why it's chrome-only? http://www.webrtc.org/firefox http://www.webrtc.org/firefox
by leeoniya 14y ago
any specific reason why it's chrome-only?
http://www.webrtc.org/firefox http://www.webrtc.org/firefox
- erbbysam 14y agoAs ianlevesque mentioned in the link below, http://peerjs.com/status http://peerjs.com/status is a good overview of current state of data channels. As Firefox stabilizes their WebRTC data channel support, I will implement it. Hopefully there will soon be cross-browser support as well for data channels.
- willscott 14y agoFirefox is currently ahead on the data channel, right? They support sending blobs / arrayBuffers directly, while Chrome doesn't yet have a reliable transport or binary data support. Your example translates the file into a base64 string to send over the unreliable channel, which ends up being a pretty big performance hit compared to a native binary transport. All of this is to say: WebRTC is getting there, but it's still going to be several months before it's ready for more than demos like this.
- ericz 14y agoIt's true that it supports binary / reliable transport already but there are some very annoying not-to-spec issues. As a library developer, if I added code to support it, it would just go to waste because in BugZilla they've already patched but not pushed changes to these issues.
- mtgx 14y agoI think support for WebRTC is still only in Firefox Nightlies, not the stable version, or at least not full support.
- azakai 14y agoI am on firefox nightly, and the website refuses to work. Looks like it does browser detection, not feature detection.
- eksith 14y agoSame here. Pretty sure it's browser detection only. I wish developers would honestly stop doing that already. Capabilities and stability are far more important than a logo.
- RRRA 14y agoit doesn't work for me on chrome 25 on Mint either.
- hacliff 14y agoDepending on how they're writing their files; firefox doesn't support persistent file storage last time I checked. Firefox does have indexeddb, but if you want to do seek operations you're out of luck. EDIT: To explain more, without seek writing dealing with large files is incredibly expensive, you have to write everything you've got to indexeddb every time you want to modify it.
- doublec 14y agoThe FileHandle API does what you want - read/write access to an IndexedDB file at any location. https://developer.mozilla.org/en-US/docs/WebAPI/FileHandle https://developer.mozilla.org/en-US/docs/WebAPI/FileHandle