Git Product home page Git Product logo

wmplayer's Introduction

WMPlayer

WMPlayer视频播放器,AVPlayer的封装,继承UIView,想怎么玩就怎么玩。支持播放mp4、m3u8、3gp、mov,网络和本地视频同时支持。全屏和小屏播放同时支持。 cell中播放视频,全屏小屏切换自如。

image

#用法,继承UIVIew,初始化传frame和URLString,调用play方法播放 1.初始化

wmPlayer = [[WMPlayer alloc]initWithFrame:playerFrame videoURLStr:self.URLString];
wmPlayer.closeBtn.hidden = YES;
[self.view addSubview:wmPlayer];
[wmPlayer.player play];

2.切换视频

    [wmPlayer setVideoURLStr:model.mp4_url];

依赖库为Masonry,如果项目中有加入直接用WMPlayer;如果没加如Masonry,请加入Masonry库,然后使用WMPlayer。(demo中有Masonry的源码,直接拖进工程就可以的了)。 使用过程中有bug,请联系我,我会及时修复。谢谢大家的支持。

#欢迎加入iOS开发技术支持群,487599875

wmplayer's People

Contributors

zhengwenming avatar

Watchers

wong_hs 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.