Skip to content

Commit

Permalink
Fix skylinkjs 0.6.14 dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leticia Choo authored and Leticia Choo committed Sep 8, 2016
1 parent b93d5fc commit a949e93
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
4 changes: 2 additions & 2 deletions source/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require.config({

paths: {
socketio: '//cdn.temasys.com.sg/libraries/socket.io-client/1.4.4/socket.io',
adapter: '//cdn.temasys.com.sg/adapterjs/0.13.3/adapter.screenshare',
skylink: '//cdn.temasys.com.sg/skylink/skylinkjs/0.6.12/skylink.debug',
adapter: 'libs/adapter',
skylink: '//cdn.temasys.com.sg/skylink/skylinkjs/0.6.13/skylink.debug',
// facebook: '//connect.facebook.net/en_US/all',
// twitter: '//platform.twitter.com/widgets',
fastclick: '//cdnjs.cloudflare.com/ajax/libs/fastclick/0.6.11/fastclick.min',
Expand Down
12 changes: 9 additions & 3 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,15 @@ define([
Configs.Skylink.apiMCUKey : Configs.Skylink.apiNoMCUKey,
defaultRoom: room
}, function() {
Skylink.joinRoom({
audio: true,
video: true
navigator.getUserMedia({
audio: true,
video: true
}, function (stream) {
window.console.log('Got stream', stream);
Skylink.sendStream(stream);
Skylink.joinRoom();
}, function (error) {
window.console.error('The error', error);
});
});
},
Expand Down
4 changes: 2 additions & 2 deletions source/jsx/loader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require.config({

paths: {
socketio: '//cdn.temasys.com.sg/libraries/socket.io-client/1.4.4/socket.io',
adapter: '//cdn.temasys.com.sg/adapterjs/0.13.3/adapter.screenshare',
skylink: '//cdn.temasys.com.sg/skylink/skylinkjs/0.6.13/skylink.debug',
adapter: 'libs/adapter',
skylink: '//cdn.temasys.com.sg/skylink/skylinkjs/0.6.14/skylink.debug',
// facebook: '//connect.facebook.net/en_US/all',
// twitter: '//platform.twitter.com/widgets',
fastclick: '//cdnjs.cloudflare.com/ajax/libs/fastclick/0.6.11/fastclick.min',
Expand Down
12 changes: 9 additions & 3 deletions source/jsx/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,15 @@ define([
Configs.Skylink.apiMCUKey : Configs.Skylink.apiNoMCUKey,
defaultRoom: room
}, function() {
Skylink.joinRoom({
audio: true,
video: true
navigator.getUserMedia({
audio: true,
video: true
}, function (stream) {
window.console.log('Got stream', stream);
Skylink.sendStream(stream);
Skylink.joinRoom();
}, function (error) {
window.console.error('The error', error);
});
});
},
Expand Down

0 comments on commit a949e93

Please sign in to comment.