Skip to content

Conversation

LuanRT
Copy link
Owner

@LuanRT LuanRT commented Mar 31, 2024

To fix this, I modified the protobuf parameter we were using from:

{
    "1": {
        "2": 6
    },
    "59": 1
}

To:

{
    "1": {
        "1": 1
    },
    "59": 1
}

This is probably a temporary solution but it seems to work fine for now.

Unless you can't run our JavaScript interpreter (Jinter), I recommend using the WEB client (default) for something more stable.

Testing

Run the following code and try to play the streaming URL in a browser.

import { Innertube } from 'youtubei.js';

const yt = await Innertube.create();

const videoInfo = await yt.getBasicInfo('ksEYRaIpP7A', 'ANDROID');

console.info("Playback URL:", videoInfo.streaming_data.formats.find((stream) => stream.quality_label == '720p').url);

Related:
#623, iv-org/invidious#4498, yt-dlp/yt-dlp#9553, yt-dlp/yt-dlp#9554

LuanRT added 2 commits March 31, 2024 11:24
Hard to find a comment with more than 20 replies. Removing this for now.
@LuanRT LuanRT merged commit d589365 into main Mar 31, 2024
@LuanRT LuanRT deleted the fix/android-player-req branch March 31, 2024 14:35
pukkandan added a commit to yt-dlp/yt-dlp that referenced this pull request Mar 31, 2024
MoojMidge added a commit to MoojMidge/plugin.video.youtube that referenced this pull request Apr 1, 2024
kuylar added a commit to kuylar/InnerTube that referenced this pull request Apr 2, 2024
kuylar added a commit to kuylar/InnerTube that referenced this pull request Apr 2, 2024
kuylar added a commit to lighttube-org/InnerTube that referenced this pull request Apr 2, 2024
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants