The application what it tries to do is against a series of stories of some citizens in a video clip series, now, what I'm trying to do is show thumbnails.
I'm trying to capture the value src of an img tag, the thing is that the id of the img I have it in a database, trying to pass that id by a function so with jquery try to capture the src He does not do it, he tells me that it's undefined. can someone tell me how I can do to capture the id dynamically.
function marcadoRegionImagen(nombre_video) {
nombre_video = nombre_video.toLowerCase();
var src = $(nombre_video).attr('src');
console.log('funciona? ' + src);
}
This function I call when I start the player.
rep_one.onplay = function () {
if (parseInt(estado_id_video) >= long.length) {
getVideo();
}
rep = 1;
$('#video_two').attr('src', video.video[parseInt(estado_id_video) + 1].R);
estado_id_video = parseInt(estado_id_video) + 1;
//Aqui le paso el id que vide desde la base de datos
marcadoRegionImagen(video.video[parseInt(estado_id_video)].V);
}
This way I would have to allow myself to show the user which of the different videos he is currently in.
On the side of the front-end you have a list of images, more or less like that.
But I'm passing him the id but nothing, he always returns undefined, Can someone tell me how I can do?