banner



how to install hotstar in lg webos tv

Using Developer Mode App

After you complete developing your app, you might need to test your app. The Developer Mode app provides a faster way to install, debug, and test webOS TV apps on the TV. The following introduces the concept behind the Developer Mode app that connects between the TV and the PC.

The Developer Mode app on the webOS TV connecting with a laptop

To use the Developer Mode app, the following should be ready in advance:

  • webOS TV connected with a network

  • PC connected with a network and installed with the webOS TV SDK

  • LG Developer site account
    The Developer Mode app requires you to sign in to the LG Developer site. If you do not have an account yet, see Preparing a Login Account.

This article provides:

  • Installing Developer mode app

  • Turning Developer mode on

  • Connecting TV and PC

  • Extending Developer mode time

  • Clearing cache data of apps

Installing Developer Mode App

To install the Developer Mode app, follow the steps below:

  1. First, turn on your webOS TV and check if your webOS TV is connected to a network.

  2. Sign in with your LG Developer site account.

  3. Go to the LG Content Store.

  4. Search for "Developer Mode."

  5. Select the Developer Mode app and click the Install button.

Turning Developer Mode On

After installing the Developer Mode app, you can enable Developer Mode on your TV.

  1. Run the Developer Mode app from the webOS TV Launcher.

  2. Enter your email-based ID and password of the LG Developer site. If you do not have the account, see Preparing Account.
    The sign in screenshot of the Developer Mode app

  3. Click the Dev Mode Status button to enable the Developer Mode. The TV will reboot.
    The screenshot of Developer Mode app

Developer Mode is disabled:

  • After the TV reboot ten times while the TV is not connected to a network.

  • After the TV reboot when the remaining session time has run out.

  • After the TV reboot when you sign in to another TV with the same account.

If you sign in to multiple TVs with one account, only the session of the latest TV that you sign in to is maintained.

After Developer Mode is disabled, the installed apps that you were using on Developer Mode are uninstalled, and you will be taken to the log-in screen of the Developer Mode app.

Connecting TV and PC

This section describes how to connect webOS TV and your PC. You can use either the CLI or IDE for the Developer Mode app.

Connecting with CLI

Follow the instructions below to add the target TV with the CLI:

  1. Run the webOS TV CLI.

  2. Execute the ares-setup-device command. Then, select add.

    ares-setup-device

    name deviceinfo connection profile
    -------- ------------------------ ---------- -------
    emulator developer@127.0.0.1:6622 ssh tv

    ** You can modify the device info in the above list, or add new device.
    ? Select: (Use arrow keys)
    > add
    modify
    remove

  3. Input the information about your TV as below example:

    You do not need to enter the password. When using the Developer Mode app, a password is not required.

    ** You can modify the device info in the above list, or add new device.
    ? Select: add
    ? Enter Device Name: tv2
    ? Enter Device IP address: 10.123.45.67
    ? Enter Device Port: 9922
    ? Enter ssh user: prisoner
    ? Enter description: new device
    ? Select authentification: password
    ? Enter password:
    ? Save ? Yes
    name deviceinfo connection profile
    -------- -------------------------- ---------- -------
    tv2 prisoner@10.123.45.67:9922 ssh tv
    emulator developer@127.0.0.1:6622 ssh tv

  4. After adding your TV as the target device, check the result with the command below:

    ares-setup-device --list

  5. Click the Key Server button in the Developer Mode app.
    The Key Server button on the Developer Mode app

  6. Get the key file from your webOS TV with the following command on your PC:

    ares-novacom --device tv2 --getkey

  7. A command prompt appears to enter Passphrase. Enter the exact characters (case sensitive) as displayed on your TV screen.
    You can see Passphrase, which consists of 6 characters, on the bottom left side of the Developer Mode app screen.

    input passphrase [default: webos]:

  8. Check the connection with your TV and PC with the following command:

    ares-device-info --device tv2

    If the connection is established successfully, the device information is displayed as below. The information might differ depending on your TV device.

    modelName : WEBOS6.0
    sdkVersion : 6.1.0
    firmwareVersion : 00.00.00
    boardType : K7LP_ATSC_KR
    otaId : HE_DTV_W21P_AFADATAA

  9. Now, you are ready to install and launch your app on your real TV. To find out how to install and launch your app on your TV, see Installing and launching your app using CLI.

