@@ -28,35 +28,24 @@ const useAudioPlayer = (audioUrl) => {
|
||||
window.location.search.includes('forcetv') ||
|
||||
localStorage.getItem('forceTVMode') === 'true';
|
||||
|
||||
// More aggressive TV detection
|
||||
// More conservative TV detection - only explicit TV indicators
|
||||
const isTVPlatform = forceTV ||
|
||||
userAgent.includes('tizen') ||
|
||||
userAgent.includes('samsung') ||
|
||||
userAgent.includes('lg') ||
|
||||
userAgent.includes('webos') ||
|
||||
userAgent.includes('smarttv') ||
|
||||
userAgent.includes('smart-tv') ||
|
||||
userAgent.includes('samsungbrowser') ||
|
||||
userAgent.includes('netcast') ||
|
||||
userAgent.includes('hbbtv') ||
|
||||
userAgent.includes(' tv ') ||
|
||||
userAgent.includes('tv;') ||
|
||||
userAgent.includes('tv)') ||
|
||||
userAgent.includes('roku') ||
|
||||
userAgent.includes('chromecast') ||
|
||||
window.tizen ||
|
||||
window.webOS ||
|
||||
window.PalmServiceBridge ||
|
||||
// Screen-based detection for large displays without touch
|
||||
(window.screen.width >= 1920 && window.screen.height >= 1080 && !('ontouchstart' in window) && !navigator.maxTouchPoints) ||
|
||||
// Only very specific Samsung TV patterns
|
||||
(userAgent.includes('samsung') && userAgent.includes('tv')) ||
|
||||
(userAgent.includes('samsungbrowser') && userAgent.includes('tv')) ||
|
||||
// TV-specific properties
|
||||
(window.opera && window.opera.tv) ||
|
||||
// Additional Samsung TV patterns
|
||||
userAgent.includes('maple') ||
|
||||
// Large screen without typical desktop indicators
|
||||
(window.screen.width > 1600 && window.screen.height > 900 && !navigator.userAgent.includes('Windows') && !navigator.userAgent.includes('Mac') && !navigator.userAgent.includes('Linux')) ||
|
||||
// Force TV mode if screen is very large and no mouse detected
|
||||
(window.screen.width >= 3840 || window.screen.height >= 2160);
|
||||
(window.opera && window.opera.tv);
|
||||
|
||||
console.log('TV Detection:', {
|
||||
isTVPlatform,
|
||||
|
||||
Referencia en una nueva incidencia
Block a user