How to use the ytmusic.js function in ytmusic

To help you get started, we’ve selected a few ytmusic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MarshallOfSound / Google-Play-Music-Desktop-Player-UNOFFICIAL- / src / renderer / windows / GPMWebView / index.js View on Github external
const waitForExternal = setInterval(() => {
  if (serviceReady()) {
    clearInterval(waitForExternal);

    if (service === 'youtube-music') {
      const YTMusic = require('ytmusic.js');
      window.GMusic = YTMusic;
      window.GPM = new YTMusic();
      require('./mock-gpusic-ui');
      // TODO: Implement theming support
      window.GPMTheme = {
        updateTheme() {},
        enable() {},
        disable() {},
      };
    } else {
      const GMusic = require('gmusic.js');
      window.GMusic = GMusic;
      // Google Play Music
      require('gmusic-ui.js')(GMusic);
      require('gmusic-mini-player.js')(GMusic);
      const GMusicTheme = require('gmusic-theme.js');

      window.GPM = new GMusic();

ytmusic

Unofficial Youtube Music Api

MIT
Latest version published 2 years ago

Package Health Score

34 / 100
Full package analysis

Popular ytmusic functions