{"id":338934,"date":"2017-04-21T07:13:03","date_gmt":"2017-04-20T23:13:03","guid":{"rendered":"http:\/\/techcrunch.com\/?p=1479625"},"modified":"2017-04-21T07:13:03","modified_gmt":"2017-04-20T23:13:03","slug":"apple-releases-a-bit-of-code-to-let-you-put-live-photos-on-your-sites","status":"publish","type":"post","link":"https:\/\/people.utm.my\/asmawisham\/apple-releases-a-bit-of-code-to-let-you-put-live-photos-on-your-sites\/","title":{"rendered":"Apple releases a bit of code to let you put Live Photos on your sites"},"content":{"rendered":"<p id=\"speakable-summary\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1479626\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/04\/keekee.gif?w=680&#038;h=387\" alt=\"\" width=\"680\" height=\"387\"\/><\/p>\n<p>Apple\u2019s <a target=\"_blank\" href=\"https:\/\/techcrunch.com\/2015\/09\/09\/apples-new-iphones-let-you-snap-harry-potter-like-animated-photos\/\" rel=\"noopener noreferrer\">Live Photos<\/a> are fun \u2014 they\u2019ve definitely captured a few unexpected magical moments for me that standard stills would\u2019ve missed. But for the most part, they live on your phone and stay within the confines of your apps. Seeing them floating around the web, especially on a desktop browser, has always been something of a rarity.<\/p>\n<p>Tumblr kicked down that wall <a target=\"_blank\" href=\"https:\/\/techcrunch.com\/2016\/09\/20\/tumblr-brings-apples-live-photos-to-the-web\/\" rel=\"noopener noreferrer\">a bit last year<\/a> by adding Live Photos to its web version and releasing a tool to let others do the same. When it came to an official Apple-approved method, however, there was nothing to be found.<\/p>\n<p>That quietly changed this morning, with Apple updating its <a target=\"_blank\" href=\"https:\/\/developer.apple.com\/live-photos\/\" rel=\"noopener noreferrer\">developer portal<\/a> with a new tool they\u2019re calling LivePhotosKit. It\u2019s a JavaScript API built specifically to bring Live Photo playback support to your sites.<\/p>\n<p>We can\u2019t embed the Live Photos here just yet (or the way-better-than-GIF format WebM for that matter, hence the super-chunky GIF up top), but you can see a <a target=\"_blank\" href=\"https:\/\/developer.apple.com\/live-photos\/\" rel=\"noopener noreferrer\">working example here<\/a>.<\/p>\n<p>It looks pretty slick in action, but Apple\u2019s example mechanism for triggering playback here\u2026 doesn\u2019t seem super intuitive.<\/p>\n<p>Do I click? Do I hover over the image? It just started playing for a second when I was scrolling\u2026 is that the key?<\/p>\n<p>Turns out, the trick is hovering your mouse cursor over the little \u201cLIVE\u201d box in the upper right. It\u2019s easy to remember once you\u2019ve figured it out, but for about 20 seconds I was convinced something was broken.<\/p>\n<p>Apple\u2019s <a target=\"_blank\" href=\"https:\/\/developer.apple.com\/reference\/livephotoskitjs\/\" rel=\"noopener noreferrer\">documentation for the new API<\/a> suggests that this should play friendly with most of the major browsers, mobile or otherwise.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"387\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/04\/keekee.gif?w=680\" class=\"attachment-large size-large wp-post-image\" alt=\"\" \/>&nbsp;Apple&#8217;s Live Photos are fun &#8212; they&#8217;ve definitely captured a few unexpected magical moments for me that standard stills would&#8217;ve missed. But for the most part, they live on your phone and stay within the confines of your apps. Seeing them floating around the web, especially on a desktop browser, has always been something of a rarity. That quietly changed this morning. <a href=\"https:\/\/techcrunch.com\/2017\/04\/20\/apple-releases-a-bit-of-code-to-let-you-put-live-photos-on-your-sites\/?ncid=rss\">Read More<\/a><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:2mJPEYqXBVI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=2mJPEYqXBVI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:7Q72WNTAKBA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=7Q72WNTAKBA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:-BTjWOF_DHI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=vNUjU5sbqww:RUUeWF11DHo:-BTjWOF_DHI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=vNUjU5sbqww:RUUeWF11DHo:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=vNUjU5sbqww:RUUeWF11DHo:qj6IDK7rITs\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=qj6IDK7rITs\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/Techcrunch\/~4\/vNUjU5sbqww\" height=\"1\" width=\"1\" alt=\"\"\/> <\/p>\n","protected":false},"author":5817,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25],"tags":[59,66,26],"class_list":["post-338934","post","type-post","status-publish","format-standard","hentry","category-technology","tag-media","tag-techcrunch","tag-technology"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/338934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/users\/5817"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/comments?post=338934"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/338934\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/media?parent=338934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/categories?post=338934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/tags?post=338934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}