i want integrate youtube videos , photos in django blog posts. youtube data api , youtube analyticis api documentation confusing. can point me in right direction. how should go on integrate it.
the general format of iframe need embed this:
<iframe class="youtube-player" type="text/html" width="' + {{ w }} + '" height="' + {{ h }} + '" src="http://www.youtube.com/embed/' + {{ youtubelink }} + '" allowfullscreen frameborder="0"></iframe>
insert template wherever need video on page. need pass template variables w
, h
, , youtubelink
(which of form h5eofwrzit0
, , can lifted right out of url video). of course, or of these hard-coded rather requiring variables passed if prefer. should need display video.
Comments
Post a Comment