Implement standard metadata on Chromecast implement-standard-metadata-on-chromecast

Instantiate a standard metdata object, populate the desired variables, and set the metadata object on the Media Heartbeat object. For example:

var standardVideoMetadata = {};
standardVideoMetadata[VideoMetadataKeys.SHOW] = "Sample show";
standardVideoMetadata[VideoMetadataKeys.SEASON] = "Sample season";

mediaObject[] = standardVideoMetadata;
var standardAudioMetadata = {};
standardAudioMetadata[AudioMetadataKeys.ARTIST] = "Sample artist";
standardAudioMetadata[AudioMetadataKeys.ALBUM] = "Sample album";

mediaObject[] = standardAudioMetadata;

See the comprehensive list of audio and video metadata here: Audio and video parameters.