Timeline Studio API Documentation - v0.26.0
Preparing search index...
features/media/hooks/use-media-restoration
useMediaRestoration
Function useMediaRestoration
useMediaRestoration
()
:
{
cancelMissingFilesDialog
:
()
=>
void
;
currentPhase
:
|
"error"
|
"completed"
|
"scanning"
|
"restoring"
|
"user_input"
;
error
:
string
;
getMissingFiles
:
()
=>
any
;
getRelocatedFiles
:
()
=>
any
;
getRestorationReport
:
()
=>
any
;
getRestorationStats
:
()
=>
any
;
handleMissingFilesResolution
:
(
resolved
:
{
action
:
"remove"
|
"found"
;
file
:
SavedMediaFile
;
newPath
?:
string
;
}
[]
,
)
=>
Promise
<
{
foundFiles
:
MediaFile
[]
;
removedFiles
:
SavedMediaFile
[]
}
>
;
isRestoring
:
boolean
;
progress
:
number
;
resetRestoration
:
()
=>
void
;
restorationResult
:
any
;
restoreProjectMedia
:
(
mediaFiles
:
SavedMediaFile
[]
,
musicFiles
:
SavedMusicFile
[]
,
projectPath
:
string
,
options
?:
{
autoResolve
?:
boolean
;
showDialog
?:
boolean
}
,
)
=>
Promise
<
{
needsUserInput
:
boolean
;
restoredMedia
:
MediaFile
[]
;
restoredMusic
:
MediaFile
[]
;
result
:
ProjectRestorationResult
;
}
,
>
;
showMissingFilesDialog
:
boolean
;
state
:
RestorationState
;
}
Хук для управления восстановлением медиафайлов при открытии проекта
Returns
{
cancelMissingFilesDialog
:
()
=>
void
;
currentPhase
:
|
"error"
|
"completed"
|
"scanning"
|
"restoring"
|
"user_input"
;
error
:
string
;
getMissingFiles
:
()
=>
any
;
getRelocatedFiles
:
()
=>
any
;
getRestorationReport
:
()
=>
any
;
getRestorationStats
:
()
=>
any
;
handleMissingFilesResolution
:
(
resolved
:
{
action
:
"remove"
|
"found"
;
file
:
SavedMediaFile
;
newPath
?:
string
;
}
[]
,
)
=>
Promise
<
{
foundFiles
:
MediaFile
[]
;
removedFiles
:
SavedMediaFile
[]
}
>
;
isRestoring
:
boolean
;
progress
:
number
;
resetRestoration
:
()
=>
void
;
restorationResult
:
any
;
restoreProjectMedia
:
(
mediaFiles
:
SavedMediaFile
[]
,
musicFiles
:
SavedMusicFile
[]
,
projectPath
:
string
,
options
?:
{
autoResolve
?:
boolean
;
showDialog
?:
boolean
}
,
)
=>
Promise
<
{
needsUserInput
:
boolean
;
restoredMedia
:
MediaFile
[]
;
restoredMusic
:
MediaFile
[]
;
result
:
ProjectRestorationResult
;
}
,
>
;
showMissingFilesDialog
:
boolean
;
state
:
RestorationState
;
}
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Timeline Studio API Documentation - v0.26.0
Loading...
Хук для управления восстановлением медиафайлов при открытии проекта