Porting Smart TV Apps
You may have an existing app that's designed to run on a smart TV platform such as LG webOS or Samsung Tizen. These apps provide a great starting point because they are built using HTML5 and are designed to run on a TV with remote control interaction.
Remove platform-specific code
Web apps run in a standard Chrome browser on the Senza platform. If your app uses any platform-specific interfaces for interacting with the smart TV operating system, you'll need to make sure that it doesn't call those functions.
- If you are working on a copy of your app, you can comment out or remove those calls.
- If you are making a version of your app that runs on several platforms, you can check which platform your app is running on and call them conditionally.
Remote Control mapping
Your app will probably already handle most Remote Control buttons as expected. Senza maps the back button to the Escape
key, so make sure your app handles that event correctly.
Host your app on a web server
If your web app is distributed in a bundle that is installed on a smart TV, you'll need to serve your app from a web server. If you can navigate to your web app in a browser in your computer, you should be able to use that URL on the Senza platform. See Hosting Your App for more details.
Updated about 1 month ago