javascript - magnific-popup generates "file not found" error for YouTube videos -


i trying make popup containing youtube video. code have

$(document).ready(function() {   $('#vid1').magnificpopup({     items:{       src: 'http://www.youtube.com/watch?v=0o2ah4xlbto'     },     type:'iframe'   }); }); 

i popup says the file or directory not found. missing or doing wrong? have tried multiple types of youtube links; result in same error.

are trying view video local file? youtube player blocks that. (file:///) have test videos web server. (http(s)://)


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -