<video id="myVideo" src="{{videoUrl}}" autoplay="{{true}}" :controls="{{false}}"> <camera flash="off" frame-size="small" resolution="low" device-position="front" binderror="error" style="width: 100px; height: 100px;"></camera> <button bind:tap="onQuit">退出全屏</button> </video> <button bind:tap="onRotate">旋转</button> <view>方向:{{ deviceOrientation }}</view> // index.js Page({ data: { deviceOrientation: 'portrait', videoUrl: "https://hjblm-platform.chard.org.cn/digital_interven/video/2025/08/BAD2ZX_1754893880206.mp4", }, onRotate() { this.videoContext = wx.createVideoContext('myVideo'); this.videoContext.requestFullScreen({ direction: 90, }); this.setData({ deviceOrientation: this.data.deviceOrientation === 'portrait' ? 'landscape' : 'portrait' }) }, onQuit() { this.videoContext = wx.createVideoContext('myVideo'); this.videoContext.exitFullScreen(); } })
安卓手机调用视频全屏API后,camera组件方向未改变如代码所示,video组件包含camera组件时,调用VideoContext.requestFullScreen()API,视频全屏后camera调用的相机未旋转。 设备:小米13 安卓版本号:Xiaomi HyperOS 2.0.203.0/Android 15 截图:首先我的手一直和手机是一个方向的,但全屏后camera方向未旋转,IOS是正常的 [图片][图片]
09-01我也遇到这个问题了,只有安卓会出现,IOS不会这样
华为OpenHarmonyOS 5.1.0 系统微信小程序横屏时Camera组件方向依然是竖屏?[图片] 设备:华为pura 80pro,系统:ohos,系统版本:OpenHarmonyOS 5.1.0。微信版本:8.0.9,基础库版本:3.9.2 如图所示,此时小程序已经是横屏了,但是device_orientation依然是portrait,同时Camera组件的画面方式也是竖屏的。正确的应该是:横屏时候的device_orientation是landscape,同时Camera组件画面应该是适配横屏的。
09-01打开控制台的elements 给html标签添加 class="white" 属性就恢复了,暂时先这么用吧
开发文档背景为黑色,影响阅读https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html 开发文档背景为黑色,影响阅读
2022-07-05打开控制台的elements 给html标签添加 class="white" 属性就恢复了,暂时先这么用吧
黑色主题?https://developers.weixin.qq.com/miniprogram/dev/framework/ 今天是不是站点被黑了? 黑色主题?[图片]
2022-07-05给html标签添加 class="white" 属性就恢复了,暂时先这么用吧
文档没法看这让人怎么看文档 https://developers.weixin.qq.com/miniprogram/dev/framework/https://developers.weixin.qq.com/doc/offiaccount/Unique_Item_Code/Unique_Item_Code_Asked_Questions.html [图片]
2022-07-05有人遇到过吗?
webview打开页面后wx.uploadImage上传频繁报missing arguments小程序webview打开页面 点击上传按钮上传多张图片 按照文档要求success方法触发后重新调用 uploadImage频繁报错,第一次上传可以成功,之后上传都会报错,微信内置浏览器打开H5页面没问题 JS-SDK版本 1.6.0 下面是我H5源码的部分片段 /** * @LastEditors: * @description: 调用api打开微信相册 * @param {*} * @return {*} */ openWxChooseImage() { wx.chooseImage({ count: 9, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], success: (files) => { console.log('进入相册与照相机返回图片localIds回调'); const fileCount = files.localIds.length; this.localIds = files.localIds; if (fileCount + this.fileList.length > 9) { console.error('图片最多只能上传九张,如需替换请删除图片!'); Toast('图片最多只能上传九张,如需替换请删除图片!'); return false; } else { try { this.initQueue(fileCount); this.syncUploadFile(); } catch (error) { this.onError(); console.error(error); } } }, fail: (err) => { this.onError(); console.error('打开微信相册与照相机API fail', err); }, }); }, /** * @LastEditors: * @description: 上传图片 * @return {*} */ syncUploadFile() { if (!this.localIds.length) { console.log('开始执行上传服务器'); // 开始上传 this.UPDATE_QUEUE.start(); this.loadingToast = Toast({ type: 'loading', message: '上传中···', duration: 0, loadingType: 'spinner', }); return; } console.log('执行微信upload上传图片API'); wx.uploadImage({ localId: this.localIds[0].toString(), isShowProgressTips: 1, success: (res) => { const serverId = res.serverId; this.UPDATE_QUEUE.addTask(serverId); this.localIds.shift(); this.syncUploadFile(); }, fail: (err) => { this.onError(); console.error('微信上传API fail:', err); }, }); },
2022-06-24