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...

 

Hello, I'm Megha Joshi.

.

and welcome to this small screencast about building second screen applications for Google TV.

We are going to address What exactly https://iptvrestream.net are next display applications, how how they function with Google Television and how to apply them.

So Exactly what are next display screen apps? Next monitor applications contain interactivity between smartphones tablets or other products and Google Television set.

A 2nd screen software runs on the distant device similar to a smartphone or a pill.

It could be a controller for a Google Television software or it could insert extra features to some Google TV application.

Most consumers who possess a notebook, tablet or smartphone use their device while seeing TV.

So there is a substantial opportunity in the marketplace for 2nd screen apps.

I gives you some samples of some second display screen apps for Google Tv set.

The YouTube remote app enables you to look through YouTube movies with your Television utilizing your cellphone or pill.

It also offers far more specifics of the video clip you might be looking at.

The Google Television remote apps is sort of a full-fledged controller on your Television with your cellphone.

The resource code of the application is open up sourced so that you can tweak it to incorporate your own customfeatures.

One example is, the developer of In a position Remote took the open supply Google Television set remote application and added several far more interestingfeatures like most loved channels.

The Peel Good Distant app – its a Television and flicks discovery application – it allows your search TV reveals get more specifics of the content your are viewing in addition to share it with your buddies on social networking.

MOVL they may have to some programs such as the Poker Entertaining video game.

it is possible to Enjoy poker with your pals with your front room.

It gives your personal knowledge on your own handheld machine and on Television you might have the shared practical experience which can be the poker desk.

So So how exactly does a remote application talk to Google TV? Amongst the options is usually to utilize the Anymote protocol.

Communication concerning the distant system and Google Television is established using a three phase course of action.

The first step as to find Google TVs on the nearby network.

How is this finished? Google Television sends mDNS broadcasts within the area community saying information such as its IP tackle and the port quantity of the Anymote assistance.

So.

.

to find out Google Television equipment around the nearby network the remote software follows these measures: Phase 1 is usually to probe the community network, then parse the responses it receives looking for the string underscore anymote underscore tcp.

Extract the product name, IP tackle and port selection through the mDNS response.

Display the listing of all out there units for the consumer and Enable the consumer find a device that he would like to connect with.

After the user selects a tool, the subsequent stage will be to authenticate to that Google Television set unit.

Authentication is finished using the Pairing company and Pairing protocol.

The Pairing assistance utilizes a challenge-reaction authentication ie.

it shows a key code, the consumer enters this code with your app, your app sends this code back again to Google Television, Pairing services verifies this code and if almost everything looks ok it sends again security certificates to the app.

Now your application can use these certificates to communicate with Anymote service functioning on Google Television.

The next action should be to send events from the application to Google Tv set using the Anymote protocol.

The Anymote protocol can deliver many different types of enter situations such as the essential activities, mouse activities, etcetera.

It can even be accustomed to fling Intents to Google TV.

One example is you might send out in Intent tolaunch a movie during the YouTube application or to start your software or to view a webpage.

Now lets endure a brief tutorial on how to carry out 2nd display apps.

I might be using the Anymote library as it makes it simpler to carry out second screen apps.

To download the library, check out the Google Television builders site, click 'Samples' then 'Look through code' and on the googletv-android-samples web page click 'Checkout' and Stick to the Guidelines about the web page.

Now I've a BlackJack app for Google TV.

It is really a simple single-participant Model.

I utilize the key H around the keyboard to indicate Hit and S for Stand.

I need a extremely straightforward BlackJack distant application on my mobile phone to mail Hit or Stand to my Google Television BlackJack app.

Let's get started.

.

I have downloaded the Android SDK.

Another step should be to obtain the Anymote library.

Then I will import it into Eclipse.

Now I'll produce a new Android venture for my BlackJack distant app.

Now I will increase the reference into the Anymote library.

Duplicate all of the declarations with the library to the AndroidManifest for my app.

Now, I'll carry out the ClientListener interface with the library in the main Activity of my application.

Now allows generate UI for the application.

The UI contains 3 buttons: Strike, Stand and begin a completely new Activity.

Lets declare every one of the UI things.

We are going to bind to the AnymoteClientService.

The AnymoteClientService handles interaction with Google Television set.

In the onServiceConnected callback We're going to go an implementation of ClientListener blankets no matter how generally you wish and repair on the attachClientListener means of the AnymoteClientService.

I'll add an Intent to start the BlackJack app while in the onConnected callback.

Hence the BlackJack app will probably be released on Google Television when the link is proven.

Subsequent We'll setup the onClickListeners for the Hit, Stand and New Match buttons.

The onClickListeners might be set up to mail keyEvents with the AnymoteSender.

For that Hit button We are going to send keyEvent H, for your Stand We'll send out keyEvent S and the like.

.

Allow us to see a quick demo of your application.

.

My community in this article blocks mDNS broadcasts so I'll enter the IP deal with of Google Tv set manually.

.

The pairing code is proven on Google Television.

I'll enter this on my mobile phone and once the connection is proven I'm able to use my cellphone for a controller for taking part in BlackJack on Google Tv set.