...
|
...
|
@@ -723,16 +723,41 @@ function addRecordPage(skup, order_code, id) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
$('#startTime').val(parseInt(new Date().getTime() / 1000));
|
|
|
timedCount();
|
|
|
$('#recordBtn').linkbutton({text:'结束录制'});
|
|
|
$('#startTime').val(parseInt(new Date().getTime() / 1000));
|
|
|
//$("#startTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
|
|
|
|
|
|
$.ajax({
|
|
|
contentType: "application/json",
|
|
|
dataType: "json",
|
|
|
type: "GET",
|
|
|
url: contextPath + '/live/queryCurrentTime',
|
|
|
success: function (data) {
|
|
|
if (data.code != 200) {
|
|
|
$('#startTime').val(parseInt(new Date().getTime() / 1000));
|
|
|
} else if (data.data){
|
|
|
$('#startTime').val(data.data);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
} else if ($('#endTime').val() == '') {
|
|
|
$('#endTime').val(parseInt(new Date().getTime() / 1000));
|
|
|
stopCount();
|
|
|
// $("#endTime").textbox('setValue',parseInt(new Date().getTime() / 1000));
|
|
|
$('#recordBtn').linkbutton({text:'上传云端'});
|
|
|
$.ajax({
|
|
|
contentType: "application/json",
|
|
|
dataType: "json",
|
|
|
type: "GET",
|
|
|
url: contextPath + '/live/queryCurrentTime',
|
|
|
success: function (data) {
|
|
|
if (data.code != 200) {
|
|
|
$('#endTime').val(parseInt(new Date().getTime() / 1000));
|
|
|
} else if (data.data){
|
|
|
$('#endTime').val(data.data);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} else if ($('#startTime').val() != '' && $('#endTime').val() != ''){
|
|
|
$('#recordBtn').linkbutton('disable');
|
|
|
$.post(contextPath + "/live/generateMp4", {
|
...
|
...
|
|