I am getting video url from Json data as http://www.youtube.com/watch?v=UVKsd8z6scw but how can I display this video url in iframe using jquery? it is not showing anything. if I open this youtube page and embed it then i get link as //www.youtube.com/embed/UVKsd8z6scw . How to solve this problem?
//jquery
$(document).ready(function(){
$.getJSON("http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",function(data){
alert(JSON.stringify(data));
var content='';
$.each(data,function(index,item){
content +='<div class="userdata">';
content +='<div class="userurl">'+item.keywords+'</div>';
content +='<iframe class="usevideourl" src="'+item.videourl+'"></iframe>';
content +='<img src="'+item.thumb+'" class="userimage"></img>';
content +='</div>';
});
$('#dictionary').append(content);
});
});