Git Product home page Git Product logo

Comments (5)

CrendKing avatar CrendKing commented on August 12, 2024

I can take a look. Any sample URL?

from mpv-twitch-chat.

BanchouBoo avatar BanchouBoo commented on August 12, 2024

https://youtu.be/O4oixjzvrZk

from mpv-twitch-chat.

CrendKing avatar CrendKing commented on August 12, 2024

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.

from mpv-twitch-chat.

BanchouBoo avatar BanchouBoo commented on August 12, 2024

In case anyone stumbles across this in the future, I decided to make it myself: https://github.com/BanchouBoo/mpv-youtube-chat

from mpv-twitch-chat.

CrendKing avatar CrendKing commented on August 12, 2024

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.

from mpv-twitch-chat.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.