my ego • Detailed introduction into Metrological Application Framework (MAF) (this is what we are going to be using to build TV apps!) • Showing you how to set it up yourself ☺ • Making a simple TV app and looking at some more complex examples • Questions Trifon Statkov Making a Smart TV application using JavaScript
I work @ • Web developer since 2003 • Owned a small IT company for a while • Currently making TV apps for various customers • Always passionate about making cool stuff with the latest technologies Trifon Statkov Making a Smart TV application using JavaScript
using JavaScript • !== • apps run on the STB ( ), NOT on the TV itself! • there is a WebKit-based browser on the STB • a MAF app is basically a JS component running in a web page running on that browser! (more on that later) • => easy to test at your own laptop’s browser
using JavaScript • The AppStore o Every Cable operator has their own app store o Different cable operator === Different app store === different apps o AppStore Demo
using JavaScript • Out-of-the-box WebSockets (Room API) • Localization • Access/Change current TV state • Facebook/Twitter login • FontAwesome integration • MomentJS integration • Over 50 components to build your apps upon (and you can always make your own)
using JavaScript • It’s basically just a page loaded into the STB browser • your app will run as a component on the page • This page is NEVER refreshed during normal circumstances • You closed your app? The page will not refresh. Then DevTools Profiling becomes your best friend.
using JavaScript • You can not import libraries like jQuery/Angular/ Backbone/etc. • It’s not really CSS that you write (we will see that later) • It’s mostly vanilla JS • It’s possible to have a memory leak MORE THAN EVER • Limited access to DOM (which is sometimes good)