1 Followers
24 Following
b3znpyt655

b3znpyt655

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 there, I am Megha Joshi.

.

and welcome to this small screencast about constructing next monitor purposes for Google TV.

We'll include Exactly what are second screen apps, how how they do the https://iptvrestream.net job with Google Tv set and how to carry out them.

So Exactly what are next display applications? Second monitor apps involve interactivity between smartphones tablets or other units and Google Tv set.

A next display screen application operates with a remote gadget similar to a smartphone or maybe a tablet.

It could be a controller for a Google Tv set software or it could increase a lot more operation to a Google Television software.

Most people who possess a laptop, pill or smartphone use their gadget even though viewing TV.

So You will find there's huge prospect in the marketplace for second display screen applications.

I provides you with several examples of some second screen applications for Google Tv set.

The YouTube remote application enables you to look through YouTube films in your Television using your cell phone or tablet.

In addition it offers extra information about the video clip you might be seeing.

The Google Television distant apps is like a entire-fledged controller on your Television on the cellular phone.

The source code of this software is open sourced to help you tweak it to add your personal customfeatures.

For example, the developer of In a position Distant took the open supply Google Tv set remote application and additional several additional interestingfeatures like favorite channels.

The Peel Sensible Distant app – its a TV and movies discovery application – it allows your search Tv set displays get far more specifics of the content your are seeing in addition to share it with your friends on social media marketing.

MOVL they've got to some applications such as the Poker Entertaining video game.

you could Enjoy poker with your folks inside your front room.

It offers your personal practical experience in your handheld machine and on Television you've the shared expertise which happens to be the poker table.

So So how exactly does a distant application talk to Google Tv set? Considered one of the choices will be to use the Anymote protocol.

Interaction involving the distant machine and Google Television set is founded utilizing a three stage course of action.

The 1st step as to find Google TVs on the neighborhood network.

How Is that this completed? Google Tv set sends mDNS broadcasts around the local community saying data like its IP tackle as well as the port amount of the Anymote services.

So.

.

to discover Google Tv set devices on the area community the remote software follows these ways: Stage one is always to probe the neighborhood network, then parse the responses it gets seeking the string underscore anymote underscore tcp.

Extract the unit name, IP handle and port quantity through the mDNS reaction.

Show the list of all obtainable products on the user and let the consumer pick a tool that he desires to connect to.

Once the consumer selects a tool, the following phase is always to authenticate to that Google TV unit.

Authentication is finished using the Pairing company and Pairing protocol.

The Pairing company works by using a obstacle-reaction authentication ie.

it shows a top secret code, the consumer enters this code within your app, your application sends this code back to Google Television, Pairing service verifies this code and when every thing looks ok it sends back again safety certificates on your app.

Now your app can use these certificates to communicate with Anymote company operating on Google Television set.

The next action is usually to deliver events from a app to Google TV utilizing the Anymote protocol.

The Anymote protocol can mail lots of forms of input functions such as key situations, mouse gatherings, etcetera.

It may also be utilized to fling Intents to Google Tv set.

For instance you may mail in Intent tolaunch a online video while in the YouTube app or to start your software or to watch a webpage.

Now allows undergo a short tutorial regarding how to carry out next screen applications.

I will likely be using the Anymote library mainly because it makes it easier to apply 2nd display applications.

To down load the library, visit the Google TV developers web page, simply click 'Samples' then 'Browse code' and about the googletv-android-samples web site click 'Checkout' and Stick to the Directions around the site.

Now I have a BlackJack application for Google Television.

It's a simple single-participant version.

I use the vital H on the keyboard to point Hit and S for Stand.

I need a very very simple BlackJack remote app on my cellphone to mail Strike or Stand to my Google Tv set BlackJack application.

Let's get rolling.

.

I have downloaded the Android SDK.

The next step is always to down load the Anymote library.

Then I'll import it into Eclipse.

Now I will create a new Android undertaking for my BlackJack distant application.

Now I'll add the reference for the Anymote library.

Copy the many declarations with the library into the AndroidManifest for my app.

Now, I will put into action the ClientListener interface with the library in the key Activity of my app.

Now allows create UI for that app.

The UI includes 3 buttons: Strike, Stand and begin a brand new Video game.

Lets declare many of the UI things.

We will bind to the AnymoteClientService.

The AnymoteClientService handles interaction with Google Tv set.

From the onServiceConnected callback we will go an implementation of ClientListener blankets no matter how often you wish and service towards the attachClientListener technique of the AnymoteClientService.

I'll insert an Intent to launch the BlackJack app while in the onConnected callback.

Hence the BlackJack application are going to be released on Google Tv set when the link is established.

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

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

For your Strike button We're going to deliver keyEvent H, for your Stand We'll mail keyEvent S and so forth.

.

Allow us to see a quick demo in the app.

.

My network in this article blocks mDNS broadcasts so I'll enter the IP address of Google Television manually.

.

The pairing code is shown on Google Television set.

I will enter this on my mobile phone and after the relationship is recognized I am able to use my phone as a controller for playing BlackJack on Google TV.