Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Приемники Android TV используют библиотеку Cast Connect, позволяющую существующим приложениям-отправителям взаимодействовать с приложениями Android TV через протокол Cast.
Cast Connect построен на основе инфраструктуры Cast, а ваше приложение Android TV выступает в качестве приемника. Библиотека Cast Connect позволяет вашему приложению Android TV получать сообщения и транслировать статус мультимедиа, как если бы это было устройство Google Cast.
Основные сценарии, поддерживаемые библиотекой Cast Connect:
Запуск воспроизведения мультимедиа в приложении Android TV из приложения Cast Sender.
Отправка статуса мультимедиа из приложений Android TV в приложения-отправители.
Разрешение отправителям присоединяться к приложениям Android TV и управлять ими, как если бы они были веб-приемниками.
Использование аппаратных пультов для управления воспроизведением.
Поскольку Cast Connect позволяет поддерживать основные функции веб-приемника, его можно использовать с существующими приложениями-отправителями. Помимо запуска приложения Android TV, загрузки мультимедиа и управления воспроизведением, Cast Connect включает в себя следующие функции:
[null,null,["Последнее обновление: 2025-05-08 UTC."],[[["\u003cp\u003eAndroid TV receivers leverage the Cast Connect library, enabling communication with existing sender applications using the Cast protocol.\u003c/p\u003e\n"],["\u003cp\u003eThis library allows Android TV apps to function like Chromecast devices, receiving messages and broadcasting media status.\u003c/p\u003e\n"],["\u003cp\u003eCast Connect supports essential features such as initiating media playback, sending media status, and enabling sender control, similar to Web Receivers.\u003c/p\u003e\n"],["\u003cp\u003eIt encompasses functionalities like sender join/leave events, metadata handling, media commands, custom messages, track management, queueing, and repeat/shuffle modes.\u003c/p\u003e\n"],["\u003cp\u003eWhile offering extensive capabilities, full Assistant support is currently limited for Cast Connect.\u003c/p\u003e\n"]]],["Android TV apps leverage the Cast Connect library to interact with Cast sender apps via the Cast protocol, enabling the Android TV to function as a receiver. This facilitates initiating media playback, sending media status updates, and allowing sender apps to join and control the Android TV app. Key features include sender join/leave events, media metadata, supported media commands, custom messages, tracks, queueing, repeat/shuffle, and ads. Hardware remote control is also supported. Assistant functionality is currently limited.\n"],null,["# Android TV Receiver Overview\n\nAndroid TV Receivers use the Cast Connect library to allow existing sender\napplications to communicate with Android TV applications via the Cast protocol.\n\nCast Connect builds on top of the Cast infrastructure, with your Android TV app\nacting as a receiver. The Cast Connect library allows your Android TV app to\nreceive messages and broadcast media status, as if it were a Google Cast device. \n\nThe primary scenarios enabled by the Cast Connect library are:\n\n- Initiating media playback on an Android TV application from a Cast sender app.\n- Sending media status from Android TV Applications to sender applications.\n- Allowing senders to join and control Android TV applications as if they were Web Receivers.\n- Using hardware remotes to control playback.\n\nSince Cast Connect allows you to support the core features of a Web Receiver, it\ncan be used with your existing sender applications. In addition to starting your\nAndroid TV app, loading media, and playback control, Cast Connect includes the\nfollowing features:\n\n- Sender Join/Leave Events\n- Media Metadata\n- Supported Media Commands\n- Custom Messages\n- Tracks\n- Queueing\n- Repeat/Shuffle\n- Ads\n\n| **Note:** Assistant functionality is currently not fully supported for Cast Connect."]]