LSP - Encryption UI, longer timeout for conversion dir query request + loading message, fixed conversion status request
This commit is contained in:
parent
5078667a86
commit
7211e2ee6d
2 changed files with 46 additions and 6 deletions
|
@ -153,7 +153,7 @@
|
||||||
"command": JSON.stringify(data)
|
"command": JSON.stringify(data)
|
||||||
},
|
},
|
||||||
'dataType': 'jsonp',
|
'dataType': 'jsonp',
|
||||||
'timeout': 10000,
|
'timeout': 300000,
|
||||||
'error': function(){},
|
'error': function(){},
|
||||||
'success': function(d)
|
'success': function(d)
|
||||||
{
|
{
|
||||||
|
@ -400,7 +400,9 @@
|
||||||
"capabilities": {},
|
"capabilities": {},
|
||||||
"log": {},
|
"log": {},
|
||||||
"statistics": {},
|
"statistics": {},
|
||||||
"conversion": {}
|
"conversion": {
|
||||||
|
"status" : ""
|
||||||
|
}
|
||||||
}, d)
|
}, d)
|
||||||
if (settings.settings.LTS == 1) {
|
if (settings.settings.LTS == 1) {
|
||||||
$('.LTSonly').show();
|
$('.LTSonly').show();
|
||||||
|
@ -738,15 +740,20 @@ function buildLogsTable(){
|
||||||
if (!settings.settings.conversion.query) { settings.settings.conversion.query = {}; }
|
if (!settings.settings.conversion.query) { settings.settings.conversion.query = {}; }
|
||||||
settings.settings.conversion.query.path = query;
|
settings.settings.conversion.query.path = query;
|
||||||
$('#conv-edit-dir').val(query);
|
$('#conv-edit-dir').val(query);
|
||||||
|
$('#conversiondirquery-status').text(' Searching for input files..');
|
||||||
getData(function(data){
|
getData(function(data){
|
||||||
var c = data.conversion.query;
|
var c = data.conversion.query;
|
||||||
var j = 0;
|
var j = 0;
|
||||||
|
var dir = $('#conv-edit-dir').val();
|
||||||
|
if (dir.substr(dir.length -1) != '/') { dir += '/'; }
|
||||||
delete settings.settings.conversion.query;
|
delete settings.settings.conversion.query;
|
||||||
$('#conv-edit-input').html('');
|
$('#conv-edit-input').html('');
|
||||||
for (var i in c) {
|
for (var i in c) {
|
||||||
if (c[i]) {
|
var ext = i.split('.');
|
||||||
|
ext = ext[ext.length-1];
|
||||||
|
if ((c[i] == null) && (ext != 'dtsc')) {
|
||||||
$('#conv-edit-input').append(
|
$('#conv-edit-input').append(
|
||||||
$('<option>').val($('#conv-edit-dir').val()+i).text(i)
|
$('<option>').val(dir+i).text(i)
|
||||||
);
|
);
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
@ -757,7 +764,7 @@ function buildLogsTable(){
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
conversionSelectInput($('#conv-edit-input').val());
|
conversionSelectInput($('#conv-edit-input').val());
|
||||||
|
$('#conversiondirquery-status').text('');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function conversionSelectInput(filename) {
|
function conversionSelectInput(filename) {
|
||||||
|
|
35
lsp/main.js
35
lsp/main.js
|
@ -887,7 +887,10 @@
|
||||||
'preset':
|
'preset':
|
||||||
{
|
{
|
||||||
'cmd': ''
|
'cmd': ''
|
||||||
}
|
},
|
||||||
|
'contentkey':'',
|
||||||
|
'keyid':'',
|
||||||
|
'keyseed':''
|
||||||
},sdata);
|
},sdata);
|
||||||
|
|
||||||
$('#page').append( $('<p>').text(title) );
|
$('#page').append( $('<p>').text(title) );
|
||||||
|
@ -933,6 +936,31 @@
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// ENCRYPT
|
||||||
|
$('#editserver').append(
|
||||||
|
$('<span>').addClass('LTS-only').append(
|
||||||
|
$('<br>')
|
||||||
|
).append(
|
||||||
|
$('<p>').text('Encrypt this stream')
|
||||||
|
).append(
|
||||||
|
$('<label>').attr('id','stream-edit-contentkey-label').attr('for','stream-edit-contentkey').text('Content key').append(
|
||||||
|
$('<input>').attr('type','text').attr('id','stream-edit-contentkey').attr('value', sdata.contentkey)
|
||||||
|
)
|
||||||
|
).append(
|
||||||
|
$('<span>').text('- or -')
|
||||||
|
).append(
|
||||||
|
$('<label>').attr('id','stream-edit-keyid-label').attr('for','stream-edit-keyid').text('Key ID').append(
|
||||||
|
$('<input>').attr('type','text').attr('id','stream-edit-keyid').attr('value', sdata.keyid)
|
||||||
|
)
|
||||||
|
).append(
|
||||||
|
$('<label>').attr('id','stream-edit-keyseed-label').attr('for','stream-edit-keyseed').text('Key seed').append(
|
||||||
|
$('<input>').attr('type','text').attr('id','stream-edit-keyseed').attr('value', sdata.keyseed)
|
||||||
|
)
|
||||||
|
).append(
|
||||||
|
$('<br>')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
var text = $('#stream-edit-source').val();
|
var text = $('#stream-edit-source').val();
|
||||||
//if the source is not live, show any stuff marked as live-only
|
//if the source is not live, show any stuff marked as live-only
|
||||||
if(text.charAt(0) == '/')
|
if(text.charAt(0) == '/')
|
||||||
|
@ -984,6 +1012,9 @@
|
||||||
sdata.error = null;
|
sdata.error = null;
|
||||||
sdata.record = r.val();
|
sdata.record = r.val();
|
||||||
if (b.val() != '') { sdata.DVR = b.val(); }
|
if (b.val() != '') { sdata.DVR = b.val(); }
|
||||||
|
sdata.contentkey = $('#stream-edit-contentkey').val();
|
||||||
|
sdata.contentkey = $('#stream-edit-keyid').val();
|
||||||
|
sdata.contentkey = $('#stream-edit-keyseed').val();
|
||||||
|
|
||||||
if(streamname == 'new')
|
if(streamname == 'new')
|
||||||
{
|
{
|
||||||
|
@ -1340,6 +1371,8 @@
|
||||||
$('<button>').text('search for input files').click(function(){
|
$('<button>').text('search for input files').click(function(){
|
||||||
conversionDirQuery($('#conv-edit-query').val());
|
conversionDirQuery($('#conv-edit-query').val());
|
||||||
})
|
})
|
||||||
|
).append(
|
||||||
|
$('<span>').attr('id','conversiondirquery-status')
|
||||||
).append(
|
).append(
|
||||||
$('<div>').attr('id', 'editconversion')
|
$('<div>').attr('id', 'editconversion')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue