日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)百度小程序教程:ARCameraContext
  • ARCameraContext
    • 示例
      • 圖片示例
      • 代碼示例

    ARCameraContext

    解釋:swan.createARCameraContext 的返回值。
    Web 態(tài)說明:Web 態(tài)暫不支持 ar-camera 功能。在 Web 態(tài)調(diào)用 ARCameraContext 的各方法會做 打開百度 App 對應(yīng)小程序頁面 的降級處理。

    正寧ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18980820575(備注:SSL證書合作)期待與您的合作!

    示例

    跳轉(zhuǎn)編輯工具

    在開發(fā)者工具中打開

    在 WEB IDE 中打開

    掃碼體驗

    代碼示例

    請使用百度APP掃碼

    圖片示例

    代碼示例

    • JS
     
     
     
    1. Page({
    2. data: {
    3. src: ''
    4. },
    5. onShow() {
    6. const cameraContext = swan.createCameraContext();
    7. this.cameraContext = cameraContext
    8. swan.showModal({
    9. title: '這是ARCameraContext創(chuàng)建的實(shí)例對象',
    10. content: JSON.stringify(cameraContext)
    11. })
    12. },
    13. takePhoto() {
    14. this.cameraContext.takePhoto({
    15. quality: 'high',
    16. success: res => {
    17. this.setData({
    18. src: res.tempImagePath
    19. });
    20. }
    21. });
    22. },
    23. startRecord() {
    24. this.cameraContext.startRecord({
    25. success: res => {
    26. swan.showToast({
    27. title: 'startRecord'
    28. });
    29. }
    30. });
    31. },
    32. stopRecord() {
    33. this.cameraContext.stopRecord({
    34. success: res => {
    35. swan.showModal({
    36. title: '提示',
    37. content: res.tempVideoPath
    38. });
    39. this.setData({
    40. videoSrc: res.tempVideoPath
    41. });
    42. }
    43. });
    44. }
    45. });

    文章標(biāo)題:創(chuàng)新互聯(lián)百度小程序教程:ARCameraContext
    網(wǎng)站地址:http://www.dlmjj.cn/article/dhedegd.html