{"id":2126,"date":"2010-06-28T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=2126"},"modified":"2010-06-28T00:00:00","modified_gmt":"1970-01-01T00:00:00","slug":"videos-in-glow-another-way-topup","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/videos-in-glow-another-way-topup\/","title":{"rendered":"Videos in Glow- another way &#8211; TopUp"},"content":{"rendered":"\n<p>I&#8217;ve <a href=\"http:\/\/johnjohnston.info\/blog\/archive\/2009\/10\/26\/glow-javascript-and-xsl\">blogged a bit<\/a> before about adapting glow to show video and <a href=\"http:\/\/johnjohnston.info\/blog\/archive\/2010\/05\/30\/mp3-players-in-glow\" title=\"MP3 players in Glow - John's World Wide Wall Display\">audio<\/a>. I&#8217;ve found another way to do it using the <a href=\"http:\/\/gettopup.com\/\">TopUp  Javascript library<\/a> and jQuery<\/p>\n<p>Here is a screencast to show how it works:<\/p>\n<p><object type=\"application\/x-shockwave-flash\" width=\"437\" height=\"274\" data=\"https:\/\/www.flickr.com\/apps\/video\/stewart.swf?v=71377\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"><param name=\"flashvars\" value=\"intl_lang=en-us&#038;photo_secret=4f74e6f7bf&#038;photo_id=4741838048\"><\/param><param name=\"movie\" value=\"https:\/\/www.flickr.com\/apps\/video\/stewart.swf?v=71377\"><\/param><param name=\"bgcolor\" value=\"#000000\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><\/object><\/p>\n<p>This goes in an xml webpart in glow:<\/p>\n<p><!-- Unrecognized template code: [[ geshi ]]It's either a disabled PivotX extension or a deprecated Pivot snippet\/snippet syntax. --><\/p>\n<p> <!-- script element removed --><br \/>\n\t<!-- script element removed --><br \/>\n<!-- script element removed --><br \/>\n   \t<!-- script element removed --><\/p>\n<p><!-- Unrecognized template code: [[ \/geshi ]]It's either a disabled PivotX extension or a deprecated Pivot snippet\/snippet syntax. --><\/p>\n<p>Here is what is going on:<br  \/><br \/>\n<strong>Line 1<\/strong> includes the jQuery Library hosted by google.<br  \/><br \/>\nWe then have a simple script using the library.<br  \/><br \/>\n<strong>Line 3<\/strong> setting <a href=\"http:\/\/api.jquery.com\/jQuery.noConflict\/\" title=\"jQuery.noConflict() \u2013 jQuery API\">jQuery to noConflict<\/a>, this means that we use jQuery for our main function name rather than the $ shortcut. I am not sure if I need to do this but it fixed some early experiments.<br  \/><br \/>\n<strong>Line 5<\/strong>, this is where we use jQuery, we use it to add a css class of <em>top_up<\/em> to any link that links to an m4v file.<br  \/><br \/>\n<strong>Line 9<\/strong> add the TopUp javascript library from gettopup.com. This is enough to make m4v videos play in a popup window but in the last bit of the script we just ajust some settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve blogged a bit before about adapting glow to show video and audio. I&#8217;ve found another way to do it using the TopUp Javascript library and jQuery Here is a screencast to show how it works: This goes in an xml webpart in glow: Here is what is going on: Line 1 includes the jQuery [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[8,38,84],"post_format":[],"class_list":{"0":"post-2126","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-glowscotland","8":"tag-javascript","9":"tag-video","10":"kind-","11":"h-entry","12":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-yi","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2126"}],"version-history":[{"count":0,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2126\/revisions"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2126"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}