maneesh29s / vscode-tizentv-wasm

Extension based on VSCode editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


logo
VS Code - Tizen TV WASM

Generate/Edit/Package/Run/Debug your applications with Tizen Targets

Source Release Wiki

'Tizen TV WASM' is a VS Code extension that provides a lightweight IDE for Tizen Webassembly application developers, helps to generate, update and package an application, also run and debug an application on Tizen targets.

Demo

Supported features

  • Tizen TV WASM: Create Web Project

    Create a Tizen web application from templates or empty projects.

  • Tizen TV WASM: Add Wasm Module

    Add one or more Wasm Module to a Tizen web application.
    C++ HelloWorld / C HelloTriangle / C++ Empty / C Empty samples are included as reference modules.

  • Tizen TV WASM: Build Wasm Module

    Build all wasm modules.

  • Tizen TV WASM: Build Signed Package

    Build the Tizen application into a Tizen package, the package will be located in workspace's root directory.
    Make sure to create and activate a Tizen Developer Certificate using Certificate Manager before proceding to this step.

  • Tizen TV WASM: Debug Application

    Use google-chrome to debug with web inspector, please configure the chrome executable's path in user setting.

  • Tizen TV WASM: Launch Application

    Run On TV/Run On TV Simulator/Run On TV Emulator.
    Extension will prompt for configuring respective target types on first attempt.
    Make sure to set Developer Mode to On on TV.

  • Tizen TV WASM: Run Certificate Manager

    Create Profile (Tizen) / Remove Profile / Set Active Profile
    Manages certificate for signing Tizen TV Web application package.

  • Tizen TV WASM: Wits Start (Install and Live reload)

  • Tizen TV WASM: Wits Watch (Live reload)

  • Tizen TV WASM: Wits Stop

    More information on using WITS with Tizen TV models released after 2017 is found here

Getting Started

The extension supports most of the basic features required to develop a Tizen TV app. It supports to create application using predefined templates, package the application, sign the application using certificate profile, launch or debug application on TV Simulator, Emulator and Tizen TV.

Setup Environment

  1. Install the latest Visual Studio Code.
  2. Install the Tizen TV WASM extension from the market place. Tizen TV WASM extension can be installed by searching in the Extensions view ( Ctrl+Shift+X ).
  3. Download and extract the Tizen Emscripten SDK suitable for your OS.
  4. Setup the Tizen Emscripten and use it with Visual Studio Code.

    These steps guide using emsdk without changing development host environment variables permanently.

    • Windows
      • Launch the Windows Command shell.
      • Go to the emsdk directory.
      • Run the below commands.
       emsdk activate latest-fastcomp
       code
    • Mac & Linux
      • Launch the Terminal.
      • Go to the emsdk directory.
      • Run the below commands.
       ./emsdk activate latest-fastcomp
       source ./emsdk_env.sh
       code
  5. Press F1 to open the Command Palette and input Tizen TV WASM to find out all the supported commands.

feature list

  1. Press F5 to find out supported debuggers.

Developing a WASM Application

The following section demonstrates the steps essential for developing a Tizen TV WASM application using Tizen TV WASM extension. For simplicity, application is created using existing OpenGL based sample application.

Use CTRL+SHIFT+P to activate the Command Palette.

  1. Create and activate a certificate profile for signing the Tizen TV Web application package.
    Even though this step could be followed later, it is better to have certificate profile created and activated before proceding further.

    • Run Certificate manager

      Certificate Manager

    • Create Profile (Tizen)

      Certificate Profile

    • Provide name for Certificate profile
      Example : Development

      Certificate Profile Name

    • Provide filename to store the Certificate Profile
      Example : TVDevelopmentCertificate

      Certificate Filename

    • Provide author name
      Example : My Name

      Certificate Author Name

    • Enter and confirm password for the certificate

      Certificate Password

    • Set as deafult

      Certificate Default

    • Run Certificate Manager again and set the active profile

      Certificate Activate profile

  2. Create an empty web project

    • Run Create Web Project

      1

    • Select Empty

      1

    • Choose the working directory. By default, it chooses current directory

      1

    • Provide name
      Example : HelloWASM

      1

  3. Add a WASM module choosing from existing C sample.

    • Run Add Wasm Module

      1

    • Choose language
      Example : C language for this demo

      1

    • Provide name for Wasm module
      Example : WasmModule

      1

    • Select the module mode
      Example : Template

    1

    - Choose hello Triangle

    1

  4. Build the WASM module.

    1

  5. Build the signed package.
    As we have already created and activated certificate profile, this should be smooth.

    1

Running on the TV

  1. Make sure TV and the development PC are in the same LAN.
  2. Set Developer Mode to On on TV.
  3. Run Launch applicaion

    1

  4. Choose Run On TV

    1

  5. Set TV IP

    1

  6. If everything went well, you should observe red triangle on the TV as below.

    1

Command Configuration

Additional TizenTV SDK configurations could be accessed by following below steps:
File > Preferences > Settings > User > TizenTV SDK Configuration

F.A.Q

Please log your suggestions, & issues

About

Extension based on VSCode editor

License:Apache License 2.0


Languages

Language:JavaScript 56.9%Language:CSS 36.8%Language:HTML 3.2%Language:C 3.1%Language:C++ 0.1%