mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-15 14:04:59 -05:00
Merge branch 'video' of github.com:andyet/otalk into video
This commit is contained in:
commit
8b0c96f654
@ -1,4 +1,4 @@
|
|||||||
/*global $*/
|
/*global $, app*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
@ -35,23 +35,36 @@ module.exports = HumanView.extend({
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
handleAnswerClick: function (e) {
|
handleAnswerClick: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
var self = this;
|
||||||
|
app.api.jingle.startLocalMedia(null, function () {
|
||||||
|
self.model.jingleSession.accept();
|
||||||
|
self.model.state = 'active';
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
handleIgnoreClick: function (e) {
|
handleIgnoreClick: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.model.jingleSession.end({
|
||||||
|
condition: 'decline'
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
handleCancelClick: function (e) {
|
handleCancelClick: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.model.jingleSession.end({
|
||||||
|
condition: 'cancel'
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
handleEndClick: function (e) {
|
handleEndClick: function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.model.jingleSession.end({
|
||||||
|
condition: 'success'
|
||||||
|
});
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
handleMuteClick: function (e) {
|
handleMuteClick: function (e) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
// we want to make sure we show the appropriate buttons
|
// we want to make sure we show the appropriate buttons
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"templatizer": "0.1.2",
|
"templatizer": "0.1.2",
|
||||||
"underscore": "1.5.1",
|
"underscore": "1.5.1",
|
||||||
"raf-component": "1.1.1",
|
"raf-component": "1.1.1",
|
||||||
"stanza.io": "2.5.10",
|
"stanza.io": "2.5.12",
|
||||||
"notify.js": "0.0.3",
|
"notify.js": "0.0.3",
|
||||||
"wildemitter": "0.0.5",
|
"wildemitter": "0.0.5",
|
||||||
"attachmediastream": "",
|
"attachmediastream": "",
|
||||||
|
Loading…
Reference in New Issue
Block a user