GithubHelp home page GithubHelp logo

aryansbtloe / xlmediazoom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xmartlabs/xlmediazoom

0.0 2.0 0.0 1.74 MB

UI controls to view an image or reproduce a video in fullscreen like Instagram does.

License: MIT License

xlmediazoom's Introduction

XLMediaZoom

XLMediaZoom is a tool for iPhone (iOS 5+) to display images and reproduce videos in fullscreen like Instagram does. It's fully tested on iOS 7 and has blur capability depending on your iPhone device.

Installation

The easy way to integrate XLMediaZoom in your projects is via CocoaPods.

pod 'XLMediaZoom'

If you prefer, you can install XLMediaZoom manually by doing:

  1. Drag and drop the folder XLMediaZoom/XL to your project
  2. In files where you think you will use this utility import XLMediaZoom.h for images and XLVideoZoom.h for videos.

Example

See XLViewController in the example project for details on how to use this component. In short, though:

UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 240, 120)];
// Declare an image zoom view associated with the previous UIImageView
XLMediaZoom *imageZoom = [[XLMediaZoom alloc] initWithAnimationTime:@(0.5) image:imageView blurEffect:YES];

//..

// On image touch do (you could use a UITapGestureRecognizer):
[self.view addSubview:imageZoom];
[imageZoom show];

To go out of fullscreen, simply tap the image or video.

XLMediaZoom preview

XLMediaZoom available classes

  1. XLMediaZoom defined in XLMediaZoom.h. This base class is used to fullscreen an image taking an UIImageView for that.
  2. XLVideoZoom defined in XLMediaZoom.h. This class inherits from XLMediaZoom and takes a UIImageView (video's preview) and a NSURL (video's URL). Use this class is similar as you use XLMediaZoom.

License

XLMediaZoom is distributed under MIT license, please feel free to use it and contribute.

Contact

If you are using XLMediaZoom in your project and have any suggestion or any question:

Martin Barreto, [email protected]

Miguel Revetria, [email protected]

@Xmartlabs

xlmediazoom's People

Contributors

m-revetria avatar mtnbarreto avatar xhzengaib avatar

Watchers

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