load a video into component html5
Copy link to clipboard
Copied
Hi, im creating an interactive where i need to play different videos.
Im trying to load a video into component using the Load a video code:
/* Load a Video
Change the URL below.
*/
var videoURL = "https://images-tv.adobe.com/avp/vr/15a99ccf-0e7c-4601-b270-87dd82624086/5078a43c-81f9-4a93-836c-8152...";
this.video_player_1.on("added", function() {
$("#video_player_1")[0].src=videoURL;
}, this, true);
I understand i need to change the url address to where my videos are. I have them in a folder where i store the videos inside the folder where my html page is.
var videoURL = "videos/IDLE_SCREEN.mp4";
this.video_player_1.on("added", function() {
$("#video_player_1")[0].src=videoURL;
}, this, true);
But the component doesent load the video. Not sure if this is the corrct way to do this.
any help would be appreciated.
thanks!
Copy link to clipboard
Copied
try:
var videoURL = "./videos/IDLE_SCREEN.mp4";

