Skip to content

16.0.1 Playback stalls at 1:07 & Type mismatch on /next (ListItemView) #1121

@yaGeey

Description

@yaGeey

Steps to reproduce

To reproduce I confirmed this behavior using the official examples provided in the repository, as well as in my own project.

  1. Run the official browser example (kira or googlevideo example).
  2. Load any video.
  3. Check console for type mismatch warning
  4. Playback will stall after the first segment batch.

Failure Logs

[YOUTUBEJS][Parser]: Error: Type mismatch, got ListItemView expected MenuServiceItem | MenuServiceItemDownload.
    at ERROR_HANDLER (youtubei__js_web.js?v=95515d63:27061:30)
    at Object.parseItem (youtubei__js_web.js?v=95515d63:27397:13)
    at new MenuFlexibleItem (youtubei__js_web.js?v=95515d63:15829:37)
    at parseItem (youtubei__js_web.js?v=95515d63:27415:22)
    at Object.parseArray (youtubei__js_web.js?v=95515d63:27434:22)
    at new Menu (youtubei__js_web.js?v=95515d63:15878:42)
    at Object.parseItem (youtubei__js_web.js?v=95515d63:27415:22)
    at new VideoPrimaryInfo (youtubei__js_web.js?v=95515d63:25577:32)
    at parseItem (youtubei__js_web.js?v=95515d63:27415:22)
    at Object.parseArray (youtubei__js_web.js?v=95515d63:27434:22)

Expected behavior

  1. The /next endpoint should fetch and parse metadata without errors.
  2. Video playback (using SABR adapter) should continue smoothly without stalling.

Current behavior

  1. Calling execute('/next') throws a parser error.
  2. Independently, video playback stops/buffers indefinitely. This playback stall happens silently (no specific error logs in the console).

Version

Default

Anything else?

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions