-
Notifications
You must be signed in to change notification settings - Fork 40
/
GUIPlayerView.podspec
39 lines (32 loc) · 2.01 KB
/
GUIPlayerView.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Pod::Spec.new do |s|
s.name = "GUIPlayerView"
s.version = "0.0.4"
s.summary = "GUIPlayerView is a simple video player embedded into a UIView."
s.homepage = "https://github.com/guilhermearaujo/GUIPlayerView"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Guilherme Araújo" => "[email protected]" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/guilhermearaujo/GUIPlayerView.git", :tag => "0.0.4" }
s.source_files = "GUIPlayerView/Classes", "GUIPlayerView/Classes/**/*.{h,m}"
s.exclude_files = "GUIPlayerView/Classes/Exclude"
s.resources = "GUIPlayerView/Resources/*.png"
s.framework = "AVFoundation"
s.requires_arc = true
s.description = <<-DESC
GUIPlayerView implements a simple video player using AVPlayer.
To use it, you must create a GUIPlayerView object and add it as a subview to your desired view.
Then set the property `videoURL` and call `prepareAndPlayAutomatically:`.
If you decide not to play automatically, you can leave for the user to press Play, or you can do it programmatically by calling `play`.
Once you're done playing the video, you may want to remove it from your view. To do so, just call the method `clean` and everything will be released, and the player view will be removed from its superview.
There are several optional delegate methods you can use:
* `- (void)playerDidPause;`
* `- (void)playerDidResume;`
* `- (void)playerDidEndPlaying;`
* `- (void)playerWillEnterFullscreen;`
* `- (void)playerDidEnterFullscreen;`
* `- (void)playerWillLeaveFullscreen;`
* `- (void)playerDidLeaveFullscreen;`
* `- (void)playerFailedToPlayToEnd;`
* `- (void)playerStalled;`
DESC
end