Giter Site home page Giter Site logo

Comments (4)

drelaptop avatar drelaptop commented on July 20, 2024

在 creator 1.10 中,发布 example-cases 的 android 工程,打开测试例 example-02/09_videoPlayer 时,显示的状态类似上图,【6】处是 ready to play 此时只是本地视频的状态准备好了,和远程视频没关系。这时候点击 play online ,远程视频才开始加载,在加载的过程中(可能会耗时 20s),此时显示的状态依旧是 ready to play,实际上远程视频没有准备好。

换一个方式说,就是测试例本身表现不出来远程视频的加载过程,容易让测试人员认为,点击 play online 就会立即播放远程视频。@jareguo

video-error-state

from example-projects.

jareguo avatar jareguo commented on July 20, 2024

可以在点击 Play Online Video 的时候,隐藏这个数字

from example-projects.

drelaptop avatar drelaptop commented on July 20, 2024

或许把 play to online video 改成 switch resource to remote/local 更合适,因为其它的 button 对远程资源同样有效,每次 switch 的时候清空状态,收到消息后再更新状态。

如果更改的话,这个 button 的回调中就不用调用 play() 了,switch 之后需要手动点击 play 才会播放,在点击 play 的时候,如果 READY_TO_PLAY 消息还没收到,可以弹个通知提醒资源没加载完成。

这样和最初的设想一致,并且状态的反馈非常清晰

zl-video-reply

from example-projects.

jareguo avatar jareguo commented on July 20, 2024

明白了,不错的建议,就这么改吧

from example-projects.

Related Issues (20)

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.