Jovica Kesić

Telegroup

Bringing Social Networks to living room using JS APIs

In the era of social networks and multimedia, TV that is sitting in our living room is becoming more and more like entertainment center, not just a device that we use to watch news, some sports event or our favorite series. Nowadays, people want to sit back in their couch, relax, and be able to do things that can be done on computers and smartphones, just on a large screen. From watching YouTube videos, sharing and posting on Facebook, or following latest trends on twitter, creators of Smart TV applications are struggling to make this possible and accessible by using only few remote controller buttons. Different solutions that enable user to interact with most popular internet services today, from Android and Apple TV, to standard Smart TVs are not available to everyone. Our wish was to bring this technology to every home that has domestic IPTV service. So, we rolled up our sleeves, took a leap into JavaScript world of different API’s, optimizations for TV box embedded operating systems, limitations of hardware, and interface specifics, and delivered a product that can match today’s most modern solutions in TV applications. This is our success story, one that tells how we took 80$ TV box, and put Facebook, twitter and YouTube inside it.

Full abstract

This talk will cover all aspects of delivering social networks experiences to lightweight TV box sets, but it will be concentrated around usage of JavaScript API that Facebook, twitter and Google provide for developing third party applications. In introduction we will be talking about apps development for TV boxes in general: specifics of TV interface, limitations of hardware, summary of TV box operating systems and web browsers and technologies that can be used. In implementation we will do short summary of all APIs needed for development, concentrating on explanation of key parts of code like login and authorization, data fetching, presentation of content, and posting users actions and feedback. We will also give parallel comparison of Google, Facebook and twitter API’s, and a small live coding demo of most interesting functionalities like sharing information about currently watched TV channel on Facebook and twitter, or playback of YouTube videos.

In challenges and limitations, we will talk of things that are hard to be done, or cannot be done, such as long process of Facebook authorization, workarounds that enable simple and user friendly login to twitter, or videos that are allowed to be played only on YouTube web site. Also, we will say something more about functionalities that these companies do not enable to third party apps such as viewing your friends profile on Facebook, or adding previously watched video to YouTube history. At the end, in experience, we will give you a live demo of how it works, using real Set Top Box device. We will turn it on, and see some of its great features like:

* Device login – enables us to avoid entering username and password using remote controller

* YouTube auto play – user can search for its favorite video once, and enjoy similar videos playing one by one, for hours

* Twitter and Facebook one-button share – when you watch your favorite TV show, and want your friends to know about it, you just need to enter Facebook or twitter app, and press a button to share it

* Adaptive video quality – depending of quality of your internet connection, YouTube automatically chooses best possible video quality up to HD, without you ever needing to set it manually