Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • DCloud
  • uni-component
  • Issue
  • #2

U
uni-component
  • 项目概览

DCloud / uni-component

通知 293
Star 7
Fork 3
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 3
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 0
  • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
U
uni-component
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 3
    • Issue 3
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 0
    • 合并请求 0
  • Pages
  • DevOps
    • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 流水线任务
  • 提交
  • Issue看板
已关闭
开放中
Opened 8月 03, 2024 by _凡夫俗子@qq_23154025

类型不匹配

‌error: 类型不匹配: 推断类型是uts.sdk.modules.uniVideo.Danmu,但预期的是uts.sdk.modules.DCloudUniVideo.Danmu。‌ 11:45:39.460 at uni_modules/uni-video/utssdk/app-android/index.uts:44:30 11:45:39.460 42 |
11:45:39.460 43 | sendDanmu(danmu : Danmu) { 11:45:39.460 44 | this.videoElement.sendDanmu(danmu); 11:45:39.460 | ^ 11:45:39.460 45 | } 11:45:39.460 46 |
11:45:39.460 ‌error: 类型不匹配: 推断类型是uts.sdk.modules.uniVideo.RequestFullScreenOptions?(可为空的uts.sdk.modules.uniVideo.RequestFullScreenOptions),但预期的是uts.sdk.modules.DCloudUniVideo.RequestFullScreenOptions?(可为空的uts.sdk.modules.DCloudUniVideo.RequestFullScreenOptions)。‌ 11:45:39.461 at uni_modules/uni-video/utssdk/app-android/index.uts:52:38 11:45:39.461 50 |
11:45:39.461 51 | requestFullScreen(direction ?: RequestFullScreenOptions | null) { 11:45:39.461 52 | this.videoElement.requestFullScreen(direction); 11:45:39.461 | ^ 11:45:39.461 53 | } 11:45:39.461 54 |
11:45:39.581 检测到编译缓存部分失效,开始差量编译。详见:https://uniapp.dcloud.net.cn/uni-app-x/compiler/#cache 11:45:39.581 请在杀毒软件中设置扫描排除名单,减少系统资源消耗。详情 11:45:39.591 uni_module [uni-video] 三方依赖文件已存在,跳过下载 11:45:40.096 当前工程1个页面,正在编译为android class,此过程耗时较长... 11:45:42.427 [plugin:uni:app-uts] 编译失败 11:45:42.427 ‌error: Unresolved reference: VideoViewElement‌ 11:45:42.427 at pages/index/index.uvue:21:10 11:45:42.427 19 | */ 11:45:42.427 20 | //Todo: 临时解决方案,新版本将无需import 11:45:42.427 21 | import { VideoViewElement } from "uts.sdk.modules.DCloudUniVideo" 11:45:42.427 | ^ 11:45:42.427 22 |
11:45:42.427 23 | export default { 11:45:42.427 ‌error: Unresolved reference: uniVideo‌ 11:45:42.427 at pages/index/index.uvue:4:10 11:45:42.427 2 | 11:45:42.427 3 | 11:45:42.427 4 | 11:45:42.427 | ^ 11:45:42.427 5 | <button class="button" @click="play" type="primary">播放 11:45:42.427 6 | 注意: 11:45:42.427 ‌error: Unresolved reference: VideoViewElement‌ 11:45:42.427 at pages/index/index.uvue:35:36 11:45:42.427 33 | //uni-app x 项目 uvue 页面中的调用方式(以下方式二选一) 11:45:42.427 34 | // (this.$refs['video'] as VideoViewElement).play(); 11:45:42.427 35 | (uni.getElementById('video') as VideoViewElement).play(); 11:45:42.427 | ^ 11:45:42.427 36 | } 11:45:42.427 37 | }

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: dcloud/uni-component#2
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7