ImportantDue to NaCl deprecation by the Chromium project, Tizen TV will continue its support for NaCl only until 2021-year products. Meanwhile, Tizen TV will start focusing on high-performance, cross-browser WebAssembly from 2020-year products.
This topic describes how to launch Native Client projects from the Tizen Studio, for testing purposes.
You can test your Native Client (NaCl) application by launching it in the Google Chrome™ Web browser, on the TV emulator, or on a Samsung TV.
Testing in Google Chrome™
If Google Chrome™ is installed on your computer, you can test NaCl projects in the browser. Build the project using the "Debug-pnacl" or "Release-pnacl" configuration, and make sure you generate a ".nexe" file for your computer's architecture. For more information about build configurations, see Building NaCl Projects.
NoteYou must provide the main HTML file that loads the project's ".nmf" manifest file. To ensure that the manifest file is accessible, implement the main HTML file in the project root directory.
Although the Samsung NaCl toolchains produce binaries compatible with the Google Chrome™ runtime, applications requiring Samsung-specific interfaces cannot be launched in Google Chrome™.
To launch the application in Google Chrome™:
To use the default launch configuration, in the "Project Explorer" view, right-click the project and select "Run As > Webpage in Chrome".
The application's main HTML page is automatically detected from the project structure.
To create and use a custom launch configuration:
In the Tizen Studio menu, select "Run > Run Configurations".
To create a Google Chrome™ launch configuration, in the side menu, double-click "Chrome".
Define the launch configuration:
Enter the configuration name, project name, and main HTML file path.
Check that the Chrome launch command is correct, or click "Browse" and select the Google Chrome™ executable file location.
Customize the launch parameters:
To add an argument, enter it in the "Chrome arguments" field, and click "Add".
To modify an existing argument, select it from the list, modify it in the "Chrome arguments" field, and click "Update".
To remove an argument, select it from the list, and click "Remove".
To launch the application, click "Run".
When you launch the application in Google Chrome™, a temporary HTTP server is created, serving files from the defined main HTML file location. The main HTML file is opened in a browser instance, using the defined launch arguments. A temporary user data directory is created for the browser.
When the Google Chrome™ instance is closed, the temporary user data directory is automatically deleted and the temporary HTTP server is killed.
Testing on the Emulator or TV
Before testing the application on the emulator or a Samsung TV:
If you do not have a certificate profile already, create one.
To test the application on the emulator, build the project using the "Debug-pnacl" or "Release-pnacl" configuration, and make sure you generate a ".nexe" file for the i686 architecture.
To test the application on a Samsung TV, build the project with the configuration you want, and make sure you generate a ".nexe" file for the ARMv7 architecture.
In the Tizen Studio toolbar, select the emulator instance or device from the drop-down menu.
In the "Project Explorer" view, right-click the project and select "Run As > Widget on a Tizen device".
To create and use a custom launch configuration:
In the Tizen Studio menu, select "Run As > Run Configurations > Tizen Device".
To create a Tizen device launch configuration, in the side menu, double-click "Tizen Device".
Define the configuration name, project name, and ".wgt" file path.
To select the emulator instance or device to launch the application on, click "Select" next to the "Target device" box, and select the one you want.
To install and launch the application on the emulator or TV, click "Run".
Manage Your Cookies
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.