{"id":56278,"date":"2022-06-30T03:01:48","date_gmt":"2022-06-29T17:01:48","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=56278"},"modified":"2022-07-06T15:54:09","modified_gmt":"2022-07-06T05:54:09","slug":"screen-capture-api-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/screen-capture-api-primer-tutorial\/","title":{"rendered":"Screen Capture API Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Screen Capture API Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.gif\" title=\"Screen Capture API Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Screen Capture API Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve spent another day researching the web <a target=_blank title='W3 Spec for Screen Capture API' href='https:\/\/www.w3.org\/TR\/screen-capture\/'>Screen Capture<\/a> <a target=_blank title='Screen Capture API' href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Screen_Capture_API'>API<\/a> whereby &#8230;<\/p>\n<blockquote cite='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Screen_Capture_API'><p>\nThe Screen Capture API introduces additions to the existing Media Capture and Streams API to let the user select a screen or portion of a screen (such as a window) to capture as a media stream. This stream can then be recorded or shared with others over the network.\n<\/p><\/blockquote>\n<p>Teamed with this great resource was the tutorial, we followed to a letter, called <a target=_blank href='https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Screen_Capture_API\/Using_Screen_Capture' title='Using the Screen Capture API'>Using the Screen Capture API<\/a> that had us being able to display a video of the Screen Capturing, including cursor movement, as applicable.  Cute, huh?!<\/p>\n<p>Again, as with many web API functionality, permissions may need to be tweaked allowing the web browsers involved, permission to access &#8220;Screen Capturing&#8221;, <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.gif\" title=\"Tutorial picture\">at least in the case of the macOS environment we tested this on today<\/a>.<\/p>\n<p>Luckily, we can show you the fruits of following a tutorial assiduously with <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.html_GETME\" title=\"screen_capture_api_test.html\">screen_capture_api_test.html<\/a>&#8216;s <a target=_blank href=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.html\" title=\"Click picture\">live run<\/a> you can also try below &#8230;<\/p>\n<p><iframe src=\"https:\/\/www.rjmprogramming.com.au\/HTMLCSS\/screen_capture_api_test.html?iframe=y\" style=\"width:100%;height:900px;\"><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d56278' onclick='var dv=document.getElementById(\"d56278\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/video\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d56278' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve spent another day researching the web Screen Capture API whereby &#8230; The Screen Capture API introduces additions to the existing Media Capture and Streams API to let the user select a screen or portion of a screen (such as &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/screen-capture-api-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[12,14,33,37],"tags":[88,2360,2361,174,4008,576,652,2189,849,861,4022,4021,2976,997,2256,1103,1114,1319,1369],"class_list":["post-56278","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-software","category-tutorials","tag-api","tag-async","tag-await","tag-button","tag-getdisplaymedia","tag-html","tag-javascript","tag-navigator","tag-object","tag-onclick","tag-permission","tag-permissions","tag-privacy","tag-programming","tag-screen","tag-screen-capture","tag-security","tag-tutorial","tag-video"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56278"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=56278"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56278\/revisions"}],"predecessor-version":[{"id":56285,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56278\/revisions\/56285"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=56278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=56278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=56278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}