Setting Up the Cast Message Bus
The Google Media namespace communicates media status objects to the sender application, and is the main communication bridge connecting the sender and receiver applications. The Cast message bus is one of the auxiliary communication bridges connecting the sender and receiver applications. All Chromecast applications must have this set up.
Set up the message bus to use the Google Cast Custom Channel namespace to pass through messages about player states and closed captions.