Playing a url video using media player on SONY TV?

Greetings!

Would it be possible to have a switch on my frontend that would play a URL video(YouTube) on my Sony TV? I have the tv configured just fine but don’t know where to start setting up the switch.

Thank you!