It's a little Challenging but you can do it
Follow these instructions:
Prerequisites
- A Samsung Smart TV supporting Tizen 4.0 and above
- Tizen Studio 3.x - download link
- Oracle JDK 8
Setup:
- Download and install Tizen Studio - follow instructions
- Go to the tv extension download section ARCHIVE
- Download latest 4.x TV Extension for Tizen SDK (latest version so
far: 4.1.2)
- Launch Package Manager and click “Configuration” gear icon. Expand
“Extension SDK” section at the bottom. Click on “+” icon and add downloaded zip-archive as Repository.
- Select the TV Extensions-4.0 extension found in the downloaded
repository and click on "install".
- If you cannot see the added packages in the Main SDK / Extention SDK
tab - close and re-open the package manager.
- Make sure to that the basic tooling is properly installed:
- Main SDK -> Tizen SDK Tools
- Main SDK -> Tizen SDK Tools > Native Toolchains > (everything)
- Main SDK -> 4.0 TV
- Extension SDK -> Extras -> TV Extensions-4.0
- Extension SDK -> Extras -> Samsung Certificate Extension
- Extension SDK -> Extras -> TV Extensions Tools
Create Project
- Open TizenStudio > create new project > Template > Custom > Select
TV-Samsung v4.0
- Web Application > Basic project > "your app name" > Finish
- Modify the index.html / css folder /config.xml at will
- Right-click on project name, and select Run As > Tizen Web Simulator
Application (Samsung TV) to get a very rough-quick-and-dirty look on
the app.
config.xml
<?xml version="1.0" encoding="UTF-8"?>
<content src="index.html"/>
<feature name="http://tizen.org/feature/screen.size.normal.1080.1920"/>
<icon src="icon.png"/>
<name>Testing</name>
<tizen:profile name="tv-samsung"/>
<tizen:privilege name="http://developer.samsung.com/privilege/network.public"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
<tizen:privilege name="http://tizen.org/privilege/tv.inputdevice"/>
<tizen:privilege name="http://tizen.org/privilege/tv.display"/>
<tizen:privilege name="http://tizen.org/privilege/fullscreen"/>
<tizen:privilege name="http://tizen.org/privilege/internet"/>
<tizen:privilege name="http://tizen.org/privilege/volume.set"/>
<tizen:privilege name="http://developer.samsung.com/privilege/drmplay"/>
<tizen:privilege name="http://developer.samsung.com/privilege/productinfo"/>
<tizen:setting pointing-device-support='disable' />
<tizen:setting screen-orientation="landscape" context-menu="disable" background-support="enable" encryption="disable" install-location="auto" hwkey-event="enable"/>
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<script>
window.open("http://0.0.0.0:3000") <!-- Add your IP address ->
</script>
</body>
</html>
Pair with REAL DEVICE
- Find the IP of the Samsung TV device via settings > something
- Find the IP address of your computer > settings > network > network
status > IP settings
- Shortcut in Mac - click on alt + WIFI icon, and copy-paste the IP
Address
- Tizen Studio > Device Manager > click on remote device manager >
type a name and the IP of your device > set connection to "on"
- Add your computer IP to the Samsung TV: Go to Apps on the tv
- Click on the number button (123) on the remote > enter the numbers
1,2,3,4,5
- A screen will pop up where you can enter your computer's IP address
- TizenStudio > Tools (on top bar menu) > device manager -> connection
on Upload the certificate to the device
- Right-click on the device in the Device Manager select "permit to install application"
- TizenStudio > devices & emulators names dropdown > select the added
device
- TizenStudio > right-click on project name > Run As > "Tizen Web
Application"
- ❗️IMPORTANT ❗️If you are doing this the first time it will ask you
to create a certificate > click "ok" to create a certificate and
follow instructions