How To Change Media Url Path While Video Playing ?

Assuming I set up a media player with a URL, like while watching hippopotamus.mp4, is it possible to change video URL to ?

To be more specific, while watching a video I’ll say the name of an animal, then my voice is going to be recognized and will be sent to our server, then ill receive a related media path of the video.