You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsrc="//cdn.webrtc-experiment.com/DataChannel.js"></script><script>vardatachannel=newDataChannel();datachannel.onopen=function(remoteUserid){};datachannel.onmessage=function(message,remoteUserid){};// search for existing channelsdatachannel.connect();document.getElementById('new-channel').onclick=function(){datachannel.open();// setup new channel};</script>
Translator.js is a JavaScript library built top on Google Speech-Recognition & Translation API to transcript and translate voice and text. It supports many locales and brings globalization in WebRTC!
FileBufferReader is a JavaScript library reads file and returns chunkified array-buffers. The resulting buffers can be shared using WebRTC data channels or socket.io.
varfileBufferReader=newFileBufferReader();fileBufferReader.readAsArrayBuffer(file,function(uuid){// var file = fileBufferReader.chunks[uuid];// var listOfChunks = file.listOfChunks;// get first chunk, and send using WebRTC data channels// NEVER send chunks in loop; otherwise you'll face issues in slow networks// remote peer should notify if it is ready for next chunkfileBufferReader.getNextChunk(uuid,function(nextChunk,isLastChunk){if(isLastChunk){alert('File Successfully sent.');}// sending using WebRTC data channelsdatachannel.send(nextChunk);});});datachannel.onmessage=function(event){varchunk=event.data;if(chunkinstanceofArrayBuffer||chunkinstanceofDataView){// array buffers are passed using WebRTC data channels// need to convert data back into JavaScript objectsfileBufferReader.convertToObject(chunk,function(object){datachannel.onmessage({data: object});});return;}// if you passed "extra-data", you can access it here:// chunk.extra.senderUserName or whatever else// if target peer requested next chunkif(chunk.readyForNextChunk){fileBufferReader.getNextChunk(chunk.uuid,function(nextChunk,isLastChunk){if(isLastChunk){alert('File Successfully sent.');}// sending using WebRTC data channelsdatachannel.send(nextChunk);});return;}// if chunk is receivedfileBufferReader.addChunk(chunk,function(promptNextChunk){// request next chunkdatachannel.send(promptNextChunk);});};
Simply use getScreenId.js and enjoy screen capturing from any domain. You don't need to deploy chrome extension yourself. You can refer your users to install this chrome extension instead. Also, getScreenId.js auto-fallbacks to command-line based screen capturing if chrome extension isn't installed or disabled. getScreenId.js throws clear exceptions which is helpful for end-user experiences.