Closed BanchouBoo closed 2 years ago
I can take a look. Any sample URL?
It seems, unlike Twitch, Youtube does not provide a direct API to get the live chat JSON. Instead, yt-dlp has this 200-line Python script to parse and download the chat JSON fragments. I'm not planning to rewrite this into Lua and maintain it up-to-date. Sorry.
In case anyone stumbles across this in the future, I decided to make it myself: https://github.com/BanchouBoo/mpv-youtube-chat
Thanks for sharing. I quite like the way you scroll the messages interactively. However, I think Twitch's GQL API now aggregates messages in a more coarse time granularity, which might make the scrolling less enticing.
Similar to Twitch vods, yt-dlp includes a
live_chat.json
subtitle file with all the information for the chat messages, would be very nice to have