Media player: how long can you cast for?

I’m considering getting a Google Home Mini for the bedroom and would like to cast white noise from the Home Assistant Media Browser. This should then stay on all night (up to 12 hours). I know you can ask Google to play white noise natively but I want to be able to trigger it from Home Assistant with buttons etc (rather than have to speak to the device).

Any idea if this is possible? Will Home Assistant maintain the cast for.a 12 hour file? Will the Google Home Mini play a file this long and keep it going? Thanks!