{"id":34462,"date":"2020-08-09T03:09:33","date_gmt":"2020-08-09T03:09:33","guid":{"rendered":"https:\/\/www.myedme.com\/login\/?p=34462"},"modified":"2020-11-01T00:54:04","modified_gmt":"2020-11-01T00:54:04","slug":"test-broadcast","status":"publish","type":"post","link":"https:\/\/myedme.com\/login\/test-broadcast\/","title":{"rendered":"Test Broadcast"},"content":{"rendered":"\n<p>Welcome to the broadcast<\/p>\n\n\n<p>[agora-broadcast channel_id=&#8221;34461&#8243; videoProfile=&#8221;720p_3&#8243;]<\/p>\n\n\n\n<p>Here are the details about the broadcast:<\/p>\n\n\n\n<p>Blank for now<\/p>\n\n\n\n<html>\n<body>\n<video autoplay\/>\n<script>\n  var recordedChunks = [];\n\n  function gotMedia(stream) {\n    \/\/ |video| shows a live view of the captured MediaStream.\n    var video = document.querySelector('video');\n    video.src = URL.createObjectURL(stream);\n\n    var recorder = null;\n    try {\n      recorder = new MediaRecorder(stream, {mimeType: \"video\/webm\"});\n    } catch (e) {\n      console.error('Exception while creating MediaRecorder: ' + e);\n      return;\n    }\n\n    recorder.ondataavailable = (event) => {\n      console.log(' Recorded chunk of size ' + event.data.size + \"B\");\n      recordedChunks.push(event.data);\n    };\n\n    recorder.start(100);\n  }\n\n  navigator.mediaDevices.getUserMedia({video: true, audio: true})\n      .then(gotMedia)\n      .catch(e => { console.error('getUserMedia() failed: ' + e); });\n<\/script>\n<br\/>\n<video autoplay\/>\n<script>\n  var recordedChunks = [];\n\n  function gotAudioMedia(stream) {\n    \/\/ |video| shows a live view of the captured MediaStream.\n    var audio = document.querySelector('audio');\n    audio.src = URL.createObjectURL(stream);\n\n    var recorder = null;\n    try {\n      recorder = new MediaRecorder(stream, {mimeType: \"video\/webm\"});\n    } catch (e) {\n      console.error('Exception while creating MediaRecorder: ' + e);\n      return;\n    }\n\n    recorder.ondataavailable = (event) => {\n      console.log(' Recorded chunk of size ' + event.data.size + \"B\");\n      recordedChunks.push(event.data);\n    };\n\n    recorder.start(100);\n  }\n\n  navigator.mediaDevices.getUserMedia({video: true, audio: true})\n      .then(gotMedia)\n      .catch(e => { console.error('getUserMedia() failed: ' + e); });\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the broadcast Here are the details about the broadcast: Blank for now<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34462","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/posts\/34462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/comments?post=34462"}],"version-history":[{"count":3,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/posts\/34462\/revisions"}],"predecessor-version":[{"id":34685,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/posts\/34462\/revisions\/34685"}],"wp:attachment":[{"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/media?parent=34462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/categories?post=34462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myedme.com\/login\/wp-json\/wp\/v2\/tags?post=34462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}