Samsung Smart TV client application for Phlix Media Server, built with Tizen SDK.
- Overview
- Features
- Prerequisites
- Installation
- Configuration
- Building the App
- Testing
- Deployment to TV
- Supported Codecs
- License
Phlix Tizen is a native Samsung Smart TV application that connects to a Phlix Media Server, allowing users to browse their media library and play content directly on their television. The app is built using vanilla JavaScript with webpack for bundling and supports both direct play and transcoded streaming via HLS.
- Library Browsing: Browse movies, TV shows, music, and other media from Phlix
- Video Playback: Support for direct play and HLS streaming with quality selection
- Remote Control: Full Samsung remote control support with intuitive navigation
- User Authentication: Secure login with Phlix account credentials
- Progress Tracking: Automatic resume from last playback position
- Subtitle Support: Multiple subtitle tracks and languages
- Audio Tracks: Multiple audio track selection
- Search: Search across your media library
- Favorites: Mark items as favorites
- Watch History: Track watched items
- Hub Mode: Connect to a Phlix Hub to access and manage claimed servers with direct-LAN or relay-based routing
- SyncPlay: Watch together with friends and family with synchronized playback across multiple devices
- Node.js: Version 18 or higher
- npm: Version 8 or higher (included with Node.js)
- Git: For version control
- Tizen Studio: Version 4.0 or higher
- Samsung TV SDK: Tizen TV Extensions
- Samsung Smart TV: 2016 model or newer (Tizen OS)
- Phlix Media Server: Version 4.8 or higher
- Network: TV and server must be on the same network
git clone https://github.com/detain/phlix-tizen.git
cd phlix-tizennpm installCreate a tizen.env file in the project root (see Configuration section).
npm run serveThe app will be available at http://localhost:8080.
Create or edit tizen.env in the project root:
PHLIX_SERVER_URL=http://192.168.1.100:8096
PHLIX_DEVICE_NAME=Living Room TV
LOG_LEVEL=info| Variable | Description | Default |
|---|---|---|
PHLIX_SERVER_URL |
URL of your Phlix Media Server | http://localhost:8096 |
PHLIX_DEVICE_NAME |
Display name for this TV device | Samsung Tizen TV |
LOG_LEVEL |
Logging verbosity | info |
The app/config.xml file contains Tizen-specific settings:
- App ID and version
- Network access permissions
- TV capabilities declaration
- Focus navigation settings
# Build with development settings
npm run build:dev
# Watch for changes and rebuild
npm run watch# Create production bundle
npm run buildOutput is placed in the dist/ directory.
# Package the app for Tizen
node scripts/package.jsThis creates a .wgt widget file in the dist/ directory.
npm testnpm run test:unitnpm run test:integrationnpm run lintnpm run lint -- --fix-
Open Tizen Studio
tizen studio
-
Import Project
- File → Import → Tizen → Tizen Project
- Select the
phlix-tizendirectory - Choose "TV" as the platform
-
Connect Device
- Ensure your TV and computer are on the same network
- In Tizen Studio, go to Window → Preferences → Tizen TV → Devices
- Add your TV's IP address
-
Run on Device
- Right-click the project → Run As → Tizen TV Application
- Or press
Shift + F11to run
# Package the app
npm run build
node scripts/package.js
# Deploy via Tizen CLI
tizen install -n dist/org.phlix.phlixtv.wgt -t <TV_IP>
# Launch on TV
tizen launch -n org.phlix.phlixtv# Start debug server
node scripts/debug.js
# In Tizen Studio, attach debugger to running appThe app supports full Samsung remote control navigation:
| Button | Action |
|---|---|
| Arrow Up/Down/Left/Right | Navigate through items |
| OK | Select item / Enter |
| Back | Go back / Return |
| Play/Pause | Toggle playback |
| Stop | Stop playback and return to library |
| Fast Forward | Seek forward 10 seconds |
| Rewind | Seek backward 10 seconds |
| Red (Color) | Toggle subtitles |
| Green (Color) | Cycle audio tracks |
| Yellow (Color) | Cycle quality levels |
| Blue (Color) | Toggle favorite |
| Info | Show/hide playback info panel |
| Tools | Show options menu |
- H.264 (AVC)
- H.265 (HEVC)
- VP9
- AAC
- AC3 (Dolby Digital)
- EAC3 (Dolby Digital Plus)
- DTS
- FLAC
- MP3
- MP4
- MKV
- WebM
- TS (MPEG Transport Stream)
- HLS (HTTP Live Streaming)
- MPEG-DASH
- Progressive HTTP download
phlix-tizen/
├── app/
│ ├── index.html # Main HTML entry point
│ ├── config.xml # Tizen configuration
│ ├── js/
│ │ ├── main.js # Application bootstrap
│ │ ├── api/ # API client modules
│ │ │ ├── ApiClient.js
│ │ │ ├── AuthManager.js
│ │ │ ├── LibraryManager.js
│ │ │ ├── PlayerManager.js
│ │ │ └── SessionManager.js
│ │ ├── player/ # Video player components
│ │ │ ├── VideoPlayer.js
│ │ │ ├── HlsPlayer.js
│ │ │ ├── SubtitleRenderer.js
│ │ │ └── QualitySelector.js
│ │ ├── remote/ # Remote control handling
│ │ │ ├── RemoteManager.js
│ │ │ ├── PlayerRemoteHandler.js
│ │ │ └── KeyMapping.js
│ │ ├── ui/ # User interface views
│ │ │ ├── App.js
│ │ │ ├── Router.js
│ │ │ ├── HomeView.js
│ │ │ ├── LibraryView.js
│ │ │ ├── DetailView.js
│ │ │ └── PlayerView.js
│ │ ├── syncplay/ # SyncPlay synchronized playback
│ │ │ └── SyncPlayService.js
│ │ ├── config/ # Configuration
│ │ │ └── constants.js
│ │ └── utils/ # Utility functions
│ │ ├── Logger.js
│ │ ├── Storage.js
│ │ └── Helpers.js
│ └── css/ # Stylesheets
│ ├── style.css
│ ├── player.css
│ ├── components.css
│ └── themes/
│ └── dark.css
├── scripts/ # Build scripts
│ ├── build.js
│ ├── package.js
│ └── debug.js
├── tests/ # Test files
│ └── unit/
│ ├── api/
│ │ └── ApiClient.test.js
│ ├── remote/
│ │ └── KeyMapping.test.js
│ ├── syncplay/
│ │ └── SyncPlayService.test.js
│ └── utils/
│ └── Helpers.test.js
├── .github/
│ └── workflows/
│ ├── test.yml
│ └── lint.yml
├── babel.config.js # Babel configuration
├── webpack.config.js # Webpack configuration
├── package.json
└── README.md
- Ensure your TV supports Tizen OS (2016+ models)
- Check that the TV is connected to the same network as the server
- Verify the Phlix Media Server is running and accessible
- For buffering issues, check network bandwidth
- If direct play fails, the server may transcode (slower start)
- Check server logs for codec compatibility warnings
- Ensure no other device is controlling the TV
- Try restarting the TV
- Check that the remote's batteries are fresh
MIT License
Copyright (c) 2024 Phlix
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.