![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwRh6XkG-2_miLGjyCAc8GqPaN2dMcur3bO2IOeu5x2v-MGWdSw2cjhZ_04gasYpveRvqS-2OagiNyGXhfE62dH2Rmd4JhYyS1fjVhh9E9FYD0zFIaQc6wciuapt7uebdR3JhexSB9vEfa7qQZ8CXPiu-YExk5w31hBwdhOalwaE6uu3QAoHxb3-wxzTA/s1600/Social-whats-new-in-google-cast.png)
Posted by Meher Vurimi, Product Supervisor
Since we launched Google Forged in 2013, we have been working to convey casting capabilities to extra apps and units. We have now come a good distance. Now, customers can solid to many new units, like TVs, audio system, sensible shows, and even the most recent Pixel Pill. We’re very excited to launch new options that make it extra seamless to solid on Android.
Output Switcher
![Moving image of output switcher showing various device categories](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlykTzAkbIgbFIzmyGda33mYBUFHP7kbLitqjTJk2zMaTfQ_-wGw84Ez9gw1VBdYDCCbmE6m-JpQHIV4axhd8AueGMltcR9NNz3n21rCIHDiCg59OI86sQD4GnqzmFlB6EQ3MO5C7F9rIx6rcRZFm3I33_glWVeGMy-16mwFttn3jPxYlTIsNS9f0VZig/s1600/image4.gif)
Android makes transferring media between numerous units– together with telephones to TVs, tablets, audio system, and sensible shows–simple with Output Switcher. Output Switcher is definitely accessible from the Android System UI and goals to permit cross-device switch and management in a single place for various technical protocols. With Output Switcher 2.0 on Android U, you can too see improved quantity management, machine classes, and help for units with customized protocols.
Extra data could be discovered within the Google Forged developer information and Media router.
- Allow Output Switcher in AndroidManifest.xml
<utility> ... <receiver android:identify="androidx.mediarouter.media.MediaTransferReceiver" android:exported="true"> </receiver> ... </utility>
- Replace SessionManagerListener for background casting
class MyService : Service() { personal var castContext: CastContext? = null protected enjoyable onCreate() { castContext = CastContext.getSharedInstance(this) castContext .getSessionManager() .addSessionManagerListener(sessionManagerListener, CastSession::class.java) } protected enjoyable onDestroy() { if (castContext != null) { castContext .getSessionManager() .removeSessionManagerListener(sessionManagerListener, CastSession::class.java) } } }
- Help Distant-to-Native playback
class MySessionTransferCallback : SessionTransferCallback() { enjoyable onTransferring(@SessionTransferCallback.TransferType transferType: Int) { // Carry out obligatory steps previous to onTransferred } enjoyable onTransferred(@SessionTransferCallback.TransferType transferType: Int, sessionState: SessionState?) { if (transferType == SessionTransferCallback.TRANSFER_TYPE_FROM_REMOTE_TO_LOCAL) { // Distant stream is transferred to the native machine. // Retrieve data from the SessionState to proceed playback on the native participant. } } enjoyable onTransferFailed(@SessionTransferCallback.TransferType transferType: Int, @SessionTransferCallback.TransferFailedReason transferFailedReason: Int) { // Deal with switch failure. } }
Forged to units close by
![Moving image showing bringing an Android phone close to the docked Pixel Tablet to transfer media](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFkz0dXUIS9SXy04iLnpj_GEeHCNIptIDacpbhW9slU34L04I1S4zjWWYaifRlXwnR5ya1NK2KjZkoqyaBHNrwY0j_o4o4EkxciNZNJ1aL2WqKEQVxHXAxTW54J8RI904aYMG5nuijUfnz1k6D9M-F3ui_o7y5oz86b_ZKSEuw-xR8OjRY79CntpSjrC8/s1600/CasttoNearbyDevices.gif)
It would quickly be doable to solid to units close by in a complete new means when you’ve a Pixel Professional telephone and a docked Pixel Pill. Customers can switch ongoing music from their Pixel Professional telephone to a docked Pixel Pill simply by bringing the telephone nearer to the docked pill. Equally, they will switch the music to their telephone from a docked Pixel Pill simply by holding the telephone nearer to the pill. This characteristic wants Output Switcher integration as a prerequisite.
Forged from short-form video apps
![Moving image showing enabling and disabling autoplay for short-form content](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwFG9F-t2Uz6E1szpq7Bc9a86ZmzcQ_g4x277N_Q1m5XIZBVNsUPPczrNzjPiEmIT1fIsBQGR9MYg4-LScLUoRtaixRoD_NQllCF3dtlo5bJlo5hU_-8PXdj6q-Cd8zQzTJGHpzJYBMvJmQW7GE3STtuvM442DQoaUv6Jk5Pd60IvpXPCiCF5a97eAkTk/s1600/image3.gif)
Quick-form content material is extraordinarily in style and rising in use. Google Forged could make it simple for customers to observe their favourite short-form content material on TVs or different cast-enabled units. Now, you possibly can simply lengthen Google Forged help into your apps. These are the rules we put collectively to supply an ideal person expertise to your customers.
solid out of your telephone
Be sure that the Google Forged icon is prominently displayed on each display screen with playable content material on the highest proper nook. Customers robotically perceive they will solid media to a TV simply by seeing the Forged icon.
solid with autoplay
Customers may also have an choice to disable autoplay to solid a particular video. When autoplay is enabled, playback robotically transitions to the subsequent video with none person intervention.
Persistent Forged icon
![Moving image showing cast icon and error message for users to troubleshoot if no devices are found](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_w2G8Fr6VwpET2k8xQ4W84CQXD7FxRz5NDwvxIXakaIVzpggl-MuWeACWAey0ysqe3CAFZ-R_TEjA-Sok7X_HrIL6MXI7NV6iS_RH4DqaBNwsIEcPDdeYpD2dM2xcyWw4gDVtqj6-Ruke82N_v-EXmQCOUN5ZDpQ5Cx3NpGeR3PY2Lf2qKIopJdfp8qE/s1600/image6.gif)
We have heard suggestions that when customers do not see the solid icon, they assume their Chromecast built-in units have not been found. To enhance person expertise and discovery, we have now launched the “Persistent solid icon”. With this help, customers will see the solid icon at any time when they want and may obtain higher assist and steerage on why they don’t see a particular machine. As well as, we have up to date when machine discovery begins. Extra data could be discovered within the Google Forged Developer Information.
Shaka Participant
For any Net Receiver functions streaming HLS content material, we suggest wanting into migrating to Shaka Participant for playback. The present participant (MPL) will not undertake characteristic updates. Consequently, the Net Receiver SDK has elevated help for HLS playback utilizing Shaka Participant on the machine targets and has launched an opt-in flag to allow it. Discuss with the Shaka Participant migration information hosted on the DevSite for extra data and implementation particulars.
To opt-in to make use of Shaka Participant for HLS content material use the next snippet in your Google Forged Receiver utility:
const context = solid.framework.CastReceiverContext.getInstance(); const castReceiverOptions = new solid.framework.CastReceiverOptions(); castReceiverOptions.useShakaForHls = true; context.begin(castReceiverOptions);
Forged to new units
![Moving image showing the experience of casting to an LG TV as a first time user](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNyewY_cDu4GeiqKwX3hKMcjxAY5ODHyiu4JaehGs0uo8B8_TpePJF3oKhdWlXsPBqwdiK8WQ5-H9LyPT8GbfZoGDK3HO_tWCQK57v45BVnj98oZSAFOXFffJ6JEPn5xrBgftpLFB1hNz4-BWoKpiSnhvffec6gewO4uRsutti2N0-nf6fkXS82BpnTfE/s1600/image2.gif)
We have now been repeatedly working with numerous OEMs to convey Chromecast built-in to new units. Final 12 months, we launched Chromecast built-in to new audio system, whereas additionally introducing the receiver help on docked Pixel Tablets.
As all the time, Google TVs include Chromecast built-in, together with the brand new Hisense ULED and ULED X Sequence, newest TCL Q Class fashions, and new TCL QM7 line. Actually, there at the moment are over 220 million month-to-month lively Google TV and different Android TV OS units, and we’re simply getting began. Extra units are launching with Chromecast built-in, just like the 2024 LG TV sequence.