- 关于开发服务器和正式服务器地址的问题?
之前在论坛上看到这样一个用法 const env = __wxConfig.envVersion; const baseApi = { // 开发版 develop: "http://192.168.199.xxx", // 体验版 trial: "https://trialdomain.com", // 正式版 release: "https://releasedomain.com" }; 看到后这么用了,开发版和体验版的时候很好,能自动切换,但是在审核的时候老是不通过说是页面卡顿无法切换,现在怀疑是审核的时候用的develop地址,这个变量也不是官方文档里提供的,请问 1,审核的时候env是不是develop 2,这个方法可用吗,希望官方回复一下
2020-05-13 - 日增长top5来源不是UV吗,代表新增,为什么与小程序数据展示的昨日新增数据不一致?
日增长top5来源不是UV吗,代表新增,为什么与小程序数据展示的昨日新增数据不一致?
2020-03-03 - web-view里面公众号文章图片在iPhoneX及其以上系列设备无法显示
[图片][图片] 这个公众号文章是使用web-view嵌入到小程序的。 这个是什么原因导致的呢?环境都是一模一样的。未做任何改动。就是苹果手机的图片显示不出来,其他功能都是可以使用的。
2020-05-07 - 怎么在input框里或者textarea框里加入笑脸表情包?
input框自带的表情可以在input框里显示,但是自己加的图片笑脸表情包只能是这种[\::]不能显示成图片形式的,这种怎么搞,还是有什么插件来实现呢?
2020-04-30 - audio 音频播放错误?
使用API: wx.createInnerAudioContext, InnerAudioContext.onError预期效果:在不同手机上都可以正常播放,事件监听正常 实际效果:在不同手机上同样的音频存在兼容性,报错日志显示如下。 1: 音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3d2dde78b9e.mp3 音频报错信息: errCode":10001,"errMsg":"errCode:62, err:load or init native decode so fail 报错机型: {"screenWidth":360,"locationEnabled":false,"statusBarHeight":18,"notificationAuthorized":true,"screenTop":61,"pixelRatio":2,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android 5.1","benchmarkLevel":5,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.10","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":true,"microphoneAuthorized":true,"windowHeight":579,"model":"OPPO A37m","platform":"android","SDKVersion":"2.10.3","devicePixelRatio":2} 2: 音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3a35d3190b8.mp3 音频报错信息: errCode":10001,"errMsg":"errCode:67, err:decode audio fail 报错机型: {"locationEnabled":true,"screenWidth":360,"benchmarkLevel":12,"screenHeight":742,"windowHeight":674,"bluetoothEnabled":false,"language":"zh_CN","microphoneAuthorized":true,"version":"7.0.10","cameraAuthorized":true,"system":"Android 9","fontSizeSetting":16,"locationAuthorized":false,"pixelRatio":3,"notificationAuthorized":true,"model":"HLK-AL00","statusBarHeight":24,"deviceOrientation":"portrait","wifiEnabled":true,"safeArea":{"width":360,"right":360,"top":0,"left":0,"bottom":742,"height":742},"brand":"HONOR","windowWidth":360,"screenTop":68,"platform":"android","SDKVersion":"2.10.3","devicePixelRatio":3} 3: 音频地址:https://yyashow-1255660808.file.myqcloud.com/book/audio/5e54dc32ae2af.mp3 报错信息: errCode":10004,"errMsg":"errCode:55, err:unknow format 4: 还有一些,同一个音频我这边会播放两次,但往往第二次播放有时会报错。后来我们联系了用户,用户说从4g切换wifi时候就可以,播放没问题,不懂这里什么错误。 等等还有很多诸如类似的错误 5 音频地址: https://yyashow-1255660808.file.myqcloud.com/book/audio/5e3eb5a40d34c.mp3 报错信息:errCode":0,"errMsg":"" 报错机型:screenWidth":360,"locationEnabled":true,"statusBarHeight":18,"notificationAuthorized":false,"screenTop":61,"pixelRatio":2,"safeArea":{"height":640,"width":360,"bottom":640,"top":0,"left":0,"right":360},"system":"Android5.1","benchmarkLevel":5,"cameraAuthorized":true,"bluetoothEnabled":false,"deviceOrientation":"portrait","windowWidth":360,"brand":"OPPO","fontSizeSetting":16,"version":"7.0.12","screenHeight":640,"locationAuthorized":true,"language":"zh_CN","wifiEnabled":true,"microphoneAuthorized":true,"windowHeight":579,"model":"OPPO A37m","platform":"android","SDKVersion":"2.10.3","devicePixelRatio":2 期望结果:尽快修复,或者 告知正确的音频需要的具体要求:格式,采样速率,音频声道信息等 代码片段:https://developers.weixin.qq.com/s/nVfAw5mc7pgt
2020-03-27 - 录音RecorderManager的文件为什么会被压缩时间?
start配置 const options = { duration: 600000, //指定录音时长,单位ms,最大10分钟(600000),默认1分钟(60000) sampleRate: 8000, //采样率 numberOfChannels: 1, //录音通道数 encodeBitRate: 48000, //编码码率 format: 'mp3', //音频格式,有效值 aac/mp3 // frameSize: 50, //指定帧大小,单位 KB } 部分手机录音结束后播放文件是以4倍速或2倍速播放,语速非常快,文件时长被压缩了,但是接口配置没有找到设置录音倍速的地方,求各位帮忙看看
2020-03-16 - 关于IOS,android播放ffmpeg推送的单声道音频播放问题?
用ffmpeg推送一路rtmp流,小程序在安卓设备播放正常,在IOS设备播放没有声音,当将音频变为单声道时,播放正常?有设备差异?
2020-03-16 - 录音功能如何去除噪音?
RecorderManager录音管理器怎么去除噪音
2020-03-09 - canvas在模拟器中可以绘制,为啥真机显示黑屏?
模拟器显示如下: [图片] 真机(小米8)显示如下: [图片] 修改代码后canvas不能正常绘制,提取出的代码片段链接:https://developers.weixin.qq.com/s/AIOdScmt71f4
2020-02-17 - PC端运行的小程序可以录音吗?
小程序在PC端进行录音。预览调试的时候可以调用开始录音、结束录音,但不会触发wx.getRecorderManager().onStop监听方法。我应该通过怎样的方法在PC端进行录音?
2020-03-06