From 1acc765f929f76da6e1d5ac84f7fb2becad8759e Mon Sep 17 00:00:00 2001 From: KGT1 Date: Tue, 29 Sep 2020 13:32:52 +0200 Subject: [PATCH] added transcode commend --- src/playbackmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playbackmanager.js b/src/playbackmanager.js index fcb19e7..c855387 100644 --- a/src/playbackmanager.js +++ b/src/playbackmanager.js @@ -22,7 +22,7 @@ var _seek; const jellyfinClientManager = require("./jellyfinclientmanager"); function streamURLbuilder (itemID, bitrate) { - // so the server transcodes. Seems appropriate as it has the source file. + // so the server transcodes. Seems appropriate as it has the source file.(doesnt yet work i dont know why) const supportedCodecs = "opus"; const supportedContainers = "ogg,opus"; return `${jellyfinClientManager.getJellyfinClient().serverAddress()}/Audio/${itemID}/universal?UserId=${jellyfinClientManager.getJellyfinClient().getCurrentUserId()}&DeviceId=${jellyfinClientManager.getJellyfinClient().deviceId()}&MaxStreamingBitrate=${bitrate}&Container=${supportedContainers}&AudioCodec=${supportedCodecs}&api_key=${jellyfinClientManager.getJellyfinClient().accessToken()}&TranscodingContainer=ts&TranscodingProtocol=hls`;