2019-02-27 02:35:45 +00:00
|
|
|
module.exports = function(s){
|
|
|
|
s.addCloudUploader = function(opt){
|
|
|
|
s.loadGroupAppExtender(opt.loadGroupAppExtender)
|
|
|
|
s.unloadGroupAppExtender(opt.unloadGroupAppExtender)
|
|
|
|
s.insertCompletedVideoExtender(opt.insertCompletedVideoExtender)
|
|
|
|
s.deleteVideoFromCloudExtensions[opt.name] = opt.deleteVideoFromCloudExtensions
|
|
|
|
s.cloudDiskUseStartupExtensions[opt.name] = opt.cloudDiskUseStartupExtensions
|
2019-05-05 20:30:07 +00:00
|
|
|
if(opt.onInsertTimelapseFrame)s.onInsertTimelapseFrame(opt.onInsertTimelapseFrame)
|
2019-07-08 03:09:18 +00:00
|
|
|
if(opt.onDeleteTimelapseFrameFromCloud)s.onDeleteTimelapseFrameFromCloudExtensions[opt.name] = opt.onDeleteTimelapseFrameFromCloud
|
2019-02-27 02:35:45 +00:00
|
|
|
s.beforeAccountSave(opt.beforeAccountSave)
|
|
|
|
s.onAccountSave(opt.onAccountSave)
|
2022-11-27 23:26:57 +00:00
|
|
|
s.cloudDisksLoaded.push(opt.name)
|
2020-06-15 14:53:08 +00:00
|
|
|
if(opt.onGetVideoData)s.cloudDiskUseOnGetVideoDataExtensions[opt.name] = opt.onGetVideoData
|
2019-02-27 02:35:45 +00:00
|
|
|
}
|
|
|
|
s.addSimpleUploader = function(opt){
|
|
|
|
s.loadGroupAppExtender(opt.loadGroupAppExtender)
|
|
|
|
s.unloadGroupAppExtender(opt.unloadGroupAppExtender)
|
|
|
|
s.insertCompletedVideoExtender(opt.insertCompletedVideoExtender)
|
2019-05-05 20:30:07 +00:00
|
|
|
if(opt.onInsertTimelapseFrame)s.onInsertTimelapseFrame(opt.onInsertTimelapseFrame)
|
2019-02-27 02:35:45 +00:00
|
|
|
s.beforeAccountSave(opt.beforeAccountSave)
|
|
|
|
s.onAccountSave(opt.onAccountSave)
|
|
|
|
s.onMonitorSave(opt.onMonitorSave)
|
|
|
|
}
|
|
|
|
}
|