{"id":372,"date":"2020-03-04T09:41:02","date_gmt":"2020-03-04T09:41:02","guid":{"rendered":"http:\/\/www.portfolio.hanicajo.com\/?p=372"},"modified":"2020-06-12T10:54:57","modified_gmt":"2020-06-12T09:54:57","slug":"skip-commercials-on-live-tv","status":"publish","type":"post","link":"https:\/\/www.portfolio.hanicajo.com\/?p=372","title":{"rendered":"Skip Commercials on Live TV"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/portfolio.hanicajo.com\/media\/AdlessVideo.mp4\"><\/video><\/figure>\n\n\n\n<p>Whenever the commercials come on while watching TV, I usually switch the channel over until they finish. The problem is, I have no way of knowing when the commercials have finished, and find myself changing back to the original channel either too soon, or too late.<\/p>\n\n\n\n<p>As my TV is Android based, I decided to see what I could do. <\/p>\n\n\n\n<p>Most channels contain a logo on-screen, which is removed during commercials. So basically, I scan that portion of the screen to get the pixels, and can determine if the logo is there.<\/p>\n\n\n\n<p>When the logo disappears, I hide and mute the channel, then start another video instance with a chosen video. <\/p>\n\n\n\n<p>During playback of the backup video, the original channel continues to be scanned, looking for the logo to return.<\/p>\n\n\n\n<p>When the logo returns, the backup video is stopped and the original channel is returned.<\/p>\n\n\n\n<p>It works really well. Work in progress!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever the commercials come on while watching TV, I usually switch the channel over until they finish. The problem is, I have no way of knowing when the commercials have finished, and find myself changing back to the original channel<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-projects"],"_links":{"self":[{"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":3,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.portfolio.hanicajo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}