小程序
小游戏
企业微信
微信支付
扫描小程序码分享
很无语,希望快点解决。
5 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码示例。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
到现在都没有解决
题主, 可以用chooseVideo API , 我都服了 自己写了个, 原来就有
_this.cameraCtx.startRecord({
success() {
//添加流 控制时间
let stream = xs
.periodic(1000)
.endWhen(xs.periodic(11000).take(1));
stream.addListener({
next: i => {
_this.countDownTip =
"还剩 "
+ (10 - i) +
" 秒"
;
_this.$apply();
},
error: err => console.error(err),
complete: () => {
//录制时间到,停止录制
"还剩 0 秒"
_this.cameraCtx.stopRecord({
success(res) {
wx.showLoading({
title:
"请稍后……"
,
mask:
true
});
//处理视频
_this.$preload(
"tempThumbPath"
res.tempThumbPath
);
"tempVideoPath"
res.tempVideoPath
_this.$redirect({
url:
"playvideo"
wx.hideLoading();
console.log(res);
fail(res) {
wx.showToast({
"无法结束录像!"
+ res.errMessage,
icon:
"none"
}
"无法开始录像!"
当中用到了xstream(http://staltz.github.io/xstream/)的库
不止是Iphone
我android也是 我以为是故意静音的,
微信版本6.6.5
基础库1.9.9
手机 华为畅玩6x 权限都给了
复现代码
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码示例。
到现在都没有解决
题主, 可以用chooseVideo API , 我都服了 自己写了个, 原来就有
_this.cameraCtx.startRecord({success() {//添加流 控制时间let stream = xs.periodic(1000).endWhen(xs.periodic(11000).take(1));stream.addListener({next: i => {_this.countDownTip ="还剩 "+ (10 - i) +" 秒";_this.$apply();},error: err => console.error(err),complete: () => {//录制时间到,停止录制_this.countDownTip ="还剩 0 秒";_this.$apply();_this.cameraCtx.stopRecord({success(res) {wx.showLoading({title:"请稍后……",mask:true});//处理视频_this.$preload("tempThumbPath",res.tempThumbPath);_this.$preload("tempVideoPath",res.tempVideoPath);_this.$redirect({url:"playvideo"});wx.hideLoading();console.log(res);},fail(res) {wx.showToast({title:"无法结束录像!"+ res.errMessage,icon:"none"});}});}});},fail(res) {wx.showToast({title:"无法开始录像!"+ res.errMessage,icon:"none"});}});当中用到了xstream(http://staltz.github.io/xstream/)的库
不止是Iphone
我android也是 我以为是故意静音的,
微信版本6.6.5
基础库1.9.9
手机 华为畅玩6x 权限都给了
复现代码