We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a7e8d commit e727497Copy full SHA for e727497
client/src/components/annotators/NativeVideoAnnotator.vue
@@ -128,8 +128,9 @@ export default defineComponent({
128
* Get the URL for a specific frame
129
*/
130
function getFrameUrl(frameNumber: number): string {
131
- const fps = videoInfo.value?.fps || props.originalFps || props.frameRate;
132
- return `${baseApiUrl}/frame?path=${encodeURIComponent(props.nativeVideoPath)}&frame=${frameNumber}&fps=${fps}`;
+ // Use annotation frame rate since frameNumber is an annotation frame number.
+ // timestamp = frameNumber / annotationFps gives the correct time in the video.
133
+ return `${baseApiUrl}/frame?path=${encodeURIComponent(props.nativeVideoPath)}&frame=${frameNumber}&fps=${props.frameRate}`;
134
}
135
136
/**
0 commit comments