{"id":79,"date":"2006-09-20T16:24:28","date_gmt":"2006-09-20T15:24:28","guid":{"rendered":"http:\/\/www.martintod.org.uk\/blog\/?p=79"},"modified":"2006-09-20T17:01:37","modified_gmt":"2006-09-20T16:01:37","slug":"video-news-feed","status":"publish","type":"post","link":"https:\/\/www.martintod.org.uk\/blog\/2006\/09\/video-news-feed\/","title":{"rendered":"Video news feed"},"content":{"rendered":"<p>I&#8217;ve just put together a bit of HTML code that lets you display the latest party video on your website as follows.<\/p>\n<div class=\"centered\"><script type=\"text\/javascript\" src=\"http:\/\/petitions.libdems.org.uk\/showTV.php\"><\/script><\/div>\n<p>The basic code is:<\/p>\n<p><code>&lt;script type=\"text\/javascript\"<br \/>\nsrc=\"http:\/\/petitions.libdems.org.uk\/showTV.php\"&gt;<br \/>\n&lt;\/script&gt;<\/code><\/p>\n<p>To set a particular width in pixels, just add some code like <code>?width=200<\/code> to set the width of your video box, giving something like:<\/p>\n<p><code>&lt;script type=\"text\/javascript\"<br \/>\nsrc=\"http:\/\/petitions.libdems.org.uk\/showTV.php?width=200\"&gt;<br \/>\n&lt;\/script&gt;<\/code><\/p>\n<p>To get the code in a form suitable for including in a PHP readfile, add <code>&amp;format=html<\/code> to your URL.<\/p>\n<p><code>@readfile(\"http:\/\/petitions.libdems.org.uk\/showTV.php?width=200&amp;format=html\")<\/code><\/p>\n<p>This should automatically update whenever a new video is added&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just put together a bit of HTML code that lets you display the latest party video on your website as follows. The basic code is: &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/petitions.libdems.org.uk\/showTV.php&#8221;&gt; &lt;\/script&gt; To set a particular width in pixels, just add some code like ?width=200 to set the width of your video box, giving something like: &lt;script &hellip; <a href=\"https:\/\/www.martintod.org.uk\/blog\/2006\/09\/video-news-feed\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Video news feed&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2,11],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-javascript","category-politics","category-video"],"_links":{"self":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/79"}],"collection":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":0,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}