• <samp id="frm2q"><ins id="frm2q"></ins></samp>
      1. <samp id="frm2q"></samp>
        <progress id="frm2q"><bdo id="frm2q"><strong id="frm2q"></strong></bdo></progress>
        <menuitem id="frm2q"><ins id="frm2q"><u id="frm2q"></u></ins></menuitem>

        <progress id="frm2q"></progress>
      2. cordova插件- Media Capture

        小編:管理員 73閱讀 2022.09.13

        • 添加插件

        $ cordova plugin addcordova-plugin-media-capture

        • 插件的使用
        • Methods
        • capture.captureAudio
        • capture.captureImage
        • capture.captureVideo
        • Example

        <div style="position: absolute;top: 40px"> <input type="button"value="captureAudio"onclick="captureAudioClik()"><br> <input type="button"value="captureImage"onclick="captureImageClik()"><br> <input type="button"value="captureVideo"onclick="captureVideoClik()"><br> <button onclick="javascript:history.back(-1)">返回上一頁</button> </div> <script> // capture callback var captureSuccess=function(mediaFiles){ var i, path, len; for (i = 0, len =mediaFiles.length; i < len; i += 1) { path = mediaFiles[i].fullPath; // do something interestingwith the file console.log('path = '+path); } }; // capture error callback var captureError=function(error) { navigator.notification.alert('Error code:' +error.code, null, 'Capture Error'); }; //音頻的捕獲 function captureAudioClik() { // start audio capture navigator.device.capture.captureAudio(captureSuccess, captureError, {limit:2}); } //圖片的捕獲 function captureImageClik() { navigator.device.capture.captureImage(captureSuccess, captureError, {limit:2}); } //錄像的獲取 function captureVideoClik() { navigator.device.capture.captureVideo(captureSuccess, captureError, {limit:2}); } </script>

        關聯標簽:
        日本漂亮人妻被强制

      3. <samp id="frm2q"><ins id="frm2q"></ins></samp>
          1. <samp id="frm2q"></samp>
            <progress id="frm2q"><bdo id="frm2q"><strong id="frm2q"></strong></bdo></progress>
            <menuitem id="frm2q"><ins id="frm2q"><u id="frm2q"></u></ins></menuitem>

            <progress id="frm2q"></progress>