TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2016 |
Maintained by Samuel Défago, Pierre-Yves Bertholon.
Depends on: | |
libextobjc/EXTScope | ~> 0.4.1 |
TransitionKit | ~> 2.2.0 |
The SRG Media Player library for iOS provides a simple way to add a universal audio / video player to any application. It provides:
The library is suitable for applications running on iOS 8 and above.
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.
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;
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.
To test what the library is capable of, try running the associated demo by opening the workspace and building the associated scheme.
See the LICENSE file for more information.