I am trying to get the sender application language from Chromecast receiver in the first connection (before loading any stream) to show a welcome message.
I have this in my sender code to set the options:
cast.framework.CastContext.getInstance().setOptions({
receiverApplicationId: castReceiverId,
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
language: languageService.getCurrentLanguage().iso6393,
resumeSavedSession: true,
});
Is there a way to recover these params in the receiver code?