I'm working on a web sender application and when the device selection menu is opened by calling cast.framework.CastContext.getInstance().requestSession(), the player's UI is updated to show a holding image and 'Select a casting device' text.
This is fine if you then connect to a session (the text is updated to say 'Casting to X device') - but if the device selection menu is just dismissed by clicking elsewhere on the page, I want to return to the standard playback state. Unfortunately, I can't find an event or anything in the docs which would tell you when the device selection menu has been dismissed.
Any help or guidance in the right direction would be greatly appreciated!