TT#20667 Call: Add buttons to choose audio or audio+video to send

Change-Id: I6de4ceea5f5200c3865d3bfda91521a1c68c3ddc
changes/41/15041/2
Hans-Peter Herzog 9 years ago
parent deeebaff79
commit 1ed3ed4d9f

@ -1619,6 +1619,12 @@ Ext.define('Ngcp.csc.locales', {
it: 'Sms sent.',
fr: 'Sms sent.',
sp: 'Sms sent.'
},
sendAudio: {
en: 'Audio Call'
},
sendVideo: {
en: 'Video Call'
}
},
faxsend: {

@ -61,7 +61,7 @@ Ext.define('NgcpCsc.view.common.rtc.RtcPanel', {
hidden:true,
width: '100%',
reference: 'videoObj',
html:"<video width=100% id=videoTag height=240></video>"
html: "<video width=100% id=videoTag height=240></video>"
},{
cls: 'rtc-avatar-container',
reference: 'avatar',
@ -96,7 +96,7 @@ Ext.define('NgcpCsc.view.common.rtc.RtcPanel', {
userCls: '{setuserCls}'
},
handler: 'toggleCall'
}, {
}, {
iconCls: Ngcp.csc.icons.microphone,
bind: {
pressed: '{micEnabled}',

@ -31,24 +31,23 @@ Ext.define('NgcpCsc.view.common.composer.Phone', {
}, {
xtype: 'container',
layout: 'center',
margin: '40 20 20 20',
items: [{
xtype: 'button',
cls: 'rtc-icons-big',
bind: {
disabled: '{disableSubmit}'
},
width: 60,
height: 60,
margin: '50 0 10 0',
iconCls: Ngcp.csc.icons.phone3x,
cls: 'rtc-icons-big',
listeners: {
click: {
fn: 'startNewCall',
el: 'element'
xtype: 'container',
items: [
{
xtype: 'button',
text : Ngcp.csc.locales.rtc.sendAudio[localStorage.getItem('languageSelected')],
iconCls: Ngcp.csc.icons.microphone,
margin: '0 10 0 0',
listeners: {
}
},{
xtype: 'button',
text : Ngcp.csc.locales.rtc.sendVideo[localStorage.getItem('languageSelected')],
iconCls: Ngcp.csc.icons.video
}
}
]
}]
}, {
hidden: true,

Loading…
Cancel
Save