TV Emulator

The TV emulator is a tool that provides an environment similar to a real device, for testing purposes. If you do not have the real device, you can test on a virtual device with similar features.

The TV emulator is a virtual machine that closely resembles a real TV software stack. It reduces the inconvenience of testing the application on a real device, by providing an environment similar to a real device. The emulator provides the actual hardware similar to real device controls, and you can check the application features, such as data processing and user scenarios. The emulator is based on the open source QEMU project.

Creating Emulator Instances

To create an emulator instance:

  1. Open the Tizen VS Code Extension activity bar.

  2. Under Actions, Click "Create Emulator".
    Figure 1. Create emulator instance

  3. Select the "TV" device image.
    Figure 2. Create emulator instance

  4. Select a template for a TV.
    Figure 3. Select device template

  5. Check the configuration settings, and click "Finish".

    • In the "General" tab, make sure that the amount of RAM is 1024 MB or greater. The emulator can be unstable with less than 1024 MB of RAM.
      Figure 4. Emulator Configuration

    • In the "HW Support" tab, make sure that "CPU VT" and "GPU" are switched on. If either value is "OFF", the emulator instance cannot be launched.
      Figure 5. Hardware acceleration

  6. Click "Create Emulator".
    Figure 6. Finish emulator instance creation

Launching Applications in the Emulator

To launch an application in an emulator instance:

  1. Launch the emulator instance.
    Select the instance from the Emulator Manager list (located under Tizen tab alongside the Terminal), and click "Start".
    Figure 7. Launch emulator instance
    Figure 8. TV emulator instance

  2. Launch the application in normal or debug mode:

    • To launch the application in normal mode, right-click on the application in the "Explorer" view in VS Code, and select "Tizen: Run Project".
      Figure 9. Launch application in normal mode
      The application is packaged, transferred, installed, and launched on the emulator automatically. The launch progress is shown in the VS Code, lower right.

      Figure 10. Application launch progress
    • To launch the application in debug mode, right-click on the application in the "Explorer" view in the VS Code, and select "Tizen: Debug Project".
      Figure 11. Launch application in debug mode
      The application is launched on the emulator, along with the Web Inspector.
      Figure 12. Web Inspector

Emulator Features

The TV emulator has the following features:

  • Virtual remote control
    Using the virtual remote control, you can control the application in the emulator just like on an actual device.

  • Emulator Control Panel
    You can control the state of the emulator dynamically. For more information, see Emulator Control Panel.

  • Context menu options
    You can right-click the emulator instance to access additional features, such as adjusting the scale of the emulator screen. In the "Advanced" menu, you can change the type of remote control, and take screen shots.
    Figure 13. Advanced context menu

  • Captioning
    You can set captioning options. On the emulator, go to "Settings > General > Accessibility > Caption Settings".



    Figure 14. Captioning options