Home
Overview
solidAPI documentation. Further informations can be found on the Platform page.
Context
The solidAPI is a JavaScript API wich allows to communicate with the STB hardware. It exposes several functions and is the interface for a JavaScript/HTML5 developer.
Usage
To use the solidAPI, the JavaScript file (solidAPI.js) has to be included, which is located on the STB under (/usr/local/www/ekt_components/solidAPI/solidAPI.js). Aterwards the API functions can be accessed via the global Platform object. To get started quickly, the below example shows a simple video playback with the usage of the solidAPI:
<html>
<head>
<script src="solidAPI.js"></script>
</head>
<body></body>
<script>
var MRL = "http://techslides.com/demos/sample-videos/small.mp4"
Platform.Playback.createStream( MRL )
.then( function( stream ) {
return Platform.Playback.play( stream )
} )
.catch( function( error ) {
console.error( error )
} )
</script>
</html>
The above code can be pasted into an .html page and can be played on the STB right away.
Remote WebInspector The Chrome WebInspector is avaialbe on port 9222 and can be accessed via the Chrome desktop browser with http://[ip.of.the.box]:9222.