tizen-enplug-player
v0.24.8
Published
A Samsung Tizen TV wrapper application for the Enplug digital signage player. This project provides Tizen-specific service implementations that integrate with the `@enplug/core-player` npm package.
Readme
Tizen Enplug Player
A Samsung Tizen TV wrapper application for the Enplug digital signage player. This project provides Tizen-specific service implementations that integrate with the @enplug/core-player npm package.
Prerequisites
- Node.js 20
- Tizen Studio with CLI tools
- Samsung TV/Signage device connected to network
Quick Start
# Install dependencies
npm install
# Connect to device (default IP: 192.168.50.200)
npm run connect-device
# Build, deploy and debug
npm run debug-devDevelopment Commands
Essential Commands
# Development workflow (most common)
npm run debug-dev # Clean + build + deploy + debug with port forwarding
# Production deployment
npm run debug-prod # Clean + build production + deploy + debug
# Build only
npm run build-dev # Development build
npm run build # Production build
# Clean build artifacts
npm run clean # Always run this first when having build issuesDevice Connection (CLI - No Device Manager needed)
# Connect to default device (192.168.50.200)
npm run connect-device
# Connect to specific IP
npm run connect-device --ip=192.168.1.100
# List connected devices
npm run list-devices
# Disconnect all devices
npm run disconnect-device
# Manual connection
sdb connect 192.168.50.200:26101
sdb devicesDebug Commands
# Debug with automatic port forwarding to localhost:9222
npm run debug-with-port
# Basic debug (no port forwarding)
npm run debug
# Run in Tizen simulator
npm run simulatorDeployment Commands
# Deploy production without debug (creates release/x-x-x/ with .wgt and sssp_config.xml)
npm run deploy
# Deploy development without debug (creates release-dev/x-x-x/ with .wgt and sssp_config.xml)
npm run deploy-dev
# Individual steps
npm run build-web # Build Tizen web package
npm run package # Create .wgt file
npm run tzinstall # Install on deviceRelease Signing and Distribution
⚠️ Important: The .wgt files generated in release/ and release-dev/ directories are signed with development certificates and are only valid for emulator testing.
For production deployment to Samsung TVs, follow these steps:
Generate release files: Run
npm run deployornpm run deploy-devRe-sign for production:
- Go to Samsung B2B Package Tool
- Upload the generated
.wgtfile from your release directory - Download the production-signed package
Replace in release directory:
- Replace the original
.wgtfile inrelease/x-x-x/orrelease-dev/x-x-x/with the production-signed version - Keep the same filename and directory structure
- Replace the original
Version and distribute:
- Commit the signed release to GitHub
- Tag the release with the version number
- Upload to distribution platforms
Utility Commands
# Watch mode (rebuild on changes)
npm run build-w
# Full development build and simulator
npm run startRecommended Workflows
Active Development
# 1. Connect device
npm run connect-device
# 2. Build, deploy and debug
npm run debug-dev
# 3. After code changes
npm run clean && npm run debug-devProduction Testing
# Build and test production version
npm run debug-prod
# Deploy production without debug
npm run deployChrome DevTools Access
After running debug commands:
- Chrome DevTools:
chrome://inspect - Direct access:
localhost:9222 - Device access:
http://192.168.50.200:<port>(port shown in console)
Troubleshooting
Build Issues
# Clean and rebuild
npm run clean
npm run debug-dev
# Check Tizen tools
tizen version
sdb devicesConnection Issues
# Check device connection
sdb devices
sdb get-state
# Reconnect device
npm run disconnect-device
npm run connect-device --ip=<DEVICE_IP>Debug Issues
# Check port forwarding
sdb forward --list
# Clean and restart debug
sdb forward --remove-all
npm run debug-with-portInstallation
Development Tools Setup
Install VS Code
- https://code.visualstudio.com/download
Install Tizen Studio
- https://docs.tizen.org/application/tizen-studio/setup/install-sdk
Install Tizen Web CLI
- https://webostv.developer.lge.com/develop/tools/webos-studio-installation
Create Certificates
- https://docs.tizen.org/application/dotnet/get-started/certificates/installing-the-extension
- https://docs.tizen.org/application/dotnet/get-started/certificates/creating-certificates
Install Dependencies
npm install
Project Structure
src/- Tizen-specific service implementationscore-player-web/- Core player (from npm link).buildResult/- Build output directoryscripts/- Custom build and debug scriptsrelease/- Production releases (ignored by git)release-dev/- Development releases (ignored by git)
Target Device
- Default device:
SBB-SS08NT2 - Default IP:
192.168.50.200 - Target platform: Samsung Tizen TV/Signage
URLs
- Production: https://downloads.spectrio.com/tizen
Configuration
The project is configured for 2-space indentation with:
- Prettier
- ESLint
- EditorConfig
- VS Code settings
