docs: clarify multi-targeting (.NET 9 and .NET 10) in README build instructions

This commit is contained in:
2026-09-17 22:40:11 +02:00
parent 9042643383
commit 73f4bb488a
5 changed files with 96 additions and 8 deletions
+31
View File
@@ -71,9 +71,40 @@ namespace JellyfinPlugin.Api
let currentItemId = null;
let interceptedItemId = null;
function isTranscoding() {
try {
if (window.playbackManager) {
const currentPlayer = window.playbackManager.getCurrentPlayer();
if (currentPlayer && typeof currentPlayer.getPlayerState === 'function') {
const state = currentPlayer.getPlayerState();
if (state && state.PlayMethod) {
return state.PlayMethod === 'Transcode' || state.PlayMethod === 'DirectStream';
}
}
}
} catch (e) {}
const video = document.querySelector('video');
if (video && video.src) {
const src = video.src.toLowerCase();
if (src.includes('transcode') || src.includes('.m3u8') || src.includes('transcodereasons')) {
return true;
}
}
return false;
}
function applyCrop(cropData) {
const video = document.querySelector('video');
if (!video) return;
if (isTranscoding()) {
console.log('Black Bar Remover: Video is transcoded by server, skipping CSS crop.');
video.style.clipPath = '';
video.style.transform = '';
return;
}
const parts = cropData.split(':');
if (parts.length === 4) {
const w = parseInt(parts[0]);