Lightstreamer - Basic Stock-List Demo - Samsung Smart TV Client
This demo shows how to use the Lightstreamer JavaScript Client library and the Samsung Smart TV SDK to create a simple streaming-enabled application.
Details
This demo displays real-time last price data for 3 stocks, simulated Stock-List data is received from the Lightstreamer Server deployed @ http://push.lightstreamer.com.
The demo includes the following client-side functionalities:
- A Subscription containing 3 items, subscribed to in MERGE mode, feeding a StaticGrid.
Build
To build and run your own version of this demo, follow these steps:
- Download and install the Samsung SMART TV SDK (choose the platform of your interest), this example is based on version 4.5 of the SDK.
- Download and install the Oracle VM Virtual Box.
- Download and install the Smart TV SDK Emulator Image for Virtual Box and import it in Virtual Box.
- Get the
lightstreamer.min.js
file from npm or unpkg and copy it into theapp/javascript
folder of this project. - Download the require.js file and copy it into the
app/javascript
folder of this project.
Once ready, create in eclipse a new Samsung Smart TV JavaScript App Project and overwrite the resources of this project on those newly created.
Deploy
To run the demo, please right-click on the eclipse project and press Run As -> Run Current Project in Samsung Smart TV Emulator. The Emulator will be launched automatically and the demo will be deployed and started as soon as the emulator goes up.
You may run the demo against your local server instead of using our online server @ http://push.lightstreamer.com:80. The server to which the demo will connect to is configured in the app/javascript/Main.js
file.
In this case, the example requires that the QUOTE_ADAPTER has to be deployed in your local Lightstreamer server instance;
the LiteralBasedProvider is also needed, but it is already provided by Lightstreamer server.
See Also
Lightstreamer Adapters Needed by This Demo Client
- Lightstreamer - Stock-List Demo - Java Adapter
- Lightstreamer - Reusable Metadata Adapters- Java Adapter
Related Projects
- Lightstreamer - Stock-List Demos - HTML Clients
- Lightstreamer - Basic Stock-List Demo - iOS Client
- Lightstreamer - Basic Stock-List Demo - jQuery (jqGrid) Client
- Lightstreamer - Stock-List Demo - Dojo Toolkit Client
- Lightstreamer - Basic Stock-List Demo - Java SE (Swing) Client
- Lightstreamer - Basic Stock-List Demo - .NET Client
- Lightstreamer - Stock-List Demos - Flex Clients
- Lightstreamer - Basic Stock-List Demo - Silverlight Client
- Lightstreamer - Basic Stock-List Demo - Android Client
- Lightstreamer - Basic Stock-List Demo - Windows Phone Client
- Lightstreamer - Basic Stock-List and Round-Trip Demo - BlackBerry Client
Lightstreamer Compatibility Notes
- Compatible with Lightstreamer JavaScript Client library version 6.0 or newer (installation instructions for version 8.0 or newer).