Skip to content

Feat: quickstart video-analysis sample feature - #1083

Open
sedanah-m wants to merge 10 commits into
masterfrom
feat/video-anaylsis-final
Open

Feat: quickstart video-analysis sample feature#1083
sedanah-m wants to merge 10 commits into
masterfrom
feat/video-anaylsis-final

Conversation

@sedanah-m

Copy link
Copy Markdown
Contributor

@sedanah-m
sedanah-m marked this pull request as ready for review September 2, 2026 17:01
Comment thread ai/ai-samples/src/features/video-anaylsis/index.tsx Fixed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new video analysis feature using the Gemini API, allowing users to upload videos and receive analysis results via standard or streaming responses. The reviewer feedback points out critical issues with invalid model names (gemini-3.5-flash and gemini-3.7-flash) that would cause runtime failures, recommending valid alternatives like gemini-1.5-flash. Additionally, an improvement is suggested to use onload instead of onloadend in the FileReader logic to avoid redundant promise rejections.

Comment thread ai/ai-samples/src/features/video-anaylsis/service.ts Outdated
Comment thread ai/ai-samples/src/features/video-anaylsis/service.ts Outdated
Comment thread ai/ai-samples/src/features/video-anaylsis/service.ts Outdated
sedanah-m and others added 4 commits September 2, 2026 10:04
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@sedanah-m sedanah-m changed the title feat: quickstart video-analysis sample feature Feat: quickstart video-analysis sample feature Sep 2, 2026

@hsubox76 hsubox76 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this still needs to be plugged into the app - imported into index.tsx and App.tsx and inserted into the navigation, added to the isolatedFeature switch, etc., and added to the README. (Also I think automatic function calling needs to be added to the README).

I added it to isolatedFeature and tested it so it works and the code looks good, but it just needs to be plugged in.

Comment thread ai/ai-samples/src/features/video-anaylsis/index.tsx
- registered /video-analysis route in App.tsx and index.tsx
- add dev:video npm script for isolated feature development
- document Video Analysis in README.md
resolve({
inlineData: {
data: base64Data,
mimeType: file.type || 'video/mp4',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the fallback video/mp4? If there's no file.type isn't something wrong? Or do mp4s sometimes not have a file type?

hsubox76
hsubox76 previously approved these changes Sep 3, 2026
@hsubox76
hsubox76 dismissed their stale review September 3, 2026 22:15

forgot package.json

Comment thread ai/ai-samples/README.md
npm run dev:function # Function Calling
npm run dev:auto-function # Automatic Function Calling
npm run dev:image # Image Generation
npm run dev:video # Video Analysis

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think package.json needs to be updated to include this script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants