How To Change Media Url Path While Video Playing ?

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

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.