Release v2.12.0
This commit is contained in:
1 parent
bdb5ab4bac
commit
0a03cdd0b7
32 files changed
+2211
-18
No files matched your search
@@ -17,6 +17,7 @@ const { ensureFontLibrary } = require('#src/web/lib/media/font-library');
|
||||
const { createRequestAuthHeaders } = require('#src/request-auth');
|
||||
const { withClientNameReservation } = require('#src/data/client-name-check');
|
||||
const { getConfiguredPlayerIdentifier, recordPlayerHeartbeat } = require('#src/data/player-registry');
|
||||
const { createLocalControlService } = require('./player/local-control');
|
||||
|
||||
|
||||
// Player runtime, media API, and websocket wiring.
|
||||
@@ -94,6 +95,15 @@ async function start() {
|
||||
const server = http.createServer(app);
|
||||
playerRuntime.installWebsocket(server);
|
||||
app.use(express.json());
|
||||
const localControlService = createLocalControlService({
|
||||
app: app,
|
||||
server: server,
|
||||
pool: pool,
|
||||
playerRuntime: playerRuntime,
|
||||
playerIdentifier: PLAYER_DEVICE_ID,
|
||||
cachePath: path.join(MEDIA_DIR, 'player-cache', 'local-control-users.json'),
|
||||
cacheMaxAgeMs: Number(process.env.LOCAL_CONTROL_CACHE_MAX_AGE_MS || 72 * 60 * 60 * 1000)
|
||||
});
|
||||
|
||||
let hasLoggedPlayerStartup = false;
|
||||
|
||||
@@ -364,6 +374,8 @@ async function start() {
|
||||
onPlayerPublicBaseUrl: setPlayerPublicBaseUrl
|
||||
});
|
||||
|
||||
await localControlService.loadCache();
|
||||
|
||||
function createThinClientWebSocketUrl() {
|
||||
if (!BRIDGE_PUBLIC_URL) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user