mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-08-03 19:41:28 +02:00
added express endpoints, a settings service and a media info service
This commit is contained in:
9
src/constants/globalEvents.js
Normal file
9
src/constants/globalEvents.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const globalEvents = {
|
||||
play: "play",
|
||||
pause: "pause",
|
||||
playPause: "playPause",
|
||||
next: "next",
|
||||
previous: "previous",
|
||||
};
|
||||
|
||||
module.exports = globalEvents;
|
9
src/constants/mediaKeys.js
Normal file
9
src/constants/mediaKeys.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const globalEvents = require("./globalEvents");
|
||||
|
||||
const mediaKeys = {
|
||||
MediaPlayPause: globalEvents.playPause,
|
||||
MediaNextTrack: globalEvents.next,
|
||||
MediaPreviousTrack: globalEvents.previous,
|
||||
};
|
||||
|
||||
module.exports = mediaKeys;
|
Reference in New Issue
Block a user