Building Second Screen Apps for Google TV using Anymote

IPTV Restream that means you use my stream with your server and your customer use from your server. The total user can use your IPTV service depends on...

 

Hi, I'm Megha Joshi.

.

and welcome to this quick screencast about making 2nd screen programs for Google Television set.

We're going to go over Exactly what are next screen apps, how how they do the job with Google TV and how to carry out them.

So what are second screen apps? 2nd display screen programs include interactivity among smartphones tablets or other products and Google Television set.

A 2nd display screen application operates over a distant device just like a smartphone or perhaps a tablet.

It may be a controller to get a Google TV application or it could add much more features into a Google TV software.

Most customers who own a laptop computer, pill or smartphone use their system while watching Television.

So You will find a enormous chance in the marketplace for next monitor apps.

I gives you a number of examples of some 2nd display applications for Google Tv set.

The YouTube distant application permits you to look through YouTube films on your Television using your mobile phone or pill.

Additionally, it presents additional details about the video clip you're looking at.

The Google Tv set distant applications is sort of a whole-fledged controller for the Television set with your phone.

The resource code of this software is open sourced to help you tweak it so as to add your own private customfeatures.

As an example, the developer of Able Distant took the open resource Google TV distant application and additional a handful of a lot more interestingfeatures like favourite channels.

The Peel Good Remote app – its a Television and movies discovery app – it allows your search TV reveals get much more details about the information your are viewing in addition to share it with your friends on social media.

MOVL they may have to a few purposes including the Poker Fun sport.

you can Engage in poker with your friends in your lounge.

It presents your individual expertise on the handheld product and on Television you've got the shared working experience and that is the poker desk.

So How can a distant app communicate with Google Tv set? One among the options would be to make use of the Anymote protocol.

Conversation in between the distant product and Google Television is proven utilizing a three move system.

Step one as to find out Google TVs around the nearby community.

How Is that this completed? Google Television sends mDNS broadcasts around the regional network asserting information and facts including its IP address as well as the port quantity of the Anymote company.

So.

.

to discover Google Television products on the nearby community the distant application follows these ways: Step 1 would be to probe the neighborhood network, then parse the responses it gets looking for the string underscore anymote underscore tcp.

Extract the system name, IP address and port range from your mDNS response.

Display the list of all readily available products to the person and Allow the consumer decide on a tool that he desires to connect with.

When the consumer selects a device, the next phase is usually to authenticate to that Google Tv set unit.

Authentication is finished using the Pairing support and Pairing protocol.

The Pairing service utilizes a obstacle-response authentication ie.

it shows a solution code, the user enters this code within your application, your app sends this code again to Google Television, Pairing assistance verifies this code and if almost everything seems to be Alright it sends again protection certificates in your app.

Now your app can use these certificates https://iptvrestream.net to talk to Anymote assistance operating on Google TV.

The subsequent phase is usually to mail situations out of your application to Google Tv set utilizing the Anymote protocol.

The Anymote protocol can ship numerous forms of enter functions such as the essential functions, mouse events, and many others.

It can also be used to fling Intents to Google Tv set.

Such as you could mail in Intent tolaunch a online video inside the YouTube application or to launch your software or to check out a webpage.

Now lets experience a brief tutorial on how to employ next display screen apps.

I is going to be using the Anymote library because it causes it to be easier to apply second screen applications.

To down load the library, pay a visit to the Google Tv set builders web page, click 'Samples' then 'Look through code' and over the googletv-android-samples internet site click on 'Checkout' and follow the instructions over the site.

Now I have a BlackJack application for Google TV.

It's an easy one-player Variation.

I utilize the vital H to the keyboard to indicate Strike and S for Stand.

I want a really very simple BlackJack distant application on my cell phone to ship Hit or Stand to my Google TV BlackJack app.

Let us start.

.

I've downloaded the Android SDK.

Another stage should be to download the Anymote library.

Then I'll import it into Eclipse.

Now I will develop a new Android job for my BlackJack remote application.

Now I'll include the reference on the Anymote library.

Copy each of the declarations within the library to the AndroidManifest for my application.

Now, I'll put into practice the ClientListener interface from your library in the leading Exercise of my application.

Now allows produce UI to the application.

The UI contains three buttons: Hit, Stand and Start a different Match.

Allows declare all the UI features.

We are going to bind to the AnymoteClientService.

The AnymoteClientService handles conversation with Google Tv set.

During the onServiceConnected callback We're going to pass an implementation of ClientListener blankets Irrespective of how typically you want and repair into the attachClientListener method of the AnymoteClientService.

I will insert an Intent to start the BlackJack application while in the onConnected callback.

so the BlackJack application will probably be introduced on Google Television once the connection is established.

Future We are going to set up the onClickListeners to the Strike, Stand and New Sport buttons.

The onClickListeners will likely be set up to mail keyEvents throughout the AnymoteSender.

To the Hit button We'll send out keyEvent H, to the Stand We're going to deliver keyEvent S and so forth.

.

Let's see A fast demo on the application.

.

My community below blocks mDNS broadcasts so I will enter the IP address of Google Tv set manually.

.

The pairing code is proven on Google Tv set.

I will enter this on my cell phone and when the link is founded I am able to use my cell phone like a controller for playing BlackJack on Google TV.