Flattening of video sources

Open
#106 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api, backend

Research direction

Start by tracing how X-Ray extracts video sources and returns them in its structured output. Compare the output for a video with multiple formats against the issue’s examples of same-footage formats and distinct videos. Done means clients can tell related formats apart from separate videos without showing unplayable duplicate entries.

Written by the indexing model from the issue text.

Description

A video may contain multiple sources, for a browser to pick the one they support best.

Right now, these are all flattened into the single array of videos, so that there seems to be no way (without fetching and parsing the originating page) to properly trace back which video URLs are actually the same footage but different file formats, and which ones are different videos.

Moreover, Microsub clients (probably) display all videos in the array below (or next to) one another. This may result in (1) the duplicates actually showing, and (2) some of the copies not being playable (because client support for that particular format [webm, h265, etc.] is missing.) I think.

Dominant language
PHP
Stars
96
Forks
17
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aaronpk/XRay

All issues in aaronpk/XRay

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.