Created
March 10, 2015 23:40
-
-
Save nfabian13/faf30fe62b2441653358 to your computer and use it in GitHub Desktop.
Send a file to the other client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To make this work include the RTCMulticonnection.js file | |
//create a connection object to handle the sending procress of a file. | |
var connection = new RTCMultiConnection(); | |
document.getElementById('files').onchange = function() { | |
var file = this.files[0]; | |
connection.send(file); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment