Streamit TV - Documentation

How to setup Tizen Flutter on Samsung TV ?

Tizen Flutter Setup

Official Documentation

System Requirements

Linux & macOS

Windows

  • Operating System: Windows 10 or later (x64)
  • Required Tools:

Installing `flutter-tizen`

1. Clone the repository to your local system:

   git clone https://github.com/flutter-tizen/flutter-tizen.git

2. Add `flutter-tizen\bin` to your system PATH:

  • Search for “env” in the Windows Start menu and select Edit environment variables for your account.
  • Under User Variables, locate Path:
    • If it exists, click Edit… and add the full path to `flutter-tizen\bin`.
    • If it doesn’t exist, create a new variable named Path and set its value to the full path of `flutter-tizen\bin`.
  • Restart your command prompt for changes to take effect.

3. Verify the installation by running:

   where.exe flutter-tizen

Adding SDB to System PATH

To enable `sdb` access from any command prompt, follow these steps:

1. Press Win + R, type `sysdm.cpl`, and hit Enter.

2. Go to the Advanced tab and click Environment Variables.

3. Locate and edit the Path variable under System Variables.

4. Click New and add the directory containing `sdb.exe` (e.g., `C:\Tizen\tools\`).

5. Click OK to save changes.

6. Verify the installation by running:

 sdb

7. If the command doesn’t work, restart your computer.

Installing Required Packages

After installing Tizen Studio, open it and install the necessary packages:

1. Open the Package Manage by pressing Alt + Shift + P or navigating to Tools > Package Manager.

2. Download the following:

Main SDK

  • Tizen 9.0
  • Emulator
  • Native App Development (IDE)
  • eb App Development (IDE)
  • Advanced Options:
    • Native App Development (CLI)
    • TAU (CLI & IDE)
    • Web App Development (CLI)

Extension SDK

  • TV Extension-9.0
    • Web App Development
    • Emulator
  • IoT-Headed-6.0 (Advanced: Native App Development)
  • Samsung Certificate Extension
  • TV Extension Tools

Once all packages are installed, proceed to create certificates.

Creating a Certificate using Certificate Manager

1. Open Tizen Studio.

2. Open Certificate Manager by pressing Alt + Shift + C or navigating to Tools > Certificate Manager.

3. Click Create New Certificate.

4. Select Samsung as the provider and choose TV.

5. Create a New Certificate Profile.

6. Generate a New Author Certificate (Ensure the password matches the Distributor Certificate password).

7. Sign in to your Samsung Account when prompted.

8. Choose a backup location for safety.

9. Generate a New Distributor Certificate (Password must match the Author Certificate password).

10. Save your DUID (Device Unique Identifier) for future reference.

11. Click Finish to complete the certificate setup.

Creating an Emulator

1. Open Emulator Manager from the toolbar.

2. Click Create New Emulator.

3. Select TV and choose a suitable configuration.

4. Complete the creation process and launch the emulator.

5. Keep the emulator running in the background.

Granting Permission to Install Apps on Emulator

1. Open Device Manager by pressing Alt + Shift + V or navigating to Tools > Device Manager.

2. Right-click on the emulator and select Permit to install applications.

3. If an error occurs, keep the dialog box open, return to Certificate Manager, and ensure the certificate is correctly set up.

4. Click Retry after fixing the certificate, and you should see a success message.

Running Streamit Laravel Flutter TV App on Samsung TV

1. Open the project in VS Code.

2. Install dependencies by running:

flutter-tizen pub get

3. Deploy the app on Tizen OS:

 flutter-tizen run

4. For verbose debugging, use:

  flutter-tizen run -v

5. To analyze performance, check Flutter DevTools and monitor logs.

Additional Troubleshooting

If you encounter installation errors, refer to the TPK Installation Troubleshooting Guide.

For more details, consult the Official Documentation.