Я реализовал CustomSession и CustomSessionProvider.
onSessionStarted в SessionManagerListener вызывается с CastSession! = Null, но RemoteMediaClient == null;
Всегда ли RemoteMediaClient равен null?Нужно ли его инициализировать?
public class CastSessionManagerListener implements SessionManagerListener<CastSession> {
@Override
public void onSessionStarted(CastSession castSession, String s) {
Log.d(TAG, "onSessionStarted() called with: castSession = [" + castSession + "], s = [" + s + "]");
if (!MediaRouter.getInstance(context).getSelectedRoute().isDefault()) {
Log.e(TAG, "SESSION STARTED WITH: " + castSession.getRemoteMediaClient());
}
}
}