![]() ![]() ![]() The company is also "building a technology for Bluetooth-enabled headphones" that will let them automatically switch audio output depending on what device you're using. It's bringing Cast support to more brands, starting with all Bose smart speakers and soundbars, so you can stream music and audio from your Android phone to compatible speakers. It doesn't sound as simple as Apple's HomePod setup where you can just hold your iPhone near your speaker to trigger the installation process, but we'll have to wait to see Google's solution in action to know for sure.Īfter your gadgets are all set up and synced with each other, Google also wants to enable convenient connections a la Apple's AirPlay or AirDrop. That should make adding connected appliances to your home network easier than before. Here’s the part of the code that helps us achieve that: shareButton.The company said it'll let you connect headphones to Google TV or Android TV in the coming months, and that Fast Pair will work with new Matter-enabled smart home devices as well. WebShare API Demo – Start by Ayooluwa ( CodePen.Īt this moment, once you click the share button, a dialog pops out and shows a few options for sharing the content. To demonstrate how to use this API, I’ve prepared a demo that works essentially the same as it does on my site. To prevent abuse, the API can only be triggered in response to some user action (such as a click event).To facilitate local development, the API also works when your site is running over localhost. ![]() Your website has to be served over HTTPS.A few requirements for using itīefore you can adopt this API on your own web project, there are two major things to note: It’s pretty easy to implement a fallback for supporting browsers that don’t offer support for it, as you’ll see. It’s only available for Chrome for Android, and Safari (desktop and iOS).īut don’t let that discourage you from adopting this API on your website. To be honest, browser support isn’t great at this time. Users can customize their preferred share targets on their own device instead of being limited to just the predefined options.īefore we get into the details of how the API works, let’s get the issue of browser support out of the way.A single button is sufficient to trigger the device’s native sharing options. You don’t need to add a series of buttons for different social media sites and email.You can improve your page load times by doing away with third-party scripts from individual social platforms.The user is presented with a wide range of options for sharing content compared to the limited number you might have in your DIY implementation.This approach provides a number of advantages over conventional methods: iOS offers a number of native sharing options. The introduction of this API allows developers to add sharing functionality into apps or websites by taking advantage of the native content sharing capabilities on a user’s device. While it’s already possible for a user to share content from a webpage via native means, they have to locate the option in the browser menu, and even then, there’s no control over what gets shared. In essence, it provides a way to trigger the native share dialog of a device (or desktop, if using Safari) when sharing content - say a link or a contact card - directly from a website or web application. The Web Share API is one that has seemingly gone under the radar since it was first introduced in Chrome 61 for Android. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |