GithubHelp home page GithubHelp logo

nowplaying's Introduction

Now Playing

2022-01-16.09-20-39.mp4

Now Playing is a webpage widget that tracks and visualizes what's playing on iTunes and Spotify (Desktop App only, it seems). I made this for my Twitch stream and thought I'd share :)

Initially adapted from Zyphen's Now Playing overlay, my version fixes various issues and changes the design to something that's more to my liking.

It also does not require Tuna as it's bundled with Snip.

Installation

Download the latest release from the Releases page and extract it somewhere.

  • Set up Snip:
    • Navigate to the Snip folder and run Snip.exe.
    • Right click the tray icon, pick your player, check Save Album Artwork and Save Information Separately.
    • Optional: If you'd like the player to hide if you pause your music, check Empty File if No Track Playing.
  • Right-click and quit Snip from the tray.
  • Set up a Browser Source in OBS (REQUIRES OBS 27.2 AND UP):
    • I'd say a good size for a 720p stream is 120 height and at least 500 width, and put it in the bottom left of your scene.
    • Tick the Local file checkbox, click Browse and select the index.html file.

Configuration

In the settings.json file these configuration options are available:

  • topLabel may be set to one of the following values: artist, album and track. Defaults to artist
  • bottomLabel may be set to one of the following values: artist, album and track. Defaults to track
  • delayBeforeDisappearance may be set to a number in seconds, which is a delay before the widget will disappear. Note that if you set this, track/playback changes will not be reflected until the delay has elapsed, as it is uninterruptible. Defaults to null

Usage

For use in OBS, run Snip.exe and keep in the background (And if you're using iTunes, conveniently it launches it too). simply quit it when you're done and close Snip from the system tray.

Notes

If you want a solution for macOS, check out NowPlayingRetreiver. It can be used with this widget.

This widget comes bundled with Snip and so offers only Windows support out of the box.

In principle any solution which can save a few separate files to the filesystem to be read by the widget, can still work. It's my understanding that Tuna can be used in this way, but I could not figure out how to use it properly.

Contributing

Pull requests are more than welcome to address any issue you see and expand on this project further. It'd be best to discuss your ideas in an Issue first though.

Donations

I'm humbled to have been asked for a donation link, so I set one up:

License

MIT

nowplaying's People

Contributors

adarhef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nowplaying's Issues

Album Title & Hide after 10 seconds

I'd love if there was a way to show album titles instead of artist title. Also, when streaming, the music player kind of gets in the way because it's always up. If there was a feature to hide it after 10 seconds of a song plays that would be great.

Can't make it work

I downloaded the latest release and a lot of files were missing so I downloaded the source code, added the browser source, attached the index.html as a local file and nothing. I also tried using the url of the webpage instead of the local file and still no obs output.
When I open the index.html nothing pops up (after running the bat). From the system tray/the txt files it generates I can see Snip is working so I don't think that's the problem. Any ideas on what I should try?

No display

This is probably user error, but I cannot for the life of my get the widget to actually display. Snips is working and showing the data, but it won't pull to the index. I've launched the html to see and it is blank. Again, I am sure I am missing something. Please help! Let me know what you need to troubleshoot. I do have the local file linked in OBS.
image

image

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.