Answer the question
In order to leave comments, you need to log in
What am I doing wrong with YouTub API?
What am I doing wrong? Why doesn't the method work?
It doesn't work like this!!!
$('.add').on('click', function () {
var url = $(this).attr('data-id');
player.cueVideoById(url);
});
$('.add').on('click', function () {
var url = $(this).attr('data-id');
var u ="http://www.youtube.com/v/"+url+"?version=3";
player.loadVideoByUrl(u);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question