Sure,
-
You can set the
src
attribute on thesource
element: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
load
method on the video element:videoElement.load()