mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-27 01:06:42 +01:00
wip: design refactor
This commit is contained in:
@@ -62,8 +62,8 @@ export const itemThemeColorAtom = atom(
|
||||
const newColors = { ...currentColors, ...update };
|
||||
|
||||
// Recalculate text color if primary color changes
|
||||
if (update.primary) {
|
||||
newColors.text = calculateTextColor(update.primary);
|
||||
if (update.average) {
|
||||
newColors.text = calculateTextColor(update.average);
|
||||
}
|
||||
|
||||
set(baseThemeColorAtom, newColors);
|
||||
|
||||
@@ -79,7 +79,7 @@ export const getStreamUrl = async ({
|
||||
if (mediaSource.SupportsDirectPlay || forceDirectPlay === true) {
|
||||
if (item.MediaType === "Video") {
|
||||
console.log("Using direct stream for video!");
|
||||
return `${api.basePath}/Videos/${itemId}/stream.mp4?playSessionId=${sessionData.PlaySessionId}&mediaSourceId=${mediaSource.Id}&static=true`;
|
||||
return `${api.basePath}/Videos/${itemId}/stream.mp4?playSessionId=${sessionData.PlaySessionId}&mediaSourceId=${mediaSource.Id}&static=true&subtitleStreamIndex=${subtitleStreamIndex}&audioStreamIndex=${audioStreamIndex}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}`;
|
||||
} else if (item.MediaType === "Audio") {
|
||||
console.log("Using direct stream for audio!");
|
||||
const searchParams = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user