Skip to content

FilmAsset.CustomData missing Chunks/FilmLength #34

Description

@localden

Version: 1.0.14

ugcDiscovery.getFilmByMatchId returns the film blob manifest with CustomData.Chunks[] (each { Index, FileRelativePath, ChunkSize, ChunkType }) and CustomData.FilmLength, plus BlobStoragePathPrefix at the top level — those are what a client needs to download the chunks. The FilmCustomData interface doesn't model any of them (it has FilmMajorVersion, FilmStatusBond, ManifestRefreshSeconds, etc.), and getFilmByMatchId is typed HaloApiResult<AuthoringAsset> which has neither BlobStoragePathPrefix nor a typed CustomData.

What the API actually returns (truncated):

{
  "BlobStoragePathPrefix": "https://blobs-infiniteugc.svc.halowaypoint.com/.../",
  "CustomData": {
    "Chunks": [
      { "Index": 0, "FileRelativePath": "/filmChunk0", "ChunkSize": 1234567, "ChunkType": 1 },
      { "Index": 1, "FileRelativePath": "/filmChunk1", "ChunkSize": 987654, "ChunkType": 2 }
    ],
    "FilmLength": 123456,
    "MatchId": "...",
    "HasGameEnded": true
  }
}

Fix: add to FilmCustomData:

Chunks?: { Index: number; FileRelativePath: string; ChunkSize: number; ChunkType: number }[];
FilmLength?: number;
MatchId?: string;
HasGameEnded?: boolean;

and either type getFilmByMatchId as HaloApiResult<FilmAsset> or add BlobStoragePathPrefix?: string to whatever it returns.

filmshell carries a local HaloFilm shape until this lands.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions