0

I'm casting from iOS/Android to Google Chromecast device and trying to switch channels by clicking up/down buttons, but can not catch an event if Up or Down button has been clicked.

Tried to listen for all events from cast.framework.events.EventType.ALL but I receive only final events like (PLAY, PAUSE, TIME_UPDATE, etc.)

    const context = cast.framework.CastReceiverContext.getInstance();
    const playerManager = context?.getPlayerManager();
    playerManager?.addEventListener(cast.framework.events.EventType.ALL, (event) => {
      logScreen.info(`event: ${event.type}`);
    });

Maybe somebody knows how to catch an event/message that up/down button called on Chromecast Voice Remote?

Thanks

enter image description here

0 Answers0