docs: clarify multi-targeting (.NET 9 and .NET 10) in README build instructions
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user