Automattic / Automattic/jetpack

VideoPress: `wp/v2/media/<id>` doesn't provide video tracks data

Open
#27,492 2 comments 0 reactions 0 assignees View on GitHub
[Feature] VideoPress [Pri] Low [Status] Auto-allocated [Status] Stale Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

The `tracks` field always returns an empty array even when the video has chapters.

`wp/v2/media/` endpoint response body in the client

![Image](https://user-images.githubusercontent.com/77539/202697155-ff9bacf1-b539-4ce2-bc5c-2eaa13033b39.png)

`wp/v2/media/` body response
![Image](https://user-images.githubusercontent.com/77539/202697157-3e7b8eb4-7fd2-4705-8fb9-fb37d164747f.png)

`v1.1/videos/` body response (same video post)
![Image](https://user-images.githubusercontent.com/77539/202697156-5883aa84-7e0d-493c-8805-4955df80a1d9.png)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the wp/v2/media/ endpoint and its handling of the tracks field, comparing its response with the v1.1/videos/ response shown in the issue. Done means the media endpoint returns video track and chapter data instead of an empty tracks array for videos that contain chapters.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.