姓名和学号 | 叶鹏,20020007095 |
---|---|
本实验属于哪门课程 | **海洋大学22夏《移动软件开发》 |
实验名称 | 实验3:视频播放小程序 |
博客地址 | Click me if you can |
Github仓库地址 | You won't miss that |
(备注:将实验报告发布在博客、代码公开至 github 是 加分项,不是必须做的)
- 掌握视频列表的切换方法
- 掌握视频自动播放方法
- 掌握视频随机颜色弹幕效果
列出实验的关键步骤、代码解析、截图。
列出程序的最终运行结果及截图。
本次实验中学习到了视频播放器的一些使用,对于本实验我觉得存在一些不严谨的地方
vx:key
元素指定不明确
实验自始至终未指定video{{index}}
到底指的是什么
- 未介绍
videoContext
对象
实验中只是展示但是没有解释wx.createVideoContext
函数,这个函数是创建一个视频播放器对象,创建的对象我们取名未videoCtx
,它自身包含有Play()
和Stop()
内置函数
- 部分变量不包含在页面初始数据内
如src
,videoCtx
,未在Page
的data
内声明,而是由一些别的函数生成,不知道是否严谨