
IsSmartTV.js is a minimal JavaScript library that allows you to detect SmartTV devices based on the user agent.
The library contains an extensive list of known SmartTV user agent substrings sourced from real world devices:
- airties
- aldinord
- aldisued
- altech uec
- altus
- amazon
- aoc
- arris
- atlantic
- atvio
- awox
- aya
- bangolufsen
- beko
- blaupunkt_umc
- botech
- bush
- cecotec
- celcus
- changhong
- clayton
- continental_edi
- crenova
- crown
- daewoo
- digihome
- dikom
- diora
- dmm
- elektroland
- electronia
- essentielb
- expressluck
- finlux
- fu
- fuego
- gogen
- grundig
- haier
- hanseatic
- hi-level
- hisense
- hitachi
- hofer
- horizon
- hotel
- humax
- hyundai
- ikea
- intek
- inverto
- jvc
- kalley
- kendo
- kubo
- laurus
- lg
- lifemaxx
- linsar
- loewe
- logik
- luxor
- manhattan
- maxbell
- medion
- micromax
- mori
- nad
- namkoo
- nevir
- novatech
- oki
- oktos
- orava
- otto
- panasonic
- philips
- pioneer
- pulse
- radiola
- rca
- realcable
- reflexion
- roadstar
- roku
- saba
- samsung
- sanyo
- seg
- seg_micromax
- seg_vivax
- selectron
- sharp
- shengchuang
- skyworth
- smarttech
- soniq
- sony
- stiebel
- sunstech
- supersonic
- sven
- teac
- technicolor
- technika
- technisat
- techwood
- tel
- telefunken
- telesystem
- terris
- thomson
- tivo
- tornado
- toucan
- toyomi
- trimax
- trium
- tvstar
- unika
- upstar
- vaxa
- vestel
- videocon
- viewsonic
- vitek
- vivax
- vox
- wahl
- walker
- wallis
- watson
- welson
- wemax
- westwood
- winia
- xiaomi
- xtreme
- yamaha
- zeevee
- zephir
- zgemma
- appletv
- crkey
- aftmm
- aftss
- aftka
- aftb
- aftt
- roku
- smarttv
- tv
- smart-tv
- tizen
- webostv
- webos
- bravia
- dtv
How to use it:
1. Download and load the IsSmartTv.js script.
<script src="IsSmartTv.min.js"></script>
2. A simple function call to isSmartTV() reveals whether the browser is running on a SmartTV. You can then use this info to tweak your UI/UX accordingly.
if(is.SmartTV()){
console.log('Running On SmartTV Device!');
} else {
console.log('Not a SmartTV device!');
}






