No, Apple doesn’t allow Sonos (or anyone else for that matter) to access files stored on an iPad. They used to, but that changed in the iOS release back in august of 2019. This is why there are no instructions for iOS devices, they can’t be used as ‘Local libraries’. Android is finally going this route as well, most likely to Sonos’ chagrin.
The device being AirPlay 2 compatible I was speaking of was the Sonos, not the iPad. Older speakers that were designed before AirPlay 2 existed don’t have the electronics necessary. As of (I think), the Sonos One, and everything since then is AirPlay 2 capable.
Remember, the Sonos ‘player’ doesn’t exist on your iOS device, it exists on the speaker. The controller is only a remote control as to what the speaker is doing.
I don’t use VLC myself, but if it’s using the correct Apple API, you should be able to use AirPlay 2 to send the signal to an appropriate Sonos speaker.
This FAQ may help you in using AirPlay 2 from your iPad to your Sonos One.