Garry's Mod

Garry's Mod

134 个评价
Gmod Spotify Integration
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 影视
文件大小
发表于
更新日期
64.218 KB
2020 年 9 月 30 日 上午 11:06
2020 年 10 月 27 日 上午 7:46
4 项改动说明 ( 查看 )

订阅以下载
Gmod Spotify Integration

描述
Introduction

What does this addon do?

This addon is meant as a controller for your Spotify desktop-app inside Garry's Mod. (Mostly for people who have no media keys on their keyboards). A Spotify Premium account is nedded.

Console Commands
Spotify_RunWindow: Opens the GUI Spotify_Pause: Pauses/Plays the current track Spotify_Next: Skips the current track Spotify_Previous: Returns to the previous track
All available commands can allso be found in the TTT2 key bindings menu

Set up
Alternative tutorial with pictures[imgur.com]

Go to the Spotify developer dashboard [developer.spotify.com] and click "create an app". Follow the instructions until you have access to both client id and client secret of your app. Copy those for later. All thats left to do is to click on "edit settings" inside your app. Add the website "https://henotu.github.io" to the "Redirect URIs". Now follow the instructions inside Garry's mod. (Open the GUI inside gmod with Spotify_RunWindow)

As ulx superadmin on a server you can store your client id and client secret inside the settings menu for people on your server (so they don't have to register a spotify app)

Note: The client id and Client secret are both stored as plain text. People with malicious intent could easily access these keys.

Common Bugs & fixes
[gmod-spotify-integration] addons/gmod-spotify-integration/lua/autorun/client/cl_main.lua:189: attempt to index local 'tbl' (a nil value) 1. unknown - addons/gmod-spotify-integration/lua/autorun/client/cl_main.lua:189
Solutions:
  • Is Spotify playing on your computer? If not, start something
  • Try restarting Spotify

{ "error" : { "status" : 403, "message" : "Player command failed: Restriction violated", "reason" : "UNKNOWN" } }
Possible Solutions:
  • You tried to skip to the previous track which doesn't exist

Github
You can find this addon on Github[github.com].
23 条留言
Evan 8 月 3 日 下午 4:19 
does this work?
ilikegarrysmod 6 月 19 日 下午 2:21 
when i try to authenticate it just says invalid client
Aspen Willow 5 月 16 日 上午 5:05 
Could this be made to only work when in a vehicle?
Mingus Kingus 3 月 6 日 下午 8:39 
Why does it rq premium? Just curious
Shydun24 2024 年 8 月 10 日 上午 6:54 
you are quite possibly the greatest person who's ever lived
kaymo 2021 年 5 月 14 日 下午 4:59 
wtf... spotify still poo poo
Henotu  [作者] 2021 年 5 月 14 日 上午 6:17 
@TSGAMEMING™ Not that I'm aware of
TSGAMEMING 2021 年 5 月 14 日 上午 1:05 
It's Dead ?
Alucard 2021 年 2 月 19 日 下午 7:15 
Hey i'm having the same issue as Dexit when setting up the controller it says "to authorize click here" it doesn't do anything it had me login but then it just sits on a black screen so i think what Dexit was trying to say is the link may be broken
kaymo 2020 年 11 月 29 日 上午 1:03 
wtf spotify poo poo