With version 2.9.1, you can now use VLC for Android to stream local media to Chromecast. Videos and music files of all formats supported by VLC media player now can be streamed to Chromecast. Chromecast Ultra, Chromecast Audio, Google Home, Google Home Mini and Google Home Max. In this guide, I will try to use Chromecast to represent them all, instead of listing them all.
For PC users, you can stream local video and music files to Chromecast very easily with VLC media player version 3.0 RC2 or later.
This Chromecast guide shows you how to use VLC for Android to stream local media to Chromecast: installing the app, enrolling in the Android beta program, streaming local media with VLC for Android, and Chromecast streaming controls for VLC for Android.
Update: with the release of VLC 3.0, Chromecast is officially supported. Therefore, it is not necessary to join the beta program to use VLC for Android to stream local media to Chromecast. For PC users, you can use VLC media player to stream local music and videos to Chromecast, Chromecast Audio, and Google Home devices as detailed in this guide.