Skip to content Skip to sidebar Skip to footer

Html5 Video Tag Setting Src Programmatically

I need to run a video file for this iam using video element. The anomaly which iam seeing right now is that if iam setting the src programmatically then the file is not playing.

Solution 1:

Are you sure the URLs are the same (hardcoded and the one you get from the element)?

also you can try to load the video programmatically after you set it

$('[id*="MyVdo"]')[0].load();

Post a Comment for "Html5 Video Tag Setting Src Programmatically"