There are few more advanced options, like fixed player while casting and video ads playback, described on this demo.
The usage of Chromecast subtitles has been explained in detail on another demo by Nuevodevel.com.
Requirements and limitations:
Chromecast Plugin works fine with browsers that supports Chromecast (desktop Chrome, Edge, Opera, Chrome on Android). Chromecast plugin also works on desktop Edge Chromium browser if you enable specific Edge extension "Load Media Router".
Google does not support non-secure origins (HTTP) with Chromecast.
Media file URL must be absolute path with https protocol.
For adaptive media streaming, Google Cast requires the presence of CORS headers, but even simple mp4 media streams require CORS if they include Tracks. Read more on https://developers.google.com/cast/docs/chrome_sender/advanced#cors_requirements. CORS headers is also required if media files are located on other than production server.