Git Product home page Git Product logo

swiftyoutubefloatingplayer's Introduction

YouTubePlayerSwift

A Swift floating/draggable player like YouTube that remains on top of all screens until it's removed. Based on PlayerView and DraggableYoutubeFloatingVideo.

Requirements

Currently YTF view is only supported on applications supporting only portrait orientations. To implement that you must put this in your AppDelegate:

func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask {
    return UIInterfaceOrientationMask.Portrait
}

Screen Cast

SwiftYouTubeFloatingPlayer

Installation

Copy Classes and Resources folders to your project.

Usage

Pass a NSURL or [NSURL], customize the tableView on YTF view adopting delegate and dataSource in your ViewController before passing them as parameters and also provide a nib for cell customization:

YTFPlayer.initYTF(urls, tableCellNibName: "MyCell", delegate: self, dataSource: self)

Show YTF view passing a ViewController:

YTFPlayer.showYTFView(self)

Remove YTF view animated(true) or not(false):

YTFPlayer.finishYTFView(true)

Author

souana, [email protected]

License

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

swiftyoutubefloatingplayer's People

Contributors

iamanap avatar

Stargazers

Md Khaled Hasan Manna avatar Toseef Khilji avatar Gordon Ahn avatar Vladislav Kondrashkov avatar Rufat Babayev avatar  avatar  avatar Numan Ayhan avatar Muhammad Sayed avatar Tiago Braga avatar mtbhiro avatar Hyunjin avatar  avatar LaiBit avatar samir avatar Weiran Zhang avatar Weihan avatar Benzamin Basher avatar Guillermo Zafra avatar Harrison Senesac avatar Lachlan avatar Thanh Nguyen avatar Isuru Nanayakkara avatar Samira avatar Toremurat Zholayev avatar Furkan Hatipoglu avatar Mehmet Kerem Keskin avatar Orazz avatar Kundan Jadhav avatar Hyuntak Joo avatar Jeremy Bader avatar Anas Salman avatar Ümit Sevim avatar Fady H avatar Auree Aubert avatar Foti Dim avatar Paul Ulric avatar yeswanth varma kanumuri avatar Roman Elizarov avatar Eric avatar Ram avatar Thanh Tran avatar dakeshi avatar

Watchers

Eric avatar  avatar James Cloos avatar Anas Salman avatar  avatar  avatar Lachlan avatar Toremurat Zholayev avatar

swiftyoutubefloatingplayer's Issues

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.