Skip to content

Lord-ZuzurNC/YTMusicSLOBSWidget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from Topik

Original GitHub repo is: https://github.com/topik/youtube-music-obs-widget

Tested only with Youtube Music Desktop version 2.0.5 https://github.com/ytmdesktop/ytmdesktop/releases/tag/v2.0.5

Youtube Music OBS Widget

Youtube Music OBS (Streamlabs OBS) widget (formerly Google Youtube Music OBS Widget)

This widget is using Youtube Music Desktop Player API for displaying informations about song that is being played.

Update 5.2.2024

Updated data collection to work with new YTM Desktop Player version. If the widget doesn't work for you, please update your YTM Desktop Player to the latest version. Don't forget to enable Companion server in the Settings > Integrations.

Update 24.12.2022

Widget now works with Youtube Music Dekstop Player (https://ytmdesktop.app/)

Features

  • Your viewers can see what are you listening to
  • Easy setup
  • Responsive
  • Doesn't need server to run, everything is HTML and Javascript
  • Possible to hide/change some elements, for example progress-bar, disable background, disable album image, position album image to right, circle progressbar
  • Text-only version
  • no-CSS version

Requirements:

  • Youtube Music Desktop App (https://ytmdesktop.app/)
  • Enable Companion server (YTMDesktop > Settings > Integrations > Companion server), image: https://imgur.com/a/f39ibMA)
  • In Companion server settings:
    • Enable Allow browser communication
    • Enable companion authorization (just for the first time you use the widget)*

Installation steps for OBS (Streamlabs OBS)

  1. Add source
  2. Browser source
  3. URL: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/
  • in case you want to run widget on your local machine, clone this repository, check Local file and link the file index.html

Parameters

You can use multiple parameters (separated by + sign) for disabling/enabling some features.

Parameter Information Usage
right Puts album image to the right side (default left) index.html?features=right
disable-progressbar Disables bottom progressbar index.html?features=disable-progressbar
disable-albumimage Disable album image index.html?features=disable-albumimage
transparent-background Disable background, set background as transparent index.html?features=transparent-background
circle-progressbar Disable progressbar, use circle around album image as progressbar index.html?features=circle-progressbar
disable-time Disable timer above progressbar index.html?features=disable-time
album-spin Spin the album image while playing index.html?features=album-spin
not-hide-on-pause Still display the song info while pausing index.html?features=not-hide-on-pause
blink-pause Show a pause icon over the album image. Note that not-hide-on-pause is required for this feature. index.html?features=blink-pause

You can combine multiple parameters together, for example for transparent background and circle progress bar, you will use: index.html?features=transparent-background+circle-progressbar

Examples

Basic setup

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html
Width: 400
Height: 120
image

My personnal setup

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=transparent-background+circle-progressbar+album-spin+disable-time+not-hide-on-pause+blink-pause
Width: 500
Height: 138
image

Disabled timer and progressbar

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=disable-time+disable-progressbar
Width: 400
Height: 120
image

Enable circle progressbar (around album image)

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=circle-progressbar
Width: 400
Height: 120
image

Shift position of album image

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=right
Width: 400
Height: 120
image

Disable background image (set background as transparent) and enable circle progressbar

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=transparent-background+circle-progressbar
Width: 400
Height: 120
image

Disable background, text only version

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html?features=transparent-background
Width: 400
Height: 100 (everything under 101px is text only version)
image

Fullscreen width footer

URL of the widget: https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html
Width: 1920
Height: 150
image

You can basically set any width and height. You can also open the page (https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/index.html) in your browser to test the size of the widget.

Text-only version

Widget will show only interpret name and song name. URL:https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/textonly.html

No-CSS version

Basic widget without no additional CSS. You can customize CSS via OBS or by downloading this project. URL:https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/nocss.html

Custom YTMDesktop Remote Access URL

If you want to fetch data from other source than 127.0.0.1:9863, you can use parameter url, for example: URL:https://lord-zuzurnc.github.io/YTMusicSLOBSWidget/?url=https://example.tld:9863 (don't forget about the port)

About

Youtube Music OBS (Streamlabs OBS) widget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.0%
  • CSS 36.7%
  • HTML 17.3%