All Projects → younatics → Mediabrowser

younatics / Mediabrowser

Licence: mit
🏞 A simple iOS photo and video browser with optional grid view, captions and selections written in Swift5.0

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Mediabrowser

Axphotoviewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos.
Stars: ✭ 544 (-6.04%)
Mutual labels:  photo, gallery
photos
"Fx Fotos" is an opensource gallery app in react native with the same smoothness and features of Google Photos and Apple Photos. It is backend gnostic and connects to decentralized backends like "box", "Dfinity", "Filecoin" and "Crust".
Stars: ✭ 620 (+7.08%)
Mutual labels:  gallery, photo
Photos
📸 Your memories under your control
Stars: ✭ 157 (-72.88%)
Mutual labels:  media, gallery
Ptimagealbumviewcontroller
"Image Album" — or "Photo Album" if you like that better — View( Controller) for all crazy iOS developers out there...
Stars: ✭ 199 (-65.63%)
Mutual labels:  photo, gallery
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+532.3%)
Mutual labels:  photo, gallery
Laravel Filemanager Example 5.3
Demo integration for laravel-filemanager (https://github.com/UniSharp/laravel-filemanager).
Stars: ✭ 100 (-82.73%)
Mutual labels:  media, gallery
meiupic
简洁好用的多用户图片社区。
Stars: ✭ 165 (-71.5%)
Mutual labels:  gallery, photo
Telegramgallery
world level Gallery , from Telegram,Photo album selector,QQ style
Stars: ✭ 1,294 (+123.49%)
Mutual labels:  photo, gallery
Rxgalleryfinal
图片选择库,单选/多选、拍照、裁剪、压缩,自定义。包括视频选择和录制。
Stars: ✭ 2,798 (+383.25%)
Mutual labels:  photo, gallery
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (-91.02%)
Mutual labels:  gallery, photo
Gallery shell
📷 Bash Script to generate static responsive image web galleries.
Stars: ✭ 198 (-65.8%)
Mutual labels:  photo, gallery
Imagestore
Open source google photos alternative!
Stars: ✭ 429 (-25.91%)
Mutual labels:  media, photo
Stfalconimageviewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures
Stars: ✭ 1,734 (+199.48%)
Mutual labels:  photo, gallery
Mediaselector
Android图片选择器,仿微信相册图片选择器,支持自定义!
Stars: ✭ 115 (-80.14%)
Mutual labels:  media, photo
React Siema
ReactSiema Demo
Stars: ✭ 90 (-84.46%)
Mutual labels:  photo, gallery
Atgmediabrowser
Image slide-show viewer with multiple predefined transition styles, with ability to create new transitions with ease.
Stars: ✭ 186 (-67.88%)
Mutual labels:  media, photo
Photonix
This is a new web-based photo management application. Run it on your home server and it will let you find the right photo from your collection on any device. Smart filtering is made possible by object recognition, location awareness, color analysis and other ML algorithms.
Stars: ✭ 592 (+2.25%)
Mutual labels:  photo, gallery
Imageviewer.swift
An easy to use Image Viewer that is inspired by Facebook
Stars: ✭ 1,071 (+84.97%)
Mutual labels:  photo, gallery
gephi twitter media downloader
A small script designed to take either a .csv of Tweet ids, or the export from Gephi's TwitterStreamingImporter Plugin and download related Tweet media.
Stars: ✭ 41 (-92.92%)
Mutual labels:  media, photo
Ptshowcaseviewcontroller
An initial implementation of a "showcase" view( controller) for iOS apps... Visualizes images, videos and PDF files beautifully! (by @pittleorg) [meta: image, photo, video, document, pdf, album, gallery, showcase, gallery, iOS, iPhone, iPad, component, library, viewer]
Stars: ✭ 395 (-31.78%)
Mutual labels:  photo, gallery

title

License: MIT Swift iOS 8.1+ travis CocoaPods CocoaDocs Carthage ReadMe-KR

Introduction

🏞 MediaBrowser can display one or more images or videos by providing either UIImage objects, PHAsset objects, or URLs to library assets, web images/videos or local files. MediaBrowser handles the downloading and caching of photos from the web seamlessly. Photos can be zoomed and panned, and optional (customisable) captions can be displayed. This can also be used to allow the user to select one or more photos using either the grid or main image view.

Also, MediaBrowser use latest SDWebImage version for caching, motivated by MWPhotoBrowser

Single Photo Multiple Photos And Video
SinglePhoto MultiplePhotosAndVideo
Multiple Photo Grid Multiple Photo Selection
MultiplePhotoGrid PhotoSelection
Web Photos Web Photos Grid
WebPhotos WebPhotoGrid

Requirements

MediaBrowser is written in Swift 5.0 Compatible with iOS 8.0+

Usage

Basic

Get MediaBrowser and set MediaBrowserDelegate

let browser = MediaBrowser(delegate: self)
self.navigationController?.pushViewController(browser, animated: true)

//MediaBrowserDelegate
func numberOfMedia(in mediaBrowser: MediaBrowser) -> Int {
  return mediaArray.count
}
    
func media(for mediaBrowser: MediaBrowser, at index: Int) -> Media {
  if index < mediaArray.count {
    return mediaArray[index]
  }
  return DemoData.localMediaPhoto(imageName: "MotionBookIcon", caption: "Photo at index is Wrong")
}

Advanced

CocoaDocs is the best place to start!

You can also see all usage in demo project.

Property Type
navigationBarTranslucent Bool
navigationBarTextColor UIColor
navigationBarTintColor UIColor
statusBarStyle UIStatusBarStyle
toolbarTextColor UIColor
toolbarBarTintColor UIColor
toolbarBackgroundColor UIColor
hasBelongedToViewController Bool
isVCBasedStatusBarAppearance Bool
statusBarShouldBeHidden Bool
displayActionButton Bool
leaveStatusBarAlone Bool
performingLayout Bool
rotating Bool
viewIsActive Bool
didSavePreviousStateOfNavBar Bool
skipNextPagingScrollViewPositioning Bool
viewHasAppearedInitially Bool
currentGridContentOffset CGPoint
zoomPhotosToFill Bool
displayMediaNavigationArrows Bool
displaySelectionButtons Bool
alwaysShowControls Bool
enableGrid Bool
enableSwipeToDismiss Bool
startOnGrid Bool
autoPlayOnAppear Bool
hideControlsOnStartup Bool
delayToHideElements TimeInterval
captionAlpha CGFloat
toolbarAlpha CGFloat
loadingIndicatorInnerRingColor UIColor
loadingIndicatorOuterRingColor UIColor
loadingIndicatorInnerRingWidth CGFloat
loadingIndicatorOuterRingWidth CGFloat
loadingIndicatorFont UIFont
loadingIndicatorFontColor UIColor
loadingIndicatorShouldShowValueText Bool
mediaSelectedOnIcon UIImage?
mediaSelectedOffIcon UIImage?
mediaSelectedGridOnIcon UIImage?
mediaSelectedGridOffIcon UIImage?
preCachingEnabled Bool
cachingImageCount Int
placeholderImage (image: UIImage, isAppliedForAll: Bool)?
Method Explanation
setCurrentIndex(at index: Int) Set current indexPath when start. Also, set first before preCachingEnabled
Delegate Explanation
func numberOfMedia(in mediaBrowser: MediaBrowser) -> Int Required protocol to use MediaBrowser. return media count
func media(for mediaBrowser: MediaBrowser, at index: Int) -> Media Required protocol to use MediaBrowser. return media
func mediaBrowserDidFinishModalPresentation(mediaBrowser: MediaBrowser) Optional protocol to mediaBrowser Did Finish Modal Presentation
func thumbnail(for mediaBrowser: MediaBrowser, at index: Int) -> Media Optional protocol to show thumbnail. return media. Recommand small size
func captionView(for mediaBrowser: MediaBrowser, at index: Int) -> MediaCaptionView? Optional protocol to show captionView. return MediaCaptionView.
func didDisplayMedia(at index: Int, in mediaBrowser: MediaBrowser) Optional protocol when need callback
func actionButtonPressed(at photoIndex: Int, in mediaBrowser: MediaBrowser) Optional protocol when need callback about action button
func isMediaSelected(at index: Int, in mediaBrowser: MediaBrowser) -> Bool Optional protocol when need callback about isMediaSelected
func mediaDid(selected: Bool, at index: Int, in mediaBrowser: MediaBrowser) Optional protocol when need callback about media selection
func title(for mediaBrowser: MediaBrowser, at index: Int) -> String? Optional protocol for title

Installation

Cocoapods

pod 'MediaBrowser'

Carthage

github "younatics/MediaBrowser"

References

Please tell me or make pull request if you use this library in your application :)

Updates

See CHANGELOG for details

Author

younatics Twitter

License

MediaBrowser is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].