
作者:微信公开课+
作品:微信公开课
地区:全国小程序
标签:教育,工具,微信公开课,资讯
描述:微信公开课是微信官方与小程序行业合作伙伴沟通交流的微信小程序社区,为线下微信小程序公开课的免费授课提供线上的相关服务,包括查阅小程序活动议程、参与小程序活动互动以及回顾小程序课程内容等。
声明:作者对小程序服务信息内容及运营行为等真实性/合法性及有效性承担全部责任
订阅微信公开课小程序
-
小程序wxplayBackgroundAudio(OBJECT)播放问题
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayBackgroundAudio(OBJECT)播放问题」
摘要:小程序wxplayBackgroundAudio(OBJECT)播放问题
展开:模拟器和安卓正常,ios使用接口,回调函数是success,而且是ok。ios的就是没有声音,这是什么问题呢 -
小程序wxplayBackgroundAudio在后台播放失败(真机),小程序已置顶
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayBackgroundAudio在后台播放失败(真机),小程序已置顶」
摘要:小程序wxplayBackgroundAudio在后台播放失败(真机),小程序已置顶
展开:代码如下:写在页面的onhide函数里面:真机控制台输出如下:但是手机打开之后,这个音频又开始播放了。有大神遇到过类似问题么 -
小程序wxplaybackgroundaudio小程序播放背景音乐,上传图片会暂停
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplaybackgroundaudio小程序播放背景音乐,上传图片会暂停」
摘要:小程序wxplaybackgroundaudio小程序播放背景音乐,上传图片会暂停
展开:wx.playbackgroundaudio小程序播放背景音乐的时候,upPhoto()上传图片会暂停和wx.previewImage({})查看图片会暂停背景音乐 -
小程序wxplayBackgroundAudio的静音问题
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayBackgroundAudio的静音问题」
摘要:小程序wxplayBackgroundAudio的静音问题
展开:我现在用wx.playBackgroundAudio播放按键音,但是现在发现在手机设置静音之后依然能播放按键音,不知道有什么解决办法吗 -
小程序wxplayBackgroundAudio问题
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayBackgroundAudio问题」
摘要:小程序wxplayBackgroundAudio问题
展开:在onShow里面,播放音乐,playBackgroundAudio函数里调用的wx.playBackgroundAudioonShow:function(){ -
小程序wxplayVoice不能播放silk文件
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayVoice不能播放silk文件」
摘要:小程序wxplayVoice不能播放silk文件
展开:录音之后,上传到服务器。然后从服务器下载文件到本地,形成临时silk路径调用wx.playVoice之后,回调成功,但是没有声音。不知道什么原因! -
小程序wxplayVoice无法播放录音的临时音频文件
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayVoice无法播放录音的临时音频文件」
摘要:小程序wxplayVoice无法播放录音的临时音频文件
展开:通过wx.getRecorderManager()录音的mp3格式文件,调用wx.playVoice无法播放,提示播放失败,请问如何解决 -
小程序wxplayVoice无法播放录音的临时音频文件,已附代码
2019-04-03 15:16:50如何看待微信公开课小程序热门讨论「小程序wxplayVoice无法播放录音的临时音频文件,已附代码」
摘要:小程序wxplayVoice无法播放录音的临时音频文件,已附代码
展开:constrecorderManagerwx.getRecorderManager()recorderManager.onStart((){console.log(recorderstart)})recorderManager.onResume((){console.log(recorderresume)})recorderManager.onPause((){console.log(recorderpause)})recorderManager.onStop((res){console.log(recorderstop,res)const{tempFilePath}reswx.playVoice({filePath:tempFilePath,fail:function(ret){console.log(ret)},success:function(){console.log(播放成功)}})})recorderManager.onFrameRecorded((res){const{frameBuffer}resconsole.log(frameBuffer.byteLength,frameBuffer.byteLength)})constoptions{duration:5000,sampleRate:44100,numberOfChannels:1,encodeBitRate:192000,format:mp3,frameSize:50}recorderManager.start(options)我的手机是一加3T,微信版本是6.5.16版本