Chrome: Google Cast Retrieve Available Device List - google-cast

I worked with the pre-release SDK before the official SDK was released. Before I could retrieve a list of devices and display them however I wanted. For example, Google Music still has this functionality.
With the official release, is there any other way, besides having the Chromecast Extension popup with the list, to show available devices? I've been searching the documentation for an answer with no results.
Thanks!

No, the functionality is now handled by the extension to make it more uniform across all apps that use this feature, and to avoid confusion as to what the cast icon is in the chrome itself on the top right and what is the cast icon inside the player. Now both provide the same functionality if you are within a cast-enabled app.

Related

How to develop Spotify Desktop Applications, now Libspotify is discontinued

have done my due diligence, and not found any other posts that answer this question, but as usual, if you know a similar question, point me that way!
I noticed a long time back that Libspotify has been dicontinued:
(https://developer.spotify.com/technologies/libspotify/)
So, my question is - what should we do for developing Desktop applications?
They do state: "We hope to be able to provide you with a new library for other platforms." But, this has been going on since 2015!
I have seen many projects in GitHub still using Libspotify - so what should we do? An update was promised "in the upcoming months" but I've not seen anything yet.
What should we do for developing Desktop Applications?
We at Spotify don't currently provide playback as part of our platform offering outside of our iOS and Android SDKs, and I don't have any updates on that at the moment. As mentioned on the website, we hope to be able to provide playback SDKs for more platforms in the future. We don't support any new development on libspotify.
You can use the Spotify Web API to interact with Spotify in a variety of ways, including getting information about metadata, and accessing/modifying user libraries and playlists, which may be useful. You can also use the Applescript API to control playback on macOS, which may also help.
The Spotify Web API is pretty straight forward to use. Of course it defines the protocol rather than implements it so it is OS independent.
I put together a few classes to help unwrap some of the JSON parameters simply. These were written in Swift for macOS.

Possible to return an image in the Google Actions webhook response?

From the docs it seems like SpeechResponse is the only documented type of response you can return:
https://developers.google.com/actions/reference/conversation#SpeechResponse
Is it be possible to load an image or some other type of media in the assistant conversation via API.AI or the Actions SDK? Seems like this is supported with api.ai for FB, other messengers:
https://docs.api.ai/docs/rich-messages#image
Thanks!
As of today, Google Actions SDK supports Conversation Actions, by building a better Voice UI, which is integrated with Google Home.
Even API.AI integrations with Google Actions can be checked out here, which shows currently no support for images in the response.
When they provide integrations with Google Allo, then in the messaging interface, they might start supporting images, videos etc.
That feature seems to be present now. You can look it up in the docs at https://developers.google.com/actions/assistant/responses
Note: But images would be supported only on devices with a visual output. So Google Home would obviously not be able to do it. But the devices with screen do support a card with an image.
Pro Tip: Yes you can
What you want to do is represent your (image/video) as a URL within API.AI and render the URL as a (image/video) within your app
see working example

Google maps sdk for ios - is there an option for styles

Is there a way to achieve this kind of style with Google maps?
No.
Google maps for Android and iOS use v2. Custom styling is only available on v3. This feature request has been open for nearly two years so it's unlikely to be implemented any time soon.
Your only option is to use javascript styles and wrap it up as a web-view or look at another map provider like MapBox
Google launched styled maps for iOS and Android along with a new styling wizard that allows you to apply the same style across all different platforms, including Maps JavaScript API and Static Maps. There are even some new code and style samples available for iOS.

Xcode iPhone SDK (5.x) - CocoaLibSpotify iOS, Loading and Viewing playlists

iOS Spotify API.
I read the documentation on the browse.m example which seems to contain what i am looking for.
But i really don't know how to use it.
When the list of the playlists is called how do i display it in a UITableView ?
If i could joust get started i can probably figure out and accomplish what i want.
So basically i need a "kickstart" help code, and i'll be on my way (Figure of speech).
( Btw, yes i have the AppKey.c needed and i successfully #imported the API)
See the sample projects included with CocoaLibSpotify for a general idea on how to interact with the library.
As for displaying playlists, well, playlists are stored in an NSArray and each have a name property, etc, so you'd put them into a table view just like you would any other list of data in the iOS SDK.

Google Maps on website in Android OS

Hello I have this webiste www.liiklusinfo.ee and it's basically designed to work on web browsers, but is it possible to see that map on an Android mobile-phone? I can see that it is possible, because http://kraater.eu/en/map shows up on my android phone, but why isn't my website showing up? When I open the page, it states that I must get a new API code, but I have all the right API keys..
It's definitely due to the fact that you are using Maps API v2 instead of v3.
"http://maps.google.com/maps?file=api&v=2&hl=en&sensor=false&key=ABQIAAAAzrzbFLxHQWFbTQr9PqQ_HhRwAQ6CP1ccuJFaeFcXqlGX2NtZ2xQSe3YINEpjxiDi-m_GSubdYtbMEg">
V2 is causing some issues which is preventing v3 from loading. You may be able to find the route of those problems, but it would just be easier to switch to v3.
I would recommend reading this guide:
http://blogs.missouristate.edu/web/2010/05/12/google-maps-api-v3-developing-for-mobile-devices/
I'd suggest upgrading to the version 3 api, the tag line is V3: The Solution for Maps Applications for both the Desktop and Mobile Devices after all.
This should solve your problem. Moreover, i can see the map on the opera mini browser on my android just not the other.

Resources