Media player can't play to Google home speaker

I can’t play music from home assistant media player to Google home speaker.
I can’t access home assistant with http://192.168.2.xxx:8123, but
https://192.168.2.xxx:8123 work fine is that mean my internal url not working.

Is http is internal url and https external url ?

Configuration.yaml

external_url: https://xxx.duckdns.org
internal_url: http://192.168.2.xxx:8123

Logs error

https://xxx.duckdns.org:8123/media/local/music/song.mp3?authSig=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxMzQxMTk3OTg5NGU0MDVlOTRiYzA5MDdlNWI5YWNiNCIsInBhdGgiOiIvbWVkaWEvbG9jYWwvTG9ja2V0IDIvQnVsbGV0IC0gTG92ZWx5IE5pcm1hbiAoRGpQdW5qYWIuQ29tKS5tcDMiLCJpYXQiOjE2MDgxMTM4NTcsImV4cCI6MTYwODExNDE1N30.3sBPgx17IDA2JPoUdzxK67nCfFjBUlLg-Ydhe85uQ78 from external_url (https://xxx.duckdns.org:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Why do you put http://192.168.2.xxx:8123 as your internal url evwn though you can’t access HA like this? Did you try changing the internal URL with https instead of http?

I followed this tutorial Homeassistant remote access with duckdns

Don’t follow youtube tutorials, instead read the docs or ask here for help. Did you try my suggestions?

Yes, now url is https://192.168.2.xxx:8123, but can’t solve my problem. I think there is any settings problem in my UDM. After I migrate from ASUS to UDM had stoped media player cast to Google home Speaker.
UDM settings:
NETWORK:
Local Networks


INTERNET:
Wan Networks

WAN Network Settings:

Local Networks Settings:

You’d better ask this in a Unifi forum, I think there’s even a guide somewhere to make google cast and the like work with multiple Unifi networks.
Did you enable mDNS under Settings->Services?

Thanks, I will try in Unifi Forum. Yes, mDNS is enabled.