Comments (4)
在 creator 1.10 中,发布 example-cases 的 android 工程,打开测试例 example-02/09_videoPlayer 时,显示的状态类似上图,【6】处是 ready to play 此时只是本地视频的状态准备好了,和远程视频没关系。这时候点击 play online ,远程视频才开始加载,在加载的过程中(可能会耗时 20s),此时显示的状态依旧是 ready to play,实际上远程视频没有准备好。
换一个方式说,就是测试例本身表现不出来远程视频的加载过程,容易让测试人员认为,点击 play online 就会立即播放远程视频。@jareguo
from example-projects.
可以在点击 Play Online Video 的时候,隐藏这个数字
from example-projects.
或许把 play to online video 改成 switch resource to remote/local 更合适,因为其它的 button 对远程资源同样有效,每次 switch 的时候清空状态,收到消息后再更新状态。
如果更改的话,这个 button 的回调中就不用调用 play() 了,switch 之后需要手动点击 play 才会播放,在点击 play 的时候,如果 READY_TO_PLAY 消息还没收到,可以弹个通知提醒资源没加载完成。
这样和最初的设想一致,并且状态的反馈非常清晰
from example-projects.
明白了,不错的建议,就这么改吧
from example-projects.
Related Issues (20)
- 完善 downloader-web 范例 HOT 2
- 加入安全区域使用范例 HOT 2
- 似乎没有龙骨动态加载的范例
- webview 测试例初始时 Label 显示的状态与实际不符 HOT 4
- 场景跳转但是没有资源加载 HOT 1
- Import from Spine Pro HOT 1
- Suggestion: Deploy example-cases to gh-pages. HOT 1
- 这个例子对新手有点不友好...
- Crushed on Android app 2.2.1 HOT 1
- 太不友好了 HOT 1
- VideoPlayerCtrl `onVideoPlayerEvent` CLICKED 事件需要判断是否全屏
- co
- co
- co
- 2.4.3你们打开不报错吗 HOT 1
- 没有ts版本么? HOT 1
- 没有分包加载的案例吗
- 可以升级此项目为3.x的版本吗 HOT 1
- Require:
- Max steel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from example-projects.