From a0f4d9f88466d6c6ce2d55a03535e3f463d60cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Birm=C3=A9?= Date: Thu, 11 May 2023 17:11:05 +0200 Subject: [PATCH] fix: changed endpoint for vtt dummy and slice endpoint no need to use a channel specific endpoint url for these functions --- engine/server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/server.ts b/engine/server.ts index b2ed1efb..0a00d637 100644 --- a/engine/server.ts +++ b/engine/server.ts @@ -23,8 +23,8 @@ const sessionsLive = {}; // Should be a persistent store... const sessionSwitchers = {}; // Should be a persistent store... const switcherStatus = {}; // Should be a persistent store... const eventStreams = {}; -const DefaultDummySubtitleEndpointPath = "dummyUrl" -const DefaultSubtitleSpliceEndpointPath = "sliceUrl" +const DefaultDummySubtitleEndpointPath = "/vtt/dummyUrl" +const DefaultSubtitleSpliceEndpointPath = "/vtt/sliceUrl" export interface ChannelEngineOpts { defaultSlateUri?: string; @@ -335,8 +335,8 @@ export class ChannelEngine { this.server.get('/health', this._handleAggregatedSessionHealth.bind(this)); this.server.get('/health/:sessionId', this._handleSessionHealth.bind(this)); this.server.get('/reset', this._handleSessionReset.bind(this)); - this.server.get('/channels/:channelId/' + this.dummySubtitleEndpoint, this._handleDummySubtitleEndpoint.bind(this)); - this.server.get('/channels/:channelId/' + this.subtitleSliceEndpoint, this._handleSubtitleSliceEndpoint.bind(this)); + this.server.get(this.dummySubtitleEndpoint, this._handleDummySubtitleEndpoint.bind(this)); + this.server.get(this.subtitleSliceEndpoint, this._handleSubtitleSliceEndpoint.bind(this)); this.server.on('NotFound', (req, res, err, next) => { res.header("X-Instance-Id", this.instanceId + `<${version}>`);