Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
1f568672
Commit
1f568672
authored
Aug 26, 2025
by
martin hou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 录音中的文件查询增加超时参数和默认值
parent
7f27a5e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
jensen.d.ts
jensen.d.ts
+1
-1
jensen.js
src/utils/jensen.js
+1
-1
No files found.
jensen.d.ts
View file @
1f568672
...
@@ -226,7 +226,7 @@ declare class Jensen {
...
@@ -226,7 +226,7 @@ declare class Jensen {
setNotification
:
(
state
:
boolean
,
time
?:
number
)
=>
Promise
<
ReturnStruct
[
'common'
]
>
;
setNotification
:
(
state
:
boolean
,
time
?:
number
)
=>
Promise
<
ReturnStruct
[
'common'
]
>
;
// 获取录音中的文件信息,当它从null -> non-null -> null转变时就表示已经有一个新的录音产生了
// 获取录音中的文件信息,当它从null -> non-null -> null转变时就表示已经有一个新的录音产生了
getRecordingFile
:
()
=>
Promise
<
{
recording
:
null
|
string
;
createTime
:
string
;
createDate
:
string
}
>
;
getRecordingFile
:
(
time
?:
number
)
=>
Promise
<
{
recording
:
null
|
string
;
createTime
:
string
;
createDate
:
string
}
>
;
// 获取内部存储卡信息
// 获取内部存储卡信息
// used:已使用,capacity:总容量(单位为M),status:900表示正常,其它表示异常
// used:已使用,capacity:总容量(单位为M),status:900表示正常,其它表示异常
...
...
src/utils/jensen.js
View file @
1f568672
...
@@ -1115,7 +1115,7 @@ Jensen.prototype.formatCard = function (seconds) {
...
@@ -1115,7 +1115,7 @@ Jensen.prototype.formatCard = function (seconds) {
Jensen
.
prototype
.
getRecordingFile
=
function
(
seconds
)
{
Jensen
.
prototype
.
getRecordingFile
=
function
(
seconds
)
{
if
((
this
.
model
==
'hidock-h1'
||
this
.
model
==
'hidock-h1e'
)
&&
this
.
versionNumber
<
327733
)
return
null
;
if
((
this
.
model
==
'hidock-h1'
||
this
.
model
==
'hidock-h1e'
)
&&
this
.
versionNumber
<
327733
)
return
null
;
return
this
.
send
(
new
Command
(
GET_RECORDING_FILE
),
seconds
);
return
this
.
send
(
new
Command
(
GET_RECORDING_FILE
),
seconds
||
0.5
);
};
};
Jensen
.
prototype
.
recordTestStart
=
async
function
(
type
,
seconds
)
{
Jensen
.
prototype
.
recordTestStart
=
async
function
(
type
,
seconds
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment