We are excited to announce the new Amazon Fling service. This new service is a cross-platform toolkit that enables mobile developers to build rich multi-screen experiences for Amazon Fire TV. At its core, the Amazon Fling SDK allows sending video, audio and images from iOS and Android mobile apps to Amazon Fire TV. In addition to flinging media content to Amazon Fire TV, developers can also leverage two-way communication between Amazon Fire TV and mobile apps to create engaging second screen experiences.
The new SDK is designed to simplify the process of dealing with underlying network discovery and communication technologies that normally make this type of connection difficult to implement. The SDK offers a standardized way to communicate between your apps over a local network allowing developers to focus on building new and unique user experiences. Even developers who don’t have an existing Amazon Fire TV app can take advantage of the SDK’s media playback capabilities since a default built-in receiver plays these for you automatically. This is one of the quickest ways to leverage the power of our service and the built in functionality of the Amazon Fire TV and Fire TV stick.
What Can You Do With the new SDK?
Out of the box it is straightforward to leverage our new SDK to send URLs of videos, images and audio files to the Amazon Fire TV. This allows you to take media content and easily play them back on the big screen from a mobile app. But flinging media is not all you can do with it. If you dig a little deeper into the SDK you can use mobile devices as a second screen or a companion app to what is running on the Amazon Fire TV. Here are some great examples of how developers are already leveraging the SDK in their own apps:
Red Karaoke uses an iPhone to send audio to their Amazon Fire TV app.
Karaoke Party by Red Karaoke, one of the first karaoke smartphone apps in the market, is leveraging the SDK to display song lyrics and videos on Amazon Fire TV. Additionally, Red Karaoke uses the SDK to send audio from the microphone on the customer’s device to the TV. Customers can now have a true Karaoke experience in their living room.
With Fling, Rivet Radio customers get the capability to share music and videos on the largest screen in the house.
Rivet Radio, a digital news radio broadcaster, allows people to listen to news on the TV. By leveraging Amazon Fire TV’s built in media playback receiver, Rivet Radio lets listeners easily transition between listening on their personal device to sharing content with everyone in the living room.
There are more great apps that use our SDK coming and we are looking forward to seeing what developers come up with.
Updating Your App Using our new SDK
The new SDK is available today with support for iOS, Android and Fire OS. To get started visit the SDK page and download the .zip file. You can also read the getting started documentation, which will walk you through setting up your development environment for Android or iOS, Integrating the SDK into your Android or iOS app and integrating the Amazon Fling SDK into your Amazon Fire TV app.
The SDK supports rich, two-way communications with your Amazon Fire TV app. You can build custom second screen experiences with the following APIs:
- Set URL of the media to be rendered: setMediaSource()
- Get information about the media: getDuration(), getPosition(), isMimeTypeSupported(),getMediaInfo()
- Control playback: play(), pause(), stop(), seek()
- Playback status: getStatus(), addStatusListener(), removeStatusListener(), setPositionUpdateInterval()
- Custom command: sendCommand()
If you don’t have an Amazon Fire TV app, you can use the Amazon Fire TV default media player (already installed). If you’ve created an Amazon Fire TV app already, you can integrate the receiver SDK that will enable people to discover, remotely install (if needed) and control your Amazon Fire TV app while flinging media content to your media player.
Already Have An App that Supports Chromecast?
Our new SDK makes it easy for developers to adapt their existing apps that have Chromecast functionality to fling to Amazon Fire TV. For more information on how to do this, check out our guides to integrating the SDK with an existing Android Chromecast app or iOS Chromecast app in the developer portal.
Get Started Today
With our new SDK, you can leverage the built in media players to send the content of your app or game directly to Amazon Fire TV. Being a developer for the Amazon Appstore is completely free- sign up today and get started. If you need some more information on building apps and games for Amazon Fire TV, make sure to check out the following links:
- Jesse Freeman (@jessefreeman)
Big Buck Bunny is copyright 2008, Blender Foundation / www.bigbuckbunny.org and is licensed under the Creative Commons Attribution License 3.0, available at https://creativecommons.org/licenses/by/3.0/us/legalcode. Elephants Dream is copyright 2006, Blender Foundation/ Netherlands Media Art Institute/ www.elephantsdream.org and is licensed under the Creative Commons Attribution License 2.5, available at https://creativecommons.org/licenses/by/2.5/legalcode.