- ios css 样式会出现错乱 假如中间有不同的元素插入的话?
(安卓没有问题)ios 中 页面中 动态元素 添加 下边的 元素 boder 宽度 会造成样式错乱 .actoravatar .actorlist-item{ background:#fff; width: 60rpx; height: 60rpx; border-radius: 50%; font-size: 30rpx; text-align: center; box-sizing: content-box; line-height: 60rpx; color: rgba(41, 41, 41, 1); margin-left: 30rpx; } .actoravatar .actorlist-item{ .actived{ background: transparent; border: 10rpx solid #fff; color: #fff; }
2022-07-21 - 小程序视频 ios 播放mu38 格式播放完成 后黑屏
<video src='https://cmindstatic.pimconline.com/static/script/video/中老年女性_3_8P5NJYmTEZ/中老年女性_3_8P5NJYmTEZ.m3u8' /> 苹果x 出现问题 希望官网修复
2022-07-04 - wx.getRecorderManager() 使用腾讯语音 Ai 如果别的页面有了 该页面 不能
let plugin = requirePlugin("QCloudAIVoice"); plugin.setQCloudSecret(66, '5','45645645', false); //设置腾讯云账号信息,其中appid是数字,secret是字符串, let managerCloud =plugin.getRecordRecognitionManager(); //防抖节流 import { WechatOssapiGetencypt, WechatProjectAudiomerge } from "../../common/request" Page({ data: { currentText:"", currentTextResult:'', secordRecorde:0, RecordetempFilePath:[], RecordTotaltime:0, RecordTimer:null, recorderManagerCloud:null, innerAudioContextCloud:null, }, streamRecord() { managerCloud.start({ duration:600000, engine_model_type: '16k_zh' }); console.log('开始录制') }, streamRecordEnd() { // if(this.data.secordRecorde<60){ // uni.showToast({ // title: '录制时长小于1分钟', // duration: 2000, // icon: 'none' // }) // return // } managerCloud.stop(); clearInterval(this.data.RecordTimer) this.setData({ RecordTotaltime:this.data.secordRecorde, secordRecorde:0 }) console.log('结束录制'); }, onLoad (options) { this.setData({ recorderManagerCloud:wx.getRecorderManager() }) if (wx.setScreenBrightness) { // 保持屏幕常亮 true / false wx.setKeepScreenOn({ keepScreenOn: true }) } else { // 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示 wx.showModal({ title: '提示', content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。' }) } this.initRecord() }, initRecord(){ managerCloud.onRecognize ((res) => { console.log(res) let text = res.result this.setData({ currentText: this.data.currentTextResult+text, }) }) managerCloud.onStart((res) => { console.log(res) if(res.msg == 'OK') { // 提示用户正在录音 wx.showToast({ title: '正在识别语音...', duration: 1000, icon: 'loading' }) clearInterval(this.data.RecordTimer) this.data.RecordTimer=setInterval(() => { this.data.secordRecorde++ this.setData({ secordRecorde:this.data.secordRecorde, RecordetempFilePath:this.data.RecordetempFilePath.length>0?this.data.RecordetempFilePath:[], RecordTotaltime:this.data.RecordetempFilePath.length==0?0:this.data.secordRecorde }) }, 1000); } }) managerCloud.onError((res) => { console.log('recorder error', res.errMsg); }) managerCloud.onStop((res) => { console.log(res) const {tempFilePath,result} = res clearInterval(this.data.RecordTimer) this.data.RecordetempFilePath.push(tempFilePath) this.setData({ RecordetempFilePath:this.data.RecordetempFilePath, currentTextResult:this.data.currentTextResult+result }) this.data.secordRecorde>0? this.streamRecord():"" if(this.data.RecordetempFilePath.length>0 && this.data.secordRecorde==0){ this.uploadFileRecorder(149,this.data.RecordTotaltime,1,this.data.RecordetempFilePath) } }) }, setFileName(i, type = 'mp3',RecordSceneId) { const time = Math.round(new Date()/1000) let user_id = this.data.user_id; return (`${user_id}_${RecordSceneId}_${i+1}_${time}.${type}`); }, uploadFileRecorder(RecordSceneId,RecordTotaltime,language,RecordetempFilePath){ //RecordTotaltime 录制总时长 let RecorderList =RecordetempFilePath //视频录制列表 const that = this WechatOssapiGetencypt({ type: 4, expire: 3600 }).then(res=>{ const{ code, data }= res if(code==0){ console.log('进入这里') var babyData = { 'Filename':'', 'name': 'img', 'key': '', 'policy': data.policy, 'OSSAccessKeyId': data.accessid, 'success_action_status': '200', //让服务端返回200,不然,默认会返回204 'signature': data.signature } data.callback? babyData.callback= data.callback: "" let videoCount = 0; //记录失败 测试 let video_json=[] console.log(RecorderList) for (let k = 0; k < RecorderList.length; k++) { let fileName = this.setFileName(k,'mp3',RecordSceneId) babyData.Filename = fileName babyData.key = data.dir + fileName wx.uploadFile({ url: data.host, formData: babyData, name: 'file', filePath: RecorderList[k], header: { 'content-type': 'multipart/form-data' }, success: e => { if (e.statusCode == 200) { video_json.push({ id: k+1, video_path: data.dir + fileName }) if (video_json.length == RecorderList.length-videoCount) { //合并视频接口 WechatProjectAudiomerge( { video_json:video_json, language, scene_id:RecordSceneId, time:Math.round(new Date()/1000), totaltime:RecordTotaltime }, ).then(res=>{ }) //合并视频接口 } } }, fail: failres => { videoCount++ wx.showToast({ title: '上传文件出错', icon: 'none', duration: 2000 }) } }) } } }) }, onReady: function () { }, onShow: function () { }, onHide () { managerCloud.stop(); clearInterval(this.data.RecordTimer) this.setData({ RecordTotaltime:0, secordRecorde:0 }) this.data.recorderManagerCloud.stop(); }, onUnload () { managerCloud.stop(); clearInterval(this.data.RecordTimer) this.setData({ RecordTotaltime:0, secordRecorde:0 }) this.data.recorderManagerCloud.stop(); }, onPullDownRefresh: function () { }, onReachBottom: function () { }, onShareAppMessage: function () { } })
2022-05-06 - 微信小程序cover-view手机调试css动画不执行或者特别卡顿
微信小程序cover-view手机调试css动画不执行或者特别卡顿
2022-03-17 - 小程序audio标签bindtimeupdate时间问题?
currentTime和duration在编辑器中是准确的,但是在手机中测试时两个时间有时准确,有时候又不准确
2022-02-17 - camera 停止录制后,调用stopRecord 组件有问题官方能解决吗?
camera 停止录制后,调用stopRecord 有一定概率无效,不执行的问题 HUAWEI nova 8 Pro[图片]
2021-12-13 - 微信小程序 直播回访地址 重复 应该如何选择去重?
{ "code": 200, "data": [ { "createTime": "2021-04-19T11:47:13Z", "expireTime": "2022-04-19T11:47:12Z", "mediaUrl": "http://1258344707.vod2.myqcloud.com/1b87576bvodcq1258344707/8dd62b7a5285890817162853779/playlist_eof.m3u8" }, { "createTime": "2106-02-07T14:28:15", "expireTime": "2116-02-05T14:28:15", "mediaUrl": "http://1258344707.vod2.myqcloud.com/1b87576bvodcq1258344707/6481346e5285890817165160674/playlist.f6.m3u8" } ], "message": "请求成功", "success": true }
2021-04-20