0

When casting, google home app takes the session and acts as a controller. I need to disable or block or hide the seeking bar, so the user can't seek from google home app

Element to disable in google home UI

Is it possible to do this from the receiver app through the cast SDK?

I've not found anything on the cast SDK docs Is there any docs that helps me to achieve this?

1 Answers1

0

Since this is controlled by the supportedMediaCommands being set, there is no way to control it using a default web receiver as the supported commands are set to ALL_BASIC_MEDIA which includes SEEK.

If you are currently implementing a custom web receiver you should be able to remove the seek command from it using PlayerManager. Check simple web receiver app JS code below:

const context = cast.framework.CastReceiverContext.getInstance();

const playerManager = context.getPlayerManager();

playerManager.removeSupportedMediaCommands(cast.framework.messages.Command.SEEK)

context.start();
Fedor
  • 17,146
  • 13
  • 40
  • 131