Requirements
- Bright SDK for TizenOS requires Tizen 6.5 or newer
- Latest Bright SDK version for Tizen (supports Tizen 2.4 and above)
- Latest Tizen Studio installed
Create App ID on Dashboard
If you haven’t done this yet, log in to your dashboard and create your app ID first.Format: It generally consists of a 10-character alphanumeric package ID followed by a project name (e.g.,
brightdata.actionGames).Extract SDK Framework
Download the latest Bright SDK from the Bright SDK Dashboard, unzip it.
- SDK Structure:
- SDK Overview:
- sample_app - Demonstrates possible integration options. Represents the general architecture of Tizen TV applications and can also be used for Tizen Web Applications.
- SDK Integration Components:
- service directory - The main engine containing all logic required to run the SDK. Must be copied next to your other services.
- brd_api.js - Frontend interface implementing the consent screen. Must be integrated with your application’s frontend.
Integrate Bright SDK in Your Code
-
Prepare the Files:
Copy Service Folder - copy
sdk/servicefolder to your project. Add Service to config.xml - Add the following to yourconfig.xml:
Package ID Naming Tip: After creating a Tizen app, we recommend changing the package ID to something more readable using your partner ID from the Control Panel.Examples:
blUqHYQcnKEE.actionGames → brightdata.actionGamessuper_games → SuperGames (remove illegal characters)The
tizen_ prefix will be added automatically by the SDK.-
Embed SDK Dialog in Your Code:
You can use
sample_appas a reference. Import brd_api.js- Copy
brd_api.jsinto your app directory. - Import it from the main file responsible for app initialization.
- After
brd_api.jsexecution, thebrd_apiglobal object will be available.
- Copy
-
Add SDK Initialization:
Call
brd_api.init()after page load to access all SDK methods. Example:
- On first call
brd_api.init()will show a consent screen. - The user must agree or disagree.
- Get the result by setting the
on_status_changecallback. - The consent screen handles TV remote control input.
- You must disable your remote input processing when the consent screen is shown.
on_status_changewill be called after the consent screen is closed.
Build Your App
Build your app using the Tizen CLI command.Important: Clean BuildRemove all dynamic files from the app and service folders before building.
Examples: logs,
service/data/*.*