mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
added transcode commend
This commit is contained in:
parent
9f12d8bfc1
commit
1acc765f92
@ -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`;
|
||||
|
Loading…
Reference in New Issue
Block a user