Giter VIP home page Giter VIP logo

srgmediaplayer-ios's Introduction

SRG Media Player logo

About

The SRG Media Player library for iOS provides a simple way to add a universal audio / video player to any application. It provides:

  • A default player with the same look & feel as the standard iOS player, and automatic support for picture in picture for compatible devices
  • A set of overlays which can be combined to create the user interface you need
  • Support for segments. Those are simply sections of a video, defined by non-overlapping time ranges, which can be blocked or hidden
  • Support for DVR streams
  • Ability to use several instances of the player at the same time

Compatibility

The library is suitable for applications running on iOS 8 and above.

Installation

The library can be added to a project using CocoaPods version 1.0 or above by adding the SRGMediaPlayer dependency to its Podfile:

pod 'SRGMediaPlayer', '<version>'

For more information about CocoaPods and the Podfile, please refer to the official documentation.

Usage

Usage from Objective-C source files

Import the global header file using

#import <SRGMediaPlayer/SRGMediaPlayer.h>

You can similarly import individual files, e.g.

#import <SRGMediaPlayer/RTSMediaPlayerViewController.h>

It you use CocoaPods with the use_frameworks! directive, it is easier to import the SRGMediaPlayer module itself where needed:

@import SRGMediaPlayer;

Usage from Swift source files

If you installed SRGMediaPlayer with CocoaPods but without the use_frameworks! directive, import the global header from a bridging header:

#import <SRGMediaPlayer/SRGMediaPlayer.h>

If you use CocoaPods with the use_frameworks! directive, the SRGMediaPlayer module can be imported where needed:

import SRGMediaPlayer

To learn about how the library can be used, have a look at the getting started guide.

Demo project

To test what the library is capable of, try running the associated demo by opening the workspace and building the associated scheme.

License

See the LICENSE file for more information.

srgmediaplayer-ios's People

Contributors

defagos avatar onekiloparsec avatar pyby avatar

Watchers

James Cloos avatar JustFaker 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.