-Поиск по дневнику

Поиск сообщений в g2rxrhf721

 -Подписка по e-mail

 

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 29.03.2020
Записей: 13
Комментариев: 0
Написано: 13


Building Second Screen Apps for Google TV using Anymote

Среда, 29 Апреля 2020 г. 06:47 + в цитатник

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

.

and welcome to this shorter screencast about constructing second display programs for Google Television set.

We will include What exactly are next screen apps, how how they get the job done with Google Tv set and the way to put into practice them.

So what are next display screen apps? Next display screen purposes contain interactivity amongst smartphones tablets or other gadgets and Google Television.

A next screen software runs with a remote system similar to a smartphone or perhaps a tablet.

It could be a controller for the Google Television application or it could add much more performance to some Google Tv set software.

Most end users who have a notebook, tablet or smartphone use their unit while watching Television.

So there is a enormous chance in the marketplace for second display screen apps.

I will give you a number of examples of some 2nd display apps for Google Television set.

The YouTube remote app lets you search YouTube videos in your Television set using your mobile phone or pill.

In addition it offers additional specifics of the video clip you happen to be looking at.

The Google Tv set remote apps is sort of a entire-fledged controller for your personal TV with your cellular phone.

The resource code of the software is open up sourced to help you tweak it to incorporate your very own customfeatures.

One example is, the developer of Capable Remote took the open source Google Television set distant app and included a few additional interestingfeatures like most loved channels.

The Peel Wise Distant app – its a Television set and movies discovery app – it allows your browse Tv set exhibits get extra details about the written content your are looking at as well as share it with your mates on social media marketing.

MOVL they may have to a couple apps such as the Poker Fun game.

you'll be able to Participate in poker with your pals in the family room.

It gives your individual working experience with your handheld gadget and on Television you have the shared experience that's the poker table.

So How can a remote app communicate with Google Television set? One among the choices is to use the Anymote protocol.

Communication amongst the remote unit and Google Television set is set up employing a three stage course of action.

The first step as to find out Google TVs over the regional community.

How is this performed? Google Television sends mDNS broadcasts within the local community asserting info for instance its IP handle and also the port quantity of the Anymote https://iptvrestream.net provider.

So.

.

to find Google Television units to the community community the distant application follows these techniques: Phase one would be to probe the nearby network, then parse the responses it gets trying to find the string underscore anymote underscore tcp.

Extract the product name, IP tackle and port range in the mDNS reaction.

Display screen the list of all accessible devices on the user and Allow the consumer decide on a tool that he wants to connect with.

When the user selects a device, the next step should be to authenticate to that Google Television set system.

Authentication is completed using the Pairing support and Pairing protocol.

The Pairing service works by using a problem-response authentication ie.

it shows a secret code, the person enters this code with your application, your app sends this code again to Google Television, Pairing services verifies this code and when anything seems Okay it sends again security certificates towards your app.

Now your app can use these certificates to talk to Anymote provider managing on Google TV.

Another move will be to mail gatherings out of your application to Google Television set using the Anymote protocol.

The Anymote protocol can send lots of kinds of input functions such as vital functions, mouse events, and many others.

It can even be used to fling Intents to Google Television.

As an example you may ship in Intent tolaunch a movie inside the YouTube application or to launch your software or to perspective a webpage.

Now lets undergo a brief tutorial on how to put into practice next display screen applications.

I will probably be utilizing the Anymote library since it causes it to be simpler to put into action second display apps.

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

Now I've a BlackJack app for Google TV.

It is really a straightforward one-player version.

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

I need a extremely uncomplicated BlackJack distant app on my telephone to mail Hit or Stand to my Google Tv set BlackJack app.

Let's get going.

.

I've downloaded the Android SDK.

Another move is to obtain the Anymote library.

Then I will import it into Eclipse.

Now I'll create a new Android task for my BlackJack distant app.

Now I will insert the reference on the Anymote library.

Duplicate all the declarations within the library in to the AndroidManifest for my application.

Now, I will apply the ClientListener interface with the library in the primary Action of my application.

Now allows create UI for that app.

The UI is made up of three buttons: Hit, Stand and begin a whole new Game.

Allows declare each of the UI features.

We are going to bind on the AnymoteClientService.

The AnymoteClientService handles communication with Google Television.

Inside the onServiceConnected callback we will go an implementation of ClientListener blankets Regardless how frequently you wish and repair into the attachClientListener way of the AnymoteClientService.

I will include an Intent to launch the BlackJack app during the onConnected callback.

Hence the BlackJack application will probably be released on Google TV when the connection is established.

Following We will setup the onClickListeners for the Hit, Stand and New Activity buttons.

The onClickListeners is going to be setup to ship keyEvents with the AnymoteSender.

With the Strike button We'll deliver keyEvent H, for that Stand We'll send keyEvent S and so forth.

.

Let us see a quick demo of the application.

.

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

.

The pairing code is revealed on Google Tv set.

I'll enter this on my mobile phone and after the connection is proven I'm able to use my mobile phone as a controller for playing BlackJack on Google TV.


 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку