top

Launching NaCl-enabled Projects

This topic describes how to launch TV applications that include Native Client modules, for testing purposes.

Important

Due 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.

You can test your Native Client (NaCl) enabled application by launching it on the TV emulator, a Samsung TV, or the Tizen Web simulator.

Testing on the Emulator or TV

Before testing the application on the emulator or a Samsung TV:

  1. If you do not have a certificate profile already, create one.
  2. Build the project.
    Note

    To test the application on the emulator, check that the build configuration for each NaCl module is either the "Debug-pnacl" or "Release-pnacl" configuration, and make sure it is set to generate a ".nexe" file for the i686 architecture.

    To test the application on a Samsung TV, check that the build configuration for each NaCl module generates a ".nexe" file for the ARMv7 architecture.

  3. Launch an appropriate emulator instance, or connect the TV to the SDK.

To launch the application on the emulator or TV:

  1. In the Tizen Studio toolbar, select the emulator instance or device from the drop-down menu.

    Figure 1. Select emulator instance or device

    Figure 1. Select emulator instance or device

  2. In the "Project Explorer" view, right-click the project and select "Run As > Tizen Web Application".

    Figure 2. Run as Tizen Web application

    Figure 2. Run as Tizen Web application

The application launches on the selected emulator instance or TV and loads the included NaCl modules.

Testing on the Tizen Web Simulator

Before testing the applicaton on the simulator, familiarize yourself with its features and limitations.

To launch the application on the Tizen Web simulator, in the "Project Explorer" view, right-click the TV application project and select "Run As > Tizen Web Simulator Application (Samsung TV)".

Figure 3. Run as Tizen Web simulator application

Figure 3. Run as Tizen Web simulator application

The application launches on the simulator and loads the included NaCl modules.