Why video_metadata parameter is not supported in Gemini API?

When I use Gemini 2.5 API, I got this… This is my code:
content = types.Content(
parts=[
types.Part(
file_data=types.FileData(file_uri=video.uri),
video_metadata=types.VideoMetadata(
start_offset=start_offset,
end_offset=end_offset,
# fps=fps,
)
),
types.Part(text=prompt_resumption.format(earlier=earlier, start_time=start_time, end_time=end_time, latter=latter, fps=fps))
]
)

# Send request with function declarations
response = client.models.generate_content(
    model="gemini-2.5-flash-preview-05-20",
    # model="gemini-2.0-flash",
    contents=content,
    config=config,
)

BTW, I’d like to know how to reference my uploaded file (namely variable “video”) directly but not “video.uri” with metadata.

Hey @yuxuan_shang , similar issue has been reported in the gitHub repository. Based on the discussion there, it has already been escalated to the engineering team.

Thank you

Thanks for all your effort.