SkylinkJS is an open-source client-side library for your web-browser that enables any website to easily leverage the capabilities of WebRTC and its direct data streaming powers between peers for audio/video conferencing or file transfer.
We've gone to great length to make this library work in as many browsers as possible. SkylinkJS is build on top of AdapterJS and works with our Temasys WebRTC Plugin even in Internet Explorer and Safari on Mac and PC.
You'll need a Temasys Developer Account and an App key to use this. Register here to get your App key.
Legend:
(p)
for Temasys Plugin,(p+)
for Commercial Temasys Plugin,(e)
for Skylink Extensions (contact us for extension code)- Download Chrome Extension.
- Download Firefox add-on (copy this format and paste in browser URL):
http://skylink.io/screensharing/ff_addon.php?domain=(accessingdomain.com)
Features | Chrome 45+ | Firefox 40+ | Opera 32+ | IE 9+ | Safari 7+ |
---|---|---|---|---|---|
Screensharing | Yes ( e ) | Yes ( e ) | - | Yes ( p+ ) | Yes ( p+ ) |
Video Call | Yes | Yes | Yes | Yes ( p ) | Yes ( p ) |
Audio Call | Yes | Yes | Yes | Yes ( p ) | Yes ( p ) |
File Transfers | Yes | Yes | Yes | Yes ( p ) | Yes ( p ) |
Chat Messaging | Yes | Yes | Yes | Yes ( p ) | Yes ( p ) |
For Safari / IE support, please download our Temasys WebRTC Plugin here
Install SkylinkJS with npm:
npm install skylinkjs
Install SkylinkJS with bower:
bower install skylinkjs
You can raise tickets on our support portal or on our Github Page.
Always use the latest versions of the SkylinkJS library as WebRTC is still evolving and we adapt to changes very frequently.
It's now recommended to use the init()
callback instead of using readyStateChange
event state to go completed as this may result in an infinite loop.
Ready state change triggers whenever the current room information is retrieved, and joining another room instead of the default room will result in a re-retrieval to the API server, causing readyStateChange to trigger again and making SkylinkJS to re-join the room over and over again.
// Use this
sw.init(data, function () {
sw.joinRoom('name');
});
// Instead of
sw.on('readyStateChange', function (state) {
if (state === sw.READY_STATE_CHANGE.COMPLETED) {
sw.joinRoom('name');
}
});
In your Git terminal, execute the following commands:
# 1. Clone or download this repository via git terminal.
git clone https://github.com/Temasys/SkylinkJS.git
# 2. Install all required SkylinkJS dependencies. Use (sudo npm install) if required.
npm install
# 3. Install Grunt to run tasks.
npm install grunt -g
npm install grunt-cli -g
# 4. Install Browserify and Testling to run test scripts :
npm install browserify -g
npm install testling -g
# 5. Run the start script to start a local webserver to be able access the demo and doc folders. This will popup Chrome (Mac). You can configure a different browsers in the start.sh file. Alternatively, you can run (sh start.sh)
npm start # note that this runs in Chrome currently..
After making edits, here are some commands to run and build Skylink:
grunt jshint
: To check for code formatting and syntax errors.grunt yuidoc
: To generate document from code.grunt dev
: To run and compile all the codes.grunt publish
: To run when code is ready for next release.
What's included in the repository?
demo
: Contains the sample demos.doc
: Contains the generated YUI documentation for the SkylinkJS.doc-style
: Contains the template for our YUI documentation.publish
: Contains the production version of the library and a minified copy of itsource
: Contains the skylink.js library development filestests
: Contains the list of test scripts.