shitabro / jwavplayer Goto Github PK
View Code? Open in Web Editor NEW自定义简单的Avplaer
自定义简单的Avplaer
结构为Nav->vc1->vc2 当player在vc2中,侧滑返回至vc1时,player会播放卡顿。请问作者知道原因么?
JWPlayer*player=[[JWPlayer alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH,kVideoH)];
[player updatePlayerWith:[NSURL URLWithString:self.productInfo.videoPath]];
[player showInSuperView:scrollView andSuperVC:self];
self.player = player;
你好, 感谢你的分享, 我项目中用了你的代码块, push到新的vc的然后 在vc上添加一个scrollview, 再在scrollview上添加player, 当这个vc pop 出去后, 应该调用dealloc:的, 结果没有, 我的视屏资源销毁实在dealloc中添加的; 不自动调用 会产生 多视频流 同时播放; 排除法确定 是这段代码的问题, 导致 VC不能释放, 我没做改进,只是换种放是销毁视频资源了.....
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.