Windows Phone control tv over wifi - windows-phone-8.1

I'd like to create a Windows Phone 8.1 app to connect to a TV and have basic controls (change channels, turn on/off).
I know It's hard to have an universal remote for every TV, but I'm just testing so It could work to a specific model/maker.
My first guess is to connect to a smart tv over wifi connection, but I can't find any site to describe how to do this or how do I start researching. I only got links to apps already made, but not on how to build it.
Anyone knows how this connection works?
Thanks!

i dont think this is really related to Windows phone specific. but here is what you can do:
find out what kind of API the TV has. it's probably some Rest or SOAP based webservice you can call. if there are existing apps (maybe for other platforms) you can use Fiddler to check the network traffic from these apps to the TV if you set your pc as "man in the middle" with fiddler.
as soon as you have what you need look into HttpClient examples on how to send these requests toward your TV.
fiddler :http://www.telerik.com/fiddler
HttpClient: https://msdn.microsoft.com/library/windows/apps/dn298639

Related

Is it possible to use the webHID API over and RDP connection?

We recently implemented the webHID API for one of our sites (it is such a godsend) and have the client asking if they can use the devices over a Microsoft RDP connection?
I imagine this would depend on the RDP client and whether they can/do send HID events over the RDP connection.
From some initial research it looks like you can redirect USB over RDP but don't think this will work for us as I couldn't get my device mapping done with the webUSB API.
If anyone has any input on this it would be greatly appreciated.
Thx
WebUSB, WebHID and Web Serial should work with a remoted USB device.
That said, there may be bugs if these devices don't appear to applications like Chrome in quite the same way they do when connected locally. If they don't, it would be interesting to get logs from chrome://device-log and see how the device appears in the Windows Device Manager.
Please file a bug at https://crbug.com/new and let us know so that we can keep track of this issue.

Codename one wi-fi detection

Im working with "Codename one" (Android developer) and I would like to know how can I detect if the phone has wi-fi activated or not. In this way, I can decide store data locally, and transmit it only when WI-FI is active. Otherwise, if I want to send pictures, without WI-FI, could be very expensive.
As a related question, do I have to setup some kind of cron or similar (in my code) in order to ask to my device if the WI-FI has been turned on?
Thank you very much for your help.
Kindly regards,
Gustavo
Normally to detect network you will need to use a check of whether you can connect to a specific server since a WiFi might be an airport wifi or something where you aren't authorized to connect outside. This will make it seem like wifi is connected but won't really work.
We have an APN API that allows you to detect the connection type (wifi/3g etc.) but it only works on Android/Blackberry and thus won't work (at this time) on iOS etc. Look at NetworkManager specifically: isAPSupported, getCurrentAccessPoint, getAPType.

Stream video from Windows Phone app to Windows Store app using Bluetooth or Wi-Fi direct?

I need to do reliable streaming of video from a Windows Phone 8 app to a Windows Store app. Currently I am doing this via sockets over Wi-Fi with a wireless router in the middle like this SO solution suggests:
How to stream video from PC to Windows Phone 8 mobile phone through internet
I can no longer use a solution like this because the production environment for the apps will not have a wireless router available so the Windows Phone device will need to talk directly to the Windows Store app running on a laptop or tablet. I've heard of something called Wi-Fi direct but I am having trouble finding the information I need in this context. Here are my questions:
Can I use Wi-Fi direct? If so, is there a decent sample or document that covers my app context of streaming video from a Windows Phone 8 app to a Windows Store app?
If I can't, is Bluetooth reliable enough to stream video smoothly? If so, any examples that show how to do this would be appreciated.
If both are viable solutions, which is the better one using smooth frame rate and reliability as a the criteria for judging?
If I turn the tablet/PC or Windows Phone into a hotspot, would that allow me to establish socket connections from my apps?
Hotspot questions extended. Will the hotspot solution, either phone or tablet/laptop, still work if the device providing the hotspot does not currently have access to a network? For example, if the phone can't access a 3G/4G network, can it still act as a hotspot for the tablet/laptop? I know there won't be Internet/Web access, but can the devices still talk to each other?
I found this SO post on Wi-Fi direct but it covers Android:
Wi-Fi Direct technology
I found this SO post on Bluetooth streaming but it covers Android and iOS:
Bluetooth video streaming in WiFiCameraApp
Would turning my laptop/tablet running the Windows Store app into a hot-spot work for my context?:
http://community.spiceworks.com/how_to/show/2207-accessing-files-over-wifi-without-a-router-android-pc
Why don't you use the phone as a hot spot by enabling internet sharing? Remove the router.

How to certificate WP8 app with HERE launcher

I have created an application which use HERE Application Launchers and my app work fine on my Nokia Lumia 720.
My problem is certification on marketplace I get the response like:
The application exhibits device specific behavior that inhibits functionality and
features. The application's main functionality
cannot be tested on non-Nokia devices because it requires Nokia Here Drive.
-Launch the application on HTC 8X.
...
-Observe the user is prompted to install the app "Here Drive".
I agree with this becouse HERE maps are only available on Lumia devices. But how to use HERE Launchers if we cannot publish it on the marketplace?
If somebody has had similar situation and know solution for it?
That's because it's better to use the ms-drive-to or ms-walk-to Uri scheme!
When you use those, the phone itself will launch HERE drive if it is present, otherwise Bing maps!
Get the needed example code and usage on MSDN here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj710324(v=vs.105).aspx
I think you need to clearly state in your app description for Store and in the app itself, that it works only on Nokia devices. (Or you can implement some kind of fallback behavior for non-Nokia devices as well)
This way it should pass the certification, because the behavior will be expected and not confusing.
I suppose either there were something wrong on the submission time, or the rules have changed. I at least submitted an application which is using the Uri Scheme directly, and it got accepted.
In the essense there is no requirements for any specific Application being installed, but there is a query made for applications which support the Uri scheme protocol. And if the HERE application having it is installed, then it will be launched.
And if there is no handlers available, then the market place should be opened for searching for the handlers. At least that's the way the system is designed for.

wifi videostreaming from laptop to device

trying to create a program that works as following .video is captured by web cam of laptop and it is streamed to android phone using wifi .According to the video displayed, user types some messages and sents back to laptop simultaneously.
googled and found that making an ad-hoc wireless network will work,but forum
discussions says its not supported by android.want my app to work from 2.2 onwards
Which Socket communication protocol (UDP or TCP) protocol should be used to stream video?
Since want to implement two way communication, which one must be the server (laptop or mobile device)
Please guide me how to implement this
use connectify or any virtual router to get connected to your android phone.so app can be connected with your laptop or desktop.
go for UDP its fast and recover data even if it's lost and also use a proper data streaming strategy or a protocol.
According to your application design , i will recommend you to make your laptop work as a server. Also it would be best if you choose to use threading in both application and recommend your app to act as server or client as it's required shows more robustness..!