Sure,
-
You can set the
srcattribute on thesourceelement:document.querySelector("#myVideoTag > source").src = "http://example.com/new_url.mp4"Or using jQuery instead of standard DOM methods:
$("#myVideoTag > source").attr("src", "http://example.com/new_url.mp4") -
Then you need to call the
loadmethod on the video element:videoElement.load()