zhanghangwei / wxbaisi Goto Github PK
View Code? Open in Web Editor NEW小程序 低仿百思不得姐
License: MIT License
小程序 低仿百思不得姐
License: MIT License
这个api是怎么得到的啊?这个api有什么限制吗?
步骤:播放第一个视频,然后播放第二个视频,暂停第一个视频,播放第一个视频,无发播放依旧是暂停,语音也是
我的解决方式是:定一个记录老的视频播放id,在暂停前先判断新的和老的是否相同,不相同才去判断有没有新的视频对象,再判断什么时候再暂停
代码:
videoPlay: function(obj) {
playingID = obj.currentTarget.id;
// 暂停音频的播放
if (this.audioContext) {
this.audioContext.pause();
}
if (playingID != oldPlayingID) {
oldPlayingID = obj.currentTarget.id;
// 暂停上一条视频的播放
if (this.videoContext) {
this.videoContext.pause();
}
}
this.videoContext = wx.createVideoContext(obj.currentTarget.id);
},
小程序在真机中运行有很多问题 ,要怎么修改呢?比如点击内容会跳转至评论页面,还有视频页面第一个视频会定在屏幕上,上下滑动会遮住下面的屏幕等等。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.