Connecting with VS Code Extension

Follow the instructions below to add your TV as the target device using the VS Code Extension:

  1. Run VS Code with webOS TV VS Code Extension installed.

  2. Select webOS TV: Set Up Device from the Command Palette (Ctrl+Shift+P) and select Add Device.
    Adding a device from the Command Palette
    You can also click the Add Device icon on the webOS TV Devices in the Activity Bar.
    vscode-setup-device-icon.png

  3. Enter the information about your TV as below example:

    1. Enter your device name.

    2. Enter your device's IP address.

    3. Enter your device's port number for the connection. In most situations, press Enter to set it as the default value (22).

    4. Enter the device's username for connection. In most situations, press Enter to set it as the default value (root).

  4. Click the Key Server button in the Developer Mode app.
    The Key Server button on the Developer Mode app

  5. Select webOS TV: Set Up SSH Key from the Command Palette (Ctrl+Shift+P) on VS Code and select your device.
    Setting up the SSH Key from the Command Palette
    You can also right-click on the device and select Set Up SSH Key on the webOS TV Devices in the Activity Bar.
    Setting up the SSH key from the popup menu

  6. Enter the passphrase (case sensitive) as displayed on the Developer Mode app.
    Entering the SSH key

  7. Refresh the device list. You can see the changed username and port number.
    Refreshing the device list

Connecting with IDE

Follow the instructions below to add your TV as the target device using the IDE:

  1. Run the webOS TV IDE.

  2. Click New Connection (New Connection icon) from the Target Configuration screen.

  3. Enter the information about your TV as below example:

    • Set Device Type as LG Smart TV.

    • Change Device Name as you want

    • Input the IP address of your TV.

    The New Target Connection window of webOS TV IDE

  4. Click the Key Server button in the Developer Mode app.
    The Key Server Button of the Developer Mode app

  5. Right-click the created target device and select Generate Key.
    The Generate Key menu of webOS TV IDE

  6. The webOS key window appears to enter Passphrase. Enter the exact characters (case sensitive) as displayed on your TV screen.
    You can see Passphrase, which consists of 6 characters, on the bottom left side of the Developer Mode app screen.
    The Passphrase on the webOS key generator

  7. Connect your TV using the right-click menu. Then you can see the apps you installed on the TV under tv > Installed. If it is your first time using the Developer Mode app, no app is shown on the screen.
    Installed app icon on the Target Configuration tab in webOS TV IDE

  8. Now, you are ready to install and launch your app on your real TV. To find out how to install and launch your app on your TV, see Installing and launching your app using IDE.

Extending Developer Mode Time

Developer Mode enables for a limited time. When you turn on Developer Mode, you can check the remaining session time on the Remain Session field. To extend the remaining time, connect the TV to a network and click the EXTEND button. If the session time runs out, you cannot extend the session time. You can also extend the session time with the ares-extend-dev command of CLI.

The Extend button on the Developer Mode app

Clearing Cache Data of Apps

The Developer Mode app provides the Clear Cache Data feature for testing. Note that all apps' cache data is removed. To clear cache data of all apps, follow the instructions below:

  1. Click theON button on the Clear Cache Data field.
    The Clear Cache Data button on the Developer Mode app

  2. Reboot the TV.

how to install hotstar in lg webos tv

Source: https://webostv.developer.lge.com/develop/app-test/using-devmode-app/

Posted by: trainordebtled.blogspot.com

0 Response to "how to install hotstar in lg webos tv"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel