Skip to content

Commit fb6d5dd

Browse files
resources: add getRenderingStatus to projects.
1 parent 3b2569c commit fb6d5dd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/resources/projects.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ const renderProject = (projectId, params) => {
153153
return Api.authorizedRequest(options)
154154
}
155155

156+
/**
157+
* @param {Function} callback - The callback function for handling render status result.
158+
*/
159+
const getRenderingStatus = (callback) => Api.socketConnection(callback)
160+
156161
module.exports = {
157162
getProject,
158163
addProject,
@@ -163,5 +168,6 @@ module.exports = {
163168
deleteProjectVideos,
164169
applyTemplatePresetOnProject,
165170
duplicateProject,
166-
renderProject
171+
renderProject,
172+
getRenderingStatus
167173
}

0 commit comments

Comments
 (0)