Giter VIP home page Giter VIP logo

mobilesoftwaredesign-lab3's Introduction

2022年夏季《移动软件开发》实验报告

姓名:叶鹏 学号:20020007095
姓名和学号 叶鹏,20020007095
本实验属于哪门课程 **海洋大学22夏《移动软件开发》
实验名称 实验3:视频播放小程序
博客地址 Click me if you can
Github仓库地址 You won't miss that

(备注:将实验报告发布在博客、代码公开至 github 是 加分项,不是必须做的)

一、实验目标

  • 掌握视频列表的切换方法
  • 掌握视频自动播放方法
  • 掌握视频随机颜色弹幕效果

二、实验步骤

列出实验的关键步骤、代码解析、截图。

  1. 项目创建

    image-20220819204135596
  2. 页面配置

    image-20220819204257141
  3. 视图设计

    1. 导航栏设计

      image-20220819204529523 image-20220819204540151
    2. 页面设计

      1. 区域1:视频播放器

        image-20220819205937346 image-20220819205946243
      2. 区域2:弹幕发送区域

        image-20220819210001765 image-20220819210009622
      3. 区域3:视频列表

        image-20220819211352742 image-20220819211406321
  4. 逻辑实现

    1. 更新播放列表

      image-20220819212349084 image-20220819212357305
    2. 点击播放视频

      image-20220820143127802 image-20220820143554348
    3. 发送弹幕

      image-20220820145602656 image-20220820145630763

三、程序运行结果

列出程序的最终运行结果及截图。

image-20220820145647379

image-20220820145713542

四、问题总结与体会

本次实验中学习到了视频播放器的一些使用,对于本实验我觉得存在一些不严谨的地方

  • vx:key元素指定不明确

image-20220820145920418

​ 实验自始至终未指定video{{index}}到底指的是什么

  • 未介绍videoContext对象

​ 实验中只是展示但是没有解释wx.createVideoContext函数,这个函数是创建一个视频播放器对象,创建的对象我们取名未videoCtx,它自身包含有Play()Stop()内置函数

  • 部分变量不包含在页面初始数据内

​ 如srcvideoCtx,未在Pagedata内声明,而是由一些别的函数生成,不知道是否严谨

mobilesoftwaredesign-lab3's People

Contributors

existot01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.