Skip to content

Commit

Permalink
✨ check #frames
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 12, 2022
1 parent 711730f commit 870f2d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ export const useAnnotationStore = defineStore('annotation', () => {
if (state.video.duration && video.duration && state.video.duration !== video.duration) {
throw `The duration of annotation and the video does not match (duration ${state.video.duration} != ${video.duration}).`
}
if (state.video.frames && video.frames && state.video.frames !== video.frames) {
throw `The frames of annotation and the video does not match (duration ${state.video.frames} != ${video.frames}).`
}
if (state.video.width && video.width && state.video.width !== video.width) {
utils.notify(
`The width of annotation and the video does not match (width ${state.video.width} != ${video.width}).`,
Expand Down

0 comments on commit 870f2d4

Please sign in to comment.