├── .gitignore
├── LICENSE
├── README.md
├── ZQFVLCMoviePlayer.xcodeproj
├── project.pbxproj
└── project.xcworkspace
│ └── contents.xcworkspacedata
├── ZQFVLCMoviePlayer
├── AppDelegate.h
├── AppDelegate.m
├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── Brand Assets.launchimage
│ │ └── Contents.json
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
├── Info.plist
├── ViewController.h
├── ViewController.m
├── ZQFVLCMoviePlayerClass
│ ├── Assets
│ │ ├── ZQFVideoPlayer_close.png
│ │ ├── ZQFVideoPlayer_close@2x.png
│ │ ├── ZQFVideoPlayer_cross.png
│ │ ├── ZQFVideoPlayer_cross@2x.png
│ │ ├── ZQFVideoPlayer_fastback.png
│ │ ├── ZQFVideoPlayer_fastback@2x.png
│ │ ├── ZQFVideoPlayer_fastfarword.png
│ │ ├── ZQFVideoPlayer_fastfarword@2x.png
│ │ ├── ZQFVideoPlayer_next.png
│ │ ├── ZQFVideoPlayer_next@2x.png
│ │ ├── ZQFVideoPlayer_pause.png
│ │ ├── ZQFVideoPlayer_pause@2x.png
│ │ ├── ZQFVideoPlayer_pause_big.png
│ │ ├── ZQFVideoPlayer_pause_big@2x.png
│ │ ├── ZQFVideoPlayer_play.png
│ │ ├── ZQFVideoPlayer_play@2x.png
│ │ ├── ZQFVideoPlayer_play_big.png
│ │ ├── ZQFVideoPlayer_play_big@2x.png
│ │ ├── ZQFVideoPlayer_rewind.png
│ │ ├── ZQFVideoPlayer_rewind@2x.png
│ │ ├── ZQFVideoPlayer_zoom_in.png
│ │ ├── ZQFVideoPlayer_zoom_in@2x.png
│ │ ├── ZQFVideoPlayer_zoom_out.png
│ │ └── ZQFVideoPlayer_zoom_out@2x.png
│ ├── ZQFVLCPlayerViewController.h
│ ├── ZQFVLCPlayerViewController.m
│ └── ZQFVLCPlayerViewController.xib
└── main.m
└── ZQFVLCMoviePlayerTests
├── Info.plist
└── ZQFVLCMoviePlayerTests.m
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata
19 |
20 | ## Other
21 | *.xccheckout
22 | *.moved-aside
23 | *.xcuserstate
24 | *.xcscmblueprint
25 |
26 | ## Obj-C/Swift specific
27 | *.hmap
28 | *.ipa
29 |
30 | # CocoaPods
31 | #
32 | # We recommend against adding the Pods directory to your .gitignore. However
33 | # you should judge for yourself, the pros and cons are mentioned at:
34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
35 | #
36 | # Pods/
37 |
38 | # Carthage
39 | #
40 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
41 | # Carthage/Checkouts
42 |
43 | Carthage/Build
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
51 |
52 | fastlane/report.xml
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 小福子
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ZQFVLCMoviePlayer
2 | 用VLCKit封装集成的播放器
3 | 由于MobileVLCKit.framework 太大了,所以把MobileVLCKit.framework 放到了百度云上,下载地址是: [http://pan.baidu.com/s/1i4KKYR7](http://pan.baidu.com/s/1i4KKYR7)
4 | 下载之后请将MobileVLCKit.framework解压到工程ZQFVLCMoviePlayerClass目录下
5 | 作者的博客是:[http://blog.csdn.net/techfu](http://blog.csdn.net/techfu)也欢迎大家参观
6 |
7 |
8 | 如果你觉得本播放器帮助了你,别忘了star哦。
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0FE8CA7E1CBCA640006E101C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA7D1CBCA640006E101C /* CoreGraphics.framework */; };
11 | 0FE8CA821CBCA657006E101C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA811CBCA657006E101C /* AudioToolbox.framework */; };
12 | 0FE8CA841CBCA661006E101C /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA831CBCA661006E101C /* OpenGLES.framework */; };
13 | 0FE8CA861CBCA669006E101C /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA851CBCA669006E101C /* CFNetwork.framework */; };
14 | 0FE8CA881CBCA671006E101C /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA871CBCA671006E101C /* CoreText.framework */; };
15 | 0FE8CA8A1CBCA678006E101C /* libbz2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA891CBCA678006E101C /* libbz2.tbd */; };
16 | 0FE8CA8C1CBCA67F006E101C /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA8B1CBCA67F006E101C /* libiconv.tbd */; };
17 | 0FE8CA8E1CBCA686006E101C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA8D1CBCA686006E101C /* QuartzCore.framework */; };
18 | 0FE8CA901CBCA691006E101C /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA8F1CBCA691006E101C /* MediaPlayer.framework */; };
19 | 0FE8CA921CBCA69B006E101C /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA911CBCA69B006E101C /* AVFoundation.framework */; };
20 | 0FE8CA941CBCA6A3006E101C /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA931CBCA6A3006E101C /* Security.framework */; };
21 | 0FE8CA961CBCA6B0006E101C /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA951CBCA6B0006E101C /* libc++.tbd */; };
22 | 0FE8CA981CBCA6B7006E101C /* VideoToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA971CBCA6B7006E101C /* VideoToolbox.framework */; };
23 | 0FE8CA9A1CBCA6C4006E101C /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA991CBCA6C4006E101C /* CoreMedia.framework */; };
24 | 0FE8CA9C1CBCA6CA006E101C /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FE8CA9B1CBCA6CA006E101C /* CoreVideo.framework */; };
25 | 0FEB02011CBB58D500266900 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB02001CBB58D500266900 /* main.m */; };
26 | 0FEB02041CBB58D500266900 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB02031CBB58D500266900 /* AppDelegate.m */; };
27 | 0FEB02071CBB58D500266900 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB02061CBB58D500266900 /* ViewController.m */; };
28 | 0FEB020A1CBB58D500266900 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02081CBB58D500266900 /* Main.storyboard */; };
29 | 0FEB020C1CBB58D500266900 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB020B1CBB58D500266900 /* Assets.xcassets */; };
30 | 0FEB020F1CBB58D500266900 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB020D1CBB58D500266900 /* LaunchScreen.storyboard */; };
31 | 0FEB021A1CBB58D500266900 /* ZQFVLCMoviePlayerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB02191CBB58D500266900 /* ZQFVLCMoviePlayerTests.m */; };
32 | 0FEB023A1CBB5ABE00266900 /* ZQFVideoPlayer_close.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02261CBB5ABE00266900 /* ZQFVideoPlayer_close.png */; };
33 | 0FEB023B1CBB5ABE00266900 /* ZQFVideoPlayer_close@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02271CBB5ABE00266900 /* ZQFVideoPlayer_close@2x.png */; };
34 | 0FEB023C1CBB5ABE00266900 /* ZQFVideoPlayer_cross.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02281CBB5ABE00266900 /* ZQFVideoPlayer_cross.png */; };
35 | 0FEB023D1CBB5ABE00266900 /* ZQFVideoPlayer_cross@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02291CBB5ABE00266900 /* ZQFVideoPlayer_cross@2x.png */; };
36 | 0FEB023E1CBB5ABE00266900 /* ZQFVideoPlayer_next.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022A1CBB5ABE00266900 /* ZQFVideoPlayer_next.png */; };
37 | 0FEB023F1CBB5ABE00266900 /* ZQFVideoPlayer_next@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022B1CBB5ABE00266900 /* ZQFVideoPlayer_next@2x.png */; };
38 | 0FEB02401CBB5ABE00266900 /* ZQFVideoPlayer_pause.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022C1CBB5ABE00266900 /* ZQFVideoPlayer_pause.png */; };
39 | 0FEB02411CBB5ABE00266900 /* ZQFVideoPlayer_pause@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022D1CBB5ABE00266900 /* ZQFVideoPlayer_pause@2x.png */; };
40 | 0FEB02421CBB5ABE00266900 /* ZQFVideoPlayer_pause_big.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022E1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big.png */; };
41 | 0FEB02431CBB5ABE00266900 /* ZQFVideoPlayer_pause_big@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB022F1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big@2x.png */; };
42 | 0FEB02441CBB5ABE00266900 /* ZQFVideoPlayer_play.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02301CBB5ABE00266900 /* ZQFVideoPlayer_play.png */; };
43 | 0FEB02451CBB5ABE00266900 /* ZQFVideoPlayer_play@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02311CBB5ABE00266900 /* ZQFVideoPlayer_play@2x.png */; };
44 | 0FEB02461CBB5ABE00266900 /* ZQFVideoPlayer_play_big.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02321CBB5ABE00266900 /* ZQFVideoPlayer_play_big.png */; };
45 | 0FEB02471CBB5ABE00266900 /* ZQFVideoPlayer_play_big@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02331CBB5ABE00266900 /* ZQFVideoPlayer_play_big@2x.png */; };
46 | 0FEB02481CBB5ABE00266900 /* ZQFVideoPlayer_rewind.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02341CBB5ABE00266900 /* ZQFVideoPlayer_rewind.png */; };
47 | 0FEB02491CBB5ABE00266900 /* ZQFVideoPlayer_rewind@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02351CBB5ABE00266900 /* ZQFVideoPlayer_rewind@2x.png */; };
48 | 0FEB024A1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02361CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in.png */; };
49 | 0FEB024B1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02371CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in@2x.png */; };
50 | 0FEB024C1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02381CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out.png */; };
51 | 0FEB024D1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02391CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out@2x.png */; };
52 | 0FEB02511CBB5AE400266900 /* ZQFVLCPlayerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB024F1CBB5AE400266900 /* ZQFVLCPlayerViewController.m */; };
53 | 0FEB02521CBB5AE400266900 /* ZQFVLCPlayerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02501CBB5AE400266900 /* ZQFVLCPlayerViewController.xib */; };
54 | 0FEB02571CBB8D3300266900 /* ZQFVideoPlayer_fastback.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02531CBB8D3300266900 /* ZQFVideoPlayer_fastback.png */; };
55 | 0FEB02581CBB8D3300266900 /* ZQFVideoPlayer_fastback@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02541CBB8D3300266900 /* ZQFVideoPlayer_fastback@2x.png */; };
56 | 0FEB02591CBB8D3300266900 /* ZQFVideoPlayer_fastfarword.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02551CBB8D3300266900 /* ZQFVideoPlayer_fastfarword.png */; };
57 | 0FEB025A1CBB8D3300266900 /* ZQFVideoPlayer_fastfarword@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 0FEB02561CBB8D3300266900 /* ZQFVideoPlayer_fastfarword@2x.png */; };
58 | 0FEB025C1CBBB34B00266900 /* MobileVLCKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FEB025B1CBBB34B00266900 /* MobileVLCKit.framework */; };
59 | /* End PBXBuildFile section */
60 |
61 | /* Begin PBXContainerItemProxy section */
62 | 0FEB02161CBB58D500266900 /* PBXContainerItemProxy */ = {
63 | isa = PBXContainerItemProxy;
64 | containerPortal = 0FEB01F41CBB58D500266900 /* Project object */;
65 | proxyType = 1;
66 | remoteGlobalIDString = 0FEB01FB1CBB58D500266900;
67 | remoteInfo = ZQFVLCMoviePlayer;
68 | };
69 | /* End PBXContainerItemProxy section */
70 |
71 | /* Begin PBXFileReference section */
72 | 0FE8CA7D1CBCA640006E101C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
73 | 0FE8CA7F1CBCA64F006E101C /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = System/Library/Frameworks/AudioUnit.framework; sourceTree = SDKROOT; };
74 | 0FE8CA811CBCA657006E101C /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
75 | 0FE8CA831CBCA661006E101C /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
76 | 0FE8CA851CBCA669006E101C /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
77 | 0FE8CA871CBCA671006E101C /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
78 | 0FE8CA891CBCA678006E101C /* libbz2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libbz2.tbd; path = usr/lib/libbz2.tbd; sourceTree = SDKROOT; };
79 | 0FE8CA8B1CBCA67F006E101C /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };
80 | 0FE8CA8D1CBCA686006E101C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
81 | 0FE8CA8F1CBCA691006E101C /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
82 | 0FE8CA911CBCA69B006E101C /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
83 | 0FE8CA931CBCA6A3006E101C /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
84 | 0FE8CA951CBCA6B0006E101C /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
85 | 0FE8CA971CBCA6B7006E101C /* VideoToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = VideoToolbox.framework; path = System/Library/Frameworks/VideoToolbox.framework; sourceTree = SDKROOT; };
86 | 0FE8CA991CBCA6C4006E101C /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
87 | 0FE8CA9B1CBCA6CA006E101C /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; };
88 | 0FEB01FC1CBB58D500266900 /* ZQFVLCMoviePlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZQFVLCMoviePlayer.app; sourceTree = BUILT_PRODUCTS_DIR; };
89 | 0FEB02001CBB58D500266900 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
90 | 0FEB02021CBB58D500266900 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
91 | 0FEB02031CBB58D500266900 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
92 | 0FEB02051CBB58D500266900 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
93 | 0FEB02061CBB58D500266900 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
94 | 0FEB02091CBB58D500266900 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
95 | 0FEB020B1CBB58D500266900 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
96 | 0FEB020E1CBB58D500266900 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
97 | 0FEB02101CBB58D500266900 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
98 | 0FEB02151CBB58D500266900 /* ZQFVLCMoviePlayerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ZQFVLCMoviePlayerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
99 | 0FEB02191CBB58D500266900 /* ZQFVLCMoviePlayerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZQFVLCMoviePlayerTests.m; sourceTree = ""; };
100 | 0FEB021B1CBB58D500266900 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
101 | 0FEB02261CBB5ABE00266900 /* ZQFVideoPlayer_close.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_close.png; sourceTree = ""; };
102 | 0FEB02271CBB5ABE00266900 /* ZQFVideoPlayer_close@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_close@2x.png"; sourceTree = ""; };
103 | 0FEB02281CBB5ABE00266900 /* ZQFVideoPlayer_cross.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_cross.png; sourceTree = ""; };
104 | 0FEB02291CBB5ABE00266900 /* ZQFVideoPlayer_cross@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_cross@2x.png"; sourceTree = ""; };
105 | 0FEB022A1CBB5ABE00266900 /* ZQFVideoPlayer_next.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_next.png; sourceTree = ""; };
106 | 0FEB022B1CBB5ABE00266900 /* ZQFVideoPlayer_next@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_next@2x.png"; sourceTree = ""; };
107 | 0FEB022C1CBB5ABE00266900 /* ZQFVideoPlayer_pause.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_pause.png; sourceTree = ""; };
108 | 0FEB022D1CBB5ABE00266900 /* ZQFVideoPlayer_pause@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_pause@2x.png"; sourceTree = ""; };
109 | 0FEB022E1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_pause_big.png; sourceTree = ""; };
110 | 0FEB022F1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_pause_big@2x.png"; sourceTree = ""; };
111 | 0FEB02301CBB5ABE00266900 /* ZQFVideoPlayer_play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_play.png; sourceTree = ""; };
112 | 0FEB02311CBB5ABE00266900 /* ZQFVideoPlayer_play@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_play@2x.png"; sourceTree = ""; };
113 | 0FEB02321CBB5ABE00266900 /* ZQFVideoPlayer_play_big.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_play_big.png; sourceTree = ""; };
114 | 0FEB02331CBB5ABE00266900 /* ZQFVideoPlayer_play_big@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_play_big@2x.png"; sourceTree = ""; };
115 | 0FEB02341CBB5ABE00266900 /* ZQFVideoPlayer_rewind.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_rewind.png; sourceTree = ""; };
116 | 0FEB02351CBB5ABE00266900 /* ZQFVideoPlayer_rewind@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_rewind@2x.png"; sourceTree = ""; };
117 | 0FEB02361CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_zoom_in.png; sourceTree = ""; };
118 | 0FEB02371CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_zoom_in@2x.png"; sourceTree = ""; };
119 | 0FEB02381CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_zoom_out.png; sourceTree = ""; };
120 | 0FEB02391CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_zoom_out@2x.png"; sourceTree = ""; };
121 | 0FEB024E1CBB5AE400266900 /* ZQFVLCPlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZQFVLCPlayerViewController.h; sourceTree = ""; };
122 | 0FEB024F1CBB5AE400266900 /* ZQFVLCPlayerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZQFVLCPlayerViewController.m; sourceTree = ""; };
123 | 0FEB02501CBB5AE400266900 /* ZQFVLCPlayerViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ZQFVLCPlayerViewController.xib; sourceTree = ""; };
124 | 0FEB02531CBB8D3300266900 /* ZQFVideoPlayer_fastback.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_fastback.png; sourceTree = ""; };
125 | 0FEB02541CBB8D3300266900 /* ZQFVideoPlayer_fastback@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_fastback@2x.png"; sourceTree = ""; };
126 | 0FEB02551CBB8D3300266900 /* ZQFVideoPlayer_fastfarword.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ZQFVideoPlayer_fastfarword.png; sourceTree = ""; };
127 | 0FEB02561CBB8D3300266900 /* ZQFVideoPlayer_fastfarword@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "ZQFVideoPlayer_fastfarword@2x.png"; sourceTree = ""; };
128 | 0FEB025B1CBBB34B00266900 /* MobileVLCKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MobileVLCKit.framework; sourceTree = ""; };
129 | /* End PBXFileReference section */
130 |
131 | /* Begin PBXFrameworksBuildPhase section */
132 | 0FEB01F91CBB58D500266900 /* Frameworks */ = {
133 | isa = PBXFrameworksBuildPhase;
134 | buildActionMask = 2147483647;
135 | files = (
136 | 0FE8CA9C1CBCA6CA006E101C /* CoreVideo.framework in Frameworks */,
137 | 0FE8CA9A1CBCA6C4006E101C /* CoreMedia.framework in Frameworks */,
138 | 0FE8CA981CBCA6B7006E101C /* VideoToolbox.framework in Frameworks */,
139 | 0FE8CA961CBCA6B0006E101C /* libc++.tbd in Frameworks */,
140 | 0FE8CA941CBCA6A3006E101C /* Security.framework in Frameworks */,
141 | 0FE8CA921CBCA69B006E101C /* AVFoundation.framework in Frameworks */,
142 | 0FE8CA901CBCA691006E101C /* MediaPlayer.framework in Frameworks */,
143 | 0FE8CA8E1CBCA686006E101C /* QuartzCore.framework in Frameworks */,
144 | 0FE8CA8C1CBCA67F006E101C /* libiconv.tbd in Frameworks */,
145 | 0FE8CA8A1CBCA678006E101C /* libbz2.tbd in Frameworks */,
146 | 0FE8CA881CBCA671006E101C /* CoreText.framework in Frameworks */,
147 | 0FE8CA861CBCA669006E101C /* CFNetwork.framework in Frameworks */,
148 | 0FE8CA841CBCA661006E101C /* OpenGLES.framework in Frameworks */,
149 | 0FE8CA821CBCA657006E101C /* AudioToolbox.framework in Frameworks */,
150 | 0FE8CA7E1CBCA640006E101C /* CoreGraphics.framework in Frameworks */,
151 | 0FEB025C1CBBB34B00266900 /* MobileVLCKit.framework in Frameworks */,
152 | );
153 | runOnlyForDeploymentPostprocessing = 0;
154 | };
155 | 0FEB02121CBB58D500266900 /* Frameworks */ = {
156 | isa = PBXFrameworksBuildPhase;
157 | buildActionMask = 2147483647;
158 | files = (
159 | );
160 | runOnlyForDeploymentPostprocessing = 0;
161 | };
162 | /* End PBXFrameworksBuildPhase section */
163 |
164 | /* Begin PBXGroup section */
165 | 0FE8CA7C1CBCA623006E101C /* Frameworks */ = {
166 | isa = PBXGroup;
167 | children = (
168 | 0FE8CA9B1CBCA6CA006E101C /* CoreVideo.framework */,
169 | 0FE8CA991CBCA6C4006E101C /* CoreMedia.framework */,
170 | 0FE8CA971CBCA6B7006E101C /* VideoToolbox.framework */,
171 | 0FE8CA951CBCA6B0006E101C /* libc++.tbd */,
172 | 0FE8CA931CBCA6A3006E101C /* Security.framework */,
173 | 0FE8CA911CBCA69B006E101C /* AVFoundation.framework */,
174 | 0FE8CA8F1CBCA691006E101C /* MediaPlayer.framework */,
175 | 0FE8CA8D1CBCA686006E101C /* QuartzCore.framework */,
176 | 0FE8CA8B1CBCA67F006E101C /* libiconv.tbd */,
177 | 0FE8CA891CBCA678006E101C /* libbz2.tbd */,
178 | 0FE8CA871CBCA671006E101C /* CoreText.framework */,
179 | 0FE8CA851CBCA669006E101C /* CFNetwork.framework */,
180 | 0FE8CA831CBCA661006E101C /* OpenGLES.framework */,
181 | 0FE8CA811CBCA657006E101C /* AudioToolbox.framework */,
182 | 0FE8CA7F1CBCA64F006E101C /* AudioUnit.framework */,
183 | 0FE8CA7D1CBCA640006E101C /* CoreGraphics.framework */,
184 | );
185 | name = Frameworks;
186 | sourceTree = "";
187 | };
188 | 0FEB01F31CBB58D500266900 = {
189 | isa = PBXGroup;
190 | children = (
191 | 0FE8CA7C1CBCA623006E101C /* Frameworks */,
192 | 0FEB01FE1CBB58D500266900 /* ZQFVLCMoviePlayer */,
193 | 0FEB02181CBB58D500266900 /* ZQFVLCMoviePlayerTests */,
194 | 0FEB01FD1CBB58D500266900 /* Products */,
195 | );
196 | sourceTree = "";
197 | };
198 | 0FEB01FD1CBB58D500266900 /* Products */ = {
199 | isa = PBXGroup;
200 | children = (
201 | 0FEB01FC1CBB58D500266900 /* ZQFVLCMoviePlayer.app */,
202 | 0FEB02151CBB58D500266900 /* ZQFVLCMoviePlayerTests.xctest */,
203 | );
204 | name = Products;
205 | sourceTree = "";
206 | };
207 | 0FEB01FE1CBB58D500266900 /* ZQFVLCMoviePlayer */ = {
208 | isa = PBXGroup;
209 | children = (
210 | 0FEB02241CBB5ABE00266900 /* ZQFVLCMoviePlayerClass */,
211 | 0FEB02021CBB58D500266900 /* AppDelegate.h */,
212 | 0FEB02031CBB58D500266900 /* AppDelegate.m */,
213 | 0FEB02051CBB58D500266900 /* ViewController.h */,
214 | 0FEB02061CBB58D500266900 /* ViewController.m */,
215 | 0FEB02081CBB58D500266900 /* Main.storyboard */,
216 | 0FEB020B1CBB58D500266900 /* Assets.xcassets */,
217 | 0FEB020D1CBB58D500266900 /* LaunchScreen.storyboard */,
218 | 0FEB02101CBB58D500266900 /* Info.plist */,
219 | 0FEB01FF1CBB58D500266900 /* Supporting Files */,
220 | );
221 | path = ZQFVLCMoviePlayer;
222 | sourceTree = "";
223 | };
224 | 0FEB01FF1CBB58D500266900 /* Supporting Files */ = {
225 | isa = PBXGroup;
226 | children = (
227 | 0FEB02001CBB58D500266900 /* main.m */,
228 | );
229 | name = "Supporting Files";
230 | sourceTree = "";
231 | };
232 | 0FEB02181CBB58D500266900 /* ZQFVLCMoviePlayerTests */ = {
233 | isa = PBXGroup;
234 | children = (
235 | 0FEB02191CBB58D500266900 /* ZQFVLCMoviePlayerTests.m */,
236 | 0FEB021B1CBB58D500266900 /* Info.plist */,
237 | );
238 | path = ZQFVLCMoviePlayerTests;
239 | sourceTree = "";
240 | };
241 | 0FEB02241CBB5ABE00266900 /* ZQFVLCMoviePlayerClass */ = {
242 | isa = PBXGroup;
243 | children = (
244 | 0FEB025B1CBBB34B00266900 /* MobileVLCKit.framework */,
245 | 0FEB02251CBB5ABE00266900 /* Assets */,
246 | 0FEB024E1CBB5AE400266900 /* ZQFVLCPlayerViewController.h */,
247 | 0FEB024F1CBB5AE400266900 /* ZQFVLCPlayerViewController.m */,
248 | 0FEB02501CBB5AE400266900 /* ZQFVLCPlayerViewController.xib */,
249 | );
250 | path = ZQFVLCMoviePlayerClass;
251 | sourceTree = "";
252 | };
253 | 0FEB02251CBB5ABE00266900 /* Assets */ = {
254 | isa = PBXGroup;
255 | children = (
256 | 0FEB02531CBB8D3300266900 /* ZQFVideoPlayer_fastback.png */,
257 | 0FEB02541CBB8D3300266900 /* ZQFVideoPlayer_fastback@2x.png */,
258 | 0FEB02551CBB8D3300266900 /* ZQFVideoPlayer_fastfarword.png */,
259 | 0FEB02561CBB8D3300266900 /* ZQFVideoPlayer_fastfarword@2x.png */,
260 | 0FEB02261CBB5ABE00266900 /* ZQFVideoPlayer_close.png */,
261 | 0FEB02271CBB5ABE00266900 /* ZQFVideoPlayer_close@2x.png */,
262 | 0FEB02281CBB5ABE00266900 /* ZQFVideoPlayer_cross.png */,
263 | 0FEB02291CBB5ABE00266900 /* ZQFVideoPlayer_cross@2x.png */,
264 | 0FEB022A1CBB5ABE00266900 /* ZQFVideoPlayer_next.png */,
265 | 0FEB022B1CBB5ABE00266900 /* ZQFVideoPlayer_next@2x.png */,
266 | 0FEB022C1CBB5ABE00266900 /* ZQFVideoPlayer_pause.png */,
267 | 0FEB022D1CBB5ABE00266900 /* ZQFVideoPlayer_pause@2x.png */,
268 | 0FEB022E1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big.png */,
269 | 0FEB022F1CBB5ABE00266900 /* ZQFVideoPlayer_pause_big@2x.png */,
270 | 0FEB02301CBB5ABE00266900 /* ZQFVideoPlayer_play.png */,
271 | 0FEB02311CBB5ABE00266900 /* ZQFVideoPlayer_play@2x.png */,
272 | 0FEB02321CBB5ABE00266900 /* ZQFVideoPlayer_play_big.png */,
273 | 0FEB02331CBB5ABE00266900 /* ZQFVideoPlayer_play_big@2x.png */,
274 | 0FEB02341CBB5ABE00266900 /* ZQFVideoPlayer_rewind.png */,
275 | 0FEB02351CBB5ABE00266900 /* ZQFVideoPlayer_rewind@2x.png */,
276 | 0FEB02361CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in.png */,
277 | 0FEB02371CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in@2x.png */,
278 | 0FEB02381CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out.png */,
279 | 0FEB02391CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out@2x.png */,
280 | );
281 | path = Assets;
282 | sourceTree = "";
283 | };
284 | /* End PBXGroup section */
285 |
286 | /* Begin PBXNativeTarget section */
287 | 0FEB01FB1CBB58D500266900 /* ZQFVLCMoviePlayer */ = {
288 | isa = PBXNativeTarget;
289 | buildConfigurationList = 0FEB021E1CBB58D500266900 /* Build configuration list for PBXNativeTarget "ZQFVLCMoviePlayer" */;
290 | buildPhases = (
291 | 0FEB01F81CBB58D500266900 /* Sources */,
292 | 0FEB01F91CBB58D500266900 /* Frameworks */,
293 | 0FEB01FA1CBB58D500266900 /* Resources */,
294 | );
295 | buildRules = (
296 | );
297 | dependencies = (
298 | );
299 | name = ZQFVLCMoviePlayer;
300 | productName = ZQFVLCMoviePlayer;
301 | productReference = 0FEB01FC1CBB58D500266900 /* ZQFVLCMoviePlayer.app */;
302 | productType = "com.apple.product-type.application";
303 | };
304 | 0FEB02141CBB58D500266900 /* ZQFVLCMoviePlayerTests */ = {
305 | isa = PBXNativeTarget;
306 | buildConfigurationList = 0FEB02211CBB58D500266900 /* Build configuration list for PBXNativeTarget "ZQFVLCMoviePlayerTests" */;
307 | buildPhases = (
308 | 0FEB02111CBB58D500266900 /* Sources */,
309 | 0FEB02121CBB58D500266900 /* Frameworks */,
310 | 0FEB02131CBB58D500266900 /* Resources */,
311 | );
312 | buildRules = (
313 | );
314 | dependencies = (
315 | 0FEB02171CBB58D500266900 /* PBXTargetDependency */,
316 | );
317 | name = ZQFVLCMoviePlayerTests;
318 | productName = ZQFVLCMoviePlayerTests;
319 | productReference = 0FEB02151CBB58D500266900 /* ZQFVLCMoviePlayerTests.xctest */;
320 | productType = "com.apple.product-type.bundle.unit-test";
321 | };
322 | /* End PBXNativeTarget section */
323 |
324 | /* Begin PBXProject section */
325 | 0FEB01F41CBB58D500266900 /* Project object */ = {
326 | isa = PBXProject;
327 | attributes = {
328 | LastUpgradeCheck = 0730;
329 | ORGANIZATIONNAME = zengqingfu;
330 | TargetAttributes = {
331 | 0FEB01FB1CBB58D500266900 = {
332 | CreatedOnToolsVersion = 7.3;
333 | };
334 | 0FEB02141CBB58D500266900 = {
335 | CreatedOnToolsVersion = 7.3;
336 | TestTargetID = 0FEB01FB1CBB58D500266900;
337 | };
338 | };
339 | };
340 | buildConfigurationList = 0FEB01F71CBB58D500266900 /* Build configuration list for PBXProject "ZQFVLCMoviePlayer" */;
341 | compatibilityVersion = "Xcode 3.2";
342 | developmentRegion = English;
343 | hasScannedForEncodings = 0;
344 | knownRegions = (
345 | en,
346 | Base,
347 | );
348 | mainGroup = 0FEB01F31CBB58D500266900;
349 | productRefGroup = 0FEB01FD1CBB58D500266900 /* Products */;
350 | projectDirPath = "";
351 | projectRoot = "";
352 | targets = (
353 | 0FEB01FB1CBB58D500266900 /* ZQFVLCMoviePlayer */,
354 | 0FEB02141CBB58D500266900 /* ZQFVLCMoviePlayerTests */,
355 | );
356 | };
357 | /* End PBXProject section */
358 |
359 | /* Begin PBXResourcesBuildPhase section */
360 | 0FEB01FA1CBB58D500266900 /* Resources */ = {
361 | isa = PBXResourcesBuildPhase;
362 | buildActionMask = 2147483647;
363 | files = (
364 | 0FEB024A1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in.png in Resources */,
365 | 0FEB020F1CBB58D500266900 /* LaunchScreen.storyboard in Resources */,
366 | 0FEB02411CBB5ABE00266900 /* ZQFVideoPlayer_pause@2x.png in Resources */,
367 | 0FEB02441CBB5ABE00266900 /* ZQFVideoPlayer_play.png in Resources */,
368 | 0FEB023A1CBB5ABE00266900 /* ZQFVideoPlayer_close.png in Resources */,
369 | 0FEB023F1CBB5ABE00266900 /* ZQFVideoPlayer_next@2x.png in Resources */,
370 | 0FEB020C1CBB58D500266900 /* Assets.xcassets in Resources */,
371 | 0FEB025A1CBB8D3300266900 /* ZQFVideoPlayer_fastfarword@2x.png in Resources */,
372 | 0FEB020A1CBB58D500266900 /* Main.storyboard in Resources */,
373 | 0FEB024C1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out.png in Resources */,
374 | 0FEB02521CBB5AE400266900 /* ZQFVLCPlayerViewController.xib in Resources */,
375 | 0FEB02451CBB5ABE00266900 /* ZQFVideoPlayer_play@2x.png in Resources */,
376 | 0FEB024D1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_out@2x.png in Resources */,
377 | 0FEB023B1CBB5ABE00266900 /* ZQFVideoPlayer_close@2x.png in Resources */,
378 | 0FEB02481CBB5ABE00266900 /* ZQFVideoPlayer_rewind.png in Resources */,
379 | 0FEB02491CBB5ABE00266900 /* ZQFVideoPlayer_rewind@2x.png in Resources */,
380 | 0FEB02461CBB5ABE00266900 /* ZQFVideoPlayer_play_big.png in Resources */,
381 | 0FEB023E1CBB5ABE00266900 /* ZQFVideoPlayer_next.png in Resources */,
382 | 0FEB02471CBB5ABE00266900 /* ZQFVideoPlayer_play_big@2x.png in Resources */,
383 | 0FEB02571CBB8D3300266900 /* ZQFVideoPlayer_fastback.png in Resources */,
384 | 0FEB023C1CBB5ABE00266900 /* ZQFVideoPlayer_cross.png in Resources */,
385 | 0FEB023D1CBB5ABE00266900 /* ZQFVideoPlayer_cross@2x.png in Resources */,
386 | 0FEB02421CBB5ABE00266900 /* ZQFVideoPlayer_pause_big.png in Resources */,
387 | 0FEB024B1CBB5ABE00266900 /* ZQFVideoPlayer_zoom_in@2x.png in Resources */,
388 | 0FEB02401CBB5ABE00266900 /* ZQFVideoPlayer_pause.png in Resources */,
389 | 0FEB02581CBB8D3300266900 /* ZQFVideoPlayer_fastback@2x.png in Resources */,
390 | 0FEB02431CBB5ABE00266900 /* ZQFVideoPlayer_pause_big@2x.png in Resources */,
391 | 0FEB02591CBB8D3300266900 /* ZQFVideoPlayer_fastfarword.png in Resources */,
392 | );
393 | runOnlyForDeploymentPostprocessing = 0;
394 | };
395 | 0FEB02131CBB58D500266900 /* Resources */ = {
396 | isa = PBXResourcesBuildPhase;
397 | buildActionMask = 2147483647;
398 | files = (
399 | );
400 | runOnlyForDeploymentPostprocessing = 0;
401 | };
402 | /* End PBXResourcesBuildPhase section */
403 |
404 | /* Begin PBXSourcesBuildPhase section */
405 | 0FEB01F81CBB58D500266900 /* Sources */ = {
406 | isa = PBXSourcesBuildPhase;
407 | buildActionMask = 2147483647;
408 | files = (
409 | 0FEB02071CBB58D500266900 /* ViewController.m in Sources */,
410 | 0FEB02511CBB5AE400266900 /* ZQFVLCPlayerViewController.m in Sources */,
411 | 0FEB02041CBB58D500266900 /* AppDelegate.m in Sources */,
412 | 0FEB02011CBB58D500266900 /* main.m in Sources */,
413 | );
414 | runOnlyForDeploymentPostprocessing = 0;
415 | };
416 | 0FEB02111CBB58D500266900 /* Sources */ = {
417 | isa = PBXSourcesBuildPhase;
418 | buildActionMask = 2147483647;
419 | files = (
420 | 0FEB021A1CBB58D500266900 /* ZQFVLCMoviePlayerTests.m in Sources */,
421 | );
422 | runOnlyForDeploymentPostprocessing = 0;
423 | };
424 | /* End PBXSourcesBuildPhase section */
425 |
426 | /* Begin PBXTargetDependency section */
427 | 0FEB02171CBB58D500266900 /* PBXTargetDependency */ = {
428 | isa = PBXTargetDependency;
429 | target = 0FEB01FB1CBB58D500266900 /* ZQFVLCMoviePlayer */;
430 | targetProxy = 0FEB02161CBB58D500266900 /* PBXContainerItemProxy */;
431 | };
432 | /* End PBXTargetDependency section */
433 |
434 | /* Begin PBXVariantGroup section */
435 | 0FEB02081CBB58D500266900 /* Main.storyboard */ = {
436 | isa = PBXVariantGroup;
437 | children = (
438 | 0FEB02091CBB58D500266900 /* Base */,
439 | );
440 | name = Main.storyboard;
441 | sourceTree = "";
442 | };
443 | 0FEB020D1CBB58D500266900 /* LaunchScreen.storyboard */ = {
444 | isa = PBXVariantGroup;
445 | children = (
446 | 0FEB020E1CBB58D500266900 /* Base */,
447 | );
448 | name = LaunchScreen.storyboard;
449 | sourceTree = "";
450 | };
451 | /* End PBXVariantGroup section */
452 |
453 | /* Begin XCBuildConfiguration section */
454 | 0FEB021C1CBB58D500266900 /* Debug */ = {
455 | isa = XCBuildConfiguration;
456 | buildSettings = {
457 | ALWAYS_SEARCH_USER_PATHS = NO;
458 | CLANG_ANALYZER_NONNULL = YES;
459 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
460 | CLANG_CXX_LIBRARY = "libc++";
461 | CLANG_ENABLE_MODULES = YES;
462 | CLANG_ENABLE_OBJC_ARC = YES;
463 | CLANG_WARN_BOOL_CONVERSION = YES;
464 | CLANG_WARN_CONSTANT_CONVERSION = YES;
465 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
466 | CLANG_WARN_EMPTY_BODY = YES;
467 | CLANG_WARN_ENUM_CONVERSION = YES;
468 | CLANG_WARN_INT_CONVERSION = YES;
469 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
470 | CLANG_WARN_UNREACHABLE_CODE = YES;
471 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
472 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
473 | COPY_PHASE_STRIP = NO;
474 | DEBUG_INFORMATION_FORMAT = dwarf;
475 | ENABLE_STRICT_OBJC_MSGSEND = YES;
476 | ENABLE_TESTABILITY = YES;
477 | GCC_C_LANGUAGE_STANDARD = gnu99;
478 | GCC_DYNAMIC_NO_PIC = NO;
479 | GCC_NO_COMMON_BLOCKS = YES;
480 | GCC_OPTIMIZATION_LEVEL = 0;
481 | GCC_PREPROCESSOR_DEFINITIONS = (
482 | "DEBUG=1",
483 | "$(inherited)",
484 | );
485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
487 | GCC_WARN_UNDECLARED_SELECTOR = YES;
488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
489 | GCC_WARN_UNUSED_FUNCTION = YES;
490 | GCC_WARN_UNUSED_VARIABLE = YES;
491 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
492 | MTL_ENABLE_DEBUG_INFO = YES;
493 | ONLY_ACTIVE_ARCH = YES;
494 | SDKROOT = iphoneos;
495 | };
496 | name = Debug;
497 | };
498 | 0FEB021D1CBB58D500266900 /* Release */ = {
499 | isa = XCBuildConfiguration;
500 | buildSettings = {
501 | ALWAYS_SEARCH_USER_PATHS = NO;
502 | CLANG_ANALYZER_NONNULL = YES;
503 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
504 | CLANG_CXX_LIBRARY = "libc++";
505 | CLANG_ENABLE_MODULES = YES;
506 | CLANG_ENABLE_OBJC_ARC = YES;
507 | CLANG_WARN_BOOL_CONVERSION = YES;
508 | CLANG_WARN_CONSTANT_CONVERSION = YES;
509 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
510 | CLANG_WARN_EMPTY_BODY = YES;
511 | CLANG_WARN_ENUM_CONVERSION = YES;
512 | CLANG_WARN_INT_CONVERSION = YES;
513 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
514 | CLANG_WARN_UNREACHABLE_CODE = YES;
515 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
516 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
517 | COPY_PHASE_STRIP = NO;
518 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
519 | ENABLE_NS_ASSERTIONS = NO;
520 | ENABLE_STRICT_OBJC_MSGSEND = YES;
521 | GCC_C_LANGUAGE_STANDARD = gnu99;
522 | GCC_NO_COMMON_BLOCKS = YES;
523 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
524 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
525 | GCC_WARN_UNDECLARED_SELECTOR = YES;
526 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
527 | GCC_WARN_UNUSED_FUNCTION = YES;
528 | GCC_WARN_UNUSED_VARIABLE = YES;
529 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
530 | MTL_ENABLE_DEBUG_INFO = NO;
531 | SDKROOT = iphoneos;
532 | VALIDATE_PRODUCT = YES;
533 | };
534 | name = Release;
535 | };
536 | 0FEB021F1CBB58D500266900 /* Debug */ = {
537 | isa = XCBuildConfiguration;
538 | buildSettings = {
539 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
540 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
541 | ENABLE_BITCODE = NO;
542 | FRAMEWORK_SEARCH_PATHS = (
543 | "$(inherited)",
544 | "$(PROJECT_DIR)/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass",
545 | );
546 | INFOPLIST_FILE = ZQFVLCMoviePlayer/Info.plist;
547 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
548 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
549 | PRODUCT_BUNDLE_IDENTIFIER = cc.devfu.ZQFVLCMoviePlayer;
550 | PRODUCT_NAME = "$(TARGET_NAME)";
551 | };
552 | name = Debug;
553 | };
554 | 0FEB02201CBB58D500266900 /* Release */ = {
555 | isa = XCBuildConfiguration;
556 | buildSettings = {
557 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
558 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
559 | ENABLE_BITCODE = NO;
560 | FRAMEWORK_SEARCH_PATHS = (
561 | "$(inherited)",
562 | "$(PROJECT_DIR)/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass",
563 | );
564 | INFOPLIST_FILE = ZQFVLCMoviePlayer/Info.plist;
565 | IPHONEOS_DEPLOYMENT_TARGET = 7.1;
566 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
567 | PRODUCT_BUNDLE_IDENTIFIER = cc.devfu.ZQFVLCMoviePlayer;
568 | PRODUCT_NAME = "$(TARGET_NAME)";
569 | };
570 | name = Release;
571 | };
572 | 0FEB02221CBB58D500266900 /* Debug */ = {
573 | isa = XCBuildConfiguration;
574 | buildSettings = {
575 | BUNDLE_LOADER = "$(TEST_HOST)";
576 | INFOPLIST_FILE = ZQFVLCMoviePlayerTests/Info.plist;
577 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
578 | PRODUCT_BUNDLE_IDENTIFIER = cc.devfu.ZQFVLCMoviePlayerTests;
579 | PRODUCT_NAME = "$(TARGET_NAME)";
580 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZQFVLCMoviePlayer.app/ZQFVLCMoviePlayer";
581 | };
582 | name = Debug;
583 | };
584 | 0FEB02231CBB58D500266900 /* Release */ = {
585 | isa = XCBuildConfiguration;
586 | buildSettings = {
587 | BUNDLE_LOADER = "$(TEST_HOST)";
588 | INFOPLIST_FILE = ZQFVLCMoviePlayerTests/Info.plist;
589 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
590 | PRODUCT_BUNDLE_IDENTIFIER = cc.devfu.ZQFVLCMoviePlayerTests;
591 | PRODUCT_NAME = "$(TARGET_NAME)";
592 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ZQFVLCMoviePlayer.app/ZQFVLCMoviePlayer";
593 | };
594 | name = Release;
595 | };
596 | /* End XCBuildConfiguration section */
597 |
598 | /* Begin XCConfigurationList section */
599 | 0FEB01F71CBB58D500266900 /* Build configuration list for PBXProject "ZQFVLCMoviePlayer" */ = {
600 | isa = XCConfigurationList;
601 | buildConfigurations = (
602 | 0FEB021C1CBB58D500266900 /* Debug */,
603 | 0FEB021D1CBB58D500266900 /* Release */,
604 | );
605 | defaultConfigurationIsVisible = 0;
606 | defaultConfigurationName = Release;
607 | };
608 | 0FEB021E1CBB58D500266900 /* Build configuration list for PBXNativeTarget "ZQFVLCMoviePlayer" */ = {
609 | isa = XCConfigurationList;
610 | buildConfigurations = (
611 | 0FEB021F1CBB58D500266900 /* Debug */,
612 | 0FEB02201CBB58D500266900 /* Release */,
613 | );
614 | defaultConfigurationIsVisible = 0;
615 | defaultConfigurationName = Release;
616 | };
617 | 0FEB02211CBB58D500266900 /* Build configuration list for PBXNativeTarget "ZQFVLCMoviePlayerTests" */ = {
618 | isa = XCConfigurationList;
619 | buildConfigurations = (
620 | 0FEB02221CBB58D500266900 /* Debug */,
621 | 0FEB02231CBB58D500266900 /* Release */,
622 | );
623 | defaultConfigurationIsVisible = 0;
624 | defaultConfigurationName = Release;
625 | };
626 | /* End XCConfigurationList section */
627 | };
628 | rootObject = 0FEB01F41CBB58D500266900 /* Project object */;
629 | }
630 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/Assets.xcassets/Brand Assets.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "minimum-system-version" : "7.0",
7 | "scale" : "2x"
8 | },
9 | {
10 | "orientation" : "portrait",
11 | "idiom" : "iphone",
12 | "minimum-system-version" : "7.0",
13 | "subtype" : "retina4",
14 | "scale" : "2x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "ZQFVLCPlayerViewController.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad {
19 | [super viewDidLoad];
20 | // Do any additional setup after loading the view, typically from a nib.
21 | }
22 |
23 | - (void)didReceiveMemoryWarning {
24 | [super didReceiveMemoryWarning];
25 | // Dispose of any resources that can be recreated.
26 | }
27 | - (IBAction)startPlayAction:(id)sender {
28 | NSString *str = @"http://hc.yinyuetai.com/uploads/videos/common/280B015100F06F42002834D64B33F4D6.flv?sc=20c9f1802269ceda";
29 | ZQFVLCPlayerViewController *playerVC = [[ZQFVLCPlayerViewController alloc] initWithMediaURL:[NSURL URLWithString:str] mediaName:@"我的电影"];
30 | [self presentViewController:playerVC animated:YES completion:nil];
31 | }
32 |
33 |
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_close.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_close@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_close@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_cross.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_cross.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_cross@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_cross@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastback.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastback@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastback@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastfarword.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastfarword.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastfarword@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_fastfarword@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_next.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_next@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_next@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause_big.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause_big@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_pause_big@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play_big.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play_big@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_play_big@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_rewind.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_rewind.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_rewind@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_rewind@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_in.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_in.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_in@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_in@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_out.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_out@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zengqingf/ZQFVLCMoviePlayer/a9dd140a628b847a46bf8cef837dbf960d91f3db/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/Assets/ZQFVideoPlayer_zoom_out@2x.png
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/ZQFVLCPlayerViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ZQFVLCPlayerViewController.h
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZQFVLCPlayerViewController : UIViewController
12 | @property (copy, readonly)NSURL *mediaURL;
13 | @property (copy, readonly)NSString *mediaName;
14 |
15 | - (instancetype)initWithMediaURL:( NSURL *)mediaURL mediaName:( NSString *)mediaName;
16 | @end
17 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/ZQFVLCPlayerViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZQFVLCPlayerViewController.m
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 | //github地址:https://github.com/zengqingf/ZQFVLCMoviePlayer.git
9 | //欢迎访问作者博客:http://blog.csdn.net/techfu
10 | //
11 |
12 | #import "ZQFVLCPlayerViewController.h"
13 | #import
14 | #import
15 | @interface ZQFVLCPlayerViewController ()
16 |
17 | @property (nonatomic, strong)VLCMediaPlayer *mediaplayer;
18 |
19 | //-------------------top-------------------
20 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *topViewTopConstraint;
21 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *topViewHeightConstraint;
22 | @property (weak, nonatomic) IBOutlet UILabel *movTitleLabel;
23 | @property (weak, nonatomic) IBOutlet UILabel *batteryLevelLabel;
24 | @property (weak, nonatomic) IBOutlet UILabel *currentTimeLabel;
25 | @property (assign)BOOL batteryMonitoringEnabled;
26 | //-------------------play-------------------
27 | @property (weak, nonatomic) IBOutlet UIView *playerView;
28 |
29 | //-------------------state-------------------
30 | @property (weak, nonatomic) IBOutlet UIButton *playButton;
31 | @property (weak, nonatomic) IBOutlet UIView *fastStateView;
32 | @property (weak, nonatomic) IBOutlet UIImageView *fastImageView;
33 | @property (weak, nonatomic) IBOutlet UILabel *fastProgressLabel;
34 | @property (weak, nonatomic) IBOutlet UILabel *fastTotalLabel;
35 |
36 | @property (weak, nonatomic) IBOutlet UILabel *tipsLabel;
37 | @property (weak, nonatomic) IBOutlet UILabel *playerStateLabel;
38 |
39 |
40 | //-------------------bottom-------------------
41 | @property (weak, nonatomic) IBOutlet UIButton *playOrPauseButton;
42 | @property (weak, nonatomic) IBOutlet UILabel *playerCurrentTimeLabel;
43 | @property (weak, nonatomic) IBOutlet UILabel *playerTotalTimeLabel;
44 | @property (weak, nonatomic) IBOutlet UISlider *playerSlider;
45 | @property (weak, nonatomic) IBOutlet UIButton *zoomButton;
46 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomBottomConstraint;
47 |
48 |
49 | //------config----------
50 | @property (assign)BOOL isEnteredFlag;
51 | @property (assign)BOOL isToolViewHidden;
52 | @property (assign)BOOL isSliderDragging;
53 | @property (assign)BOOL isTransformed;
54 | @property (nonatomic ,assign)NSInteger totalTime;
55 |
56 | @property (nonatomic, assign)CGPoint beginPoint;//开始触摸下去的点
57 | @property (assign)NSInteger positionWhenTouched;
58 | @property (assign)NSInteger positionWhenTouchEnd;
59 | @property (nonatomic, assign)BOOL isQuickPlay;//指示手势是否快进或者快退
60 |
61 | @end
62 |
63 | @implementation ZQFVLCPlayerViewController
64 | - (void)dealloc {
65 | NSLog(@"%s", __FUNCTION__);
66 | if (_mediaplayer) {
67 | if (_mediaplayer.media)
68 | [_mediaplayer stop];
69 | if (_mediaplayer)
70 | _mediaplayer = nil;
71 | }
72 | }
73 |
74 | - (instancetype)initWithMediaURL:( NSURL *)mediaURL mediaName:(NSString *)mediaName {
75 | self = [super init];
76 | if (self) {
77 | _mediaURL = [mediaURL copy];
78 | _mediaName = [mediaName copy];
79 | _batteryMonitoringEnabled = [[UIDevice currentDevice] isBatteryMonitoringEnabled];
80 | }
81 | return self;
82 | }
83 |
84 | - (void)viewDidLoad {
85 | [super viewDidLoad];
86 | self.movTitleLabel.text = _mediaName;
87 | }
88 |
89 | - (void)viewDidAppear:(BOOL)animated {
90 | [super viewDidAppear:animated];
91 | if (!_isEnteredFlag) {
92 | [self setupMoviePlayer];
93 | _isEnteredFlag = YES;
94 | }
95 | }
96 |
97 | - (void)viewWillDisappear:(BOOL)animated {
98 | [super viewWillDisappear:animated];
99 | [[UIDevice currentDevice] setBatteryMonitoringEnabled:_batteryMonitoringEnabled];
100 | if (_mediaplayer) {
101 | if (_mediaplayer.media)
102 | [_mediaplayer stop];
103 | }
104 | }
105 |
106 | - (void)didReceiveMemoryWarning {
107 | [super didReceiveMemoryWarning];
108 | // Dispose of any resources that can be recreated.
109 | }
110 |
111 | //配置播放器
112 | - (void)setupMoviePlayer{
113 | _mediaplayer = [[VLCMediaPlayer alloc] init];
114 | _mediaplayer.delegate = self;
115 | _mediaplayer.drawable = self.playerView;
116 |
117 | _mediaplayer.media = [VLCMedia mediaWithURL:_mediaURL];
118 | [_mediaplayer play];
119 | }
120 |
121 | //播放或者暂停
122 | - (IBAction)playOrPauseAction:(id)sender {
123 | if (_mediaplayer.isPlaying) {
124 | [_mediaplayer pause];
125 | _playButton.hidden = NO;
126 | }
127 | else {
128 | [_mediaplayer play];
129 | _playButton.hidden = YES;
130 | }
131 | }
132 |
133 | //==========================slider==============================
134 | - (IBAction)sliderDragInsideAction:(id)sender {
135 | CGFloat progressValue = _playerSlider.value;
136 | NSInteger value = self.totalTime * progressValue;
137 | VLCTime *vlcTime = [VLCTime timeWithInt:(int)value];
138 | VLCTime *vlcTotalTime = [VLCTime timeWithInt:(int)self.totalTime];
139 | _fastProgressLabel.text = vlcTime.stringValue;
140 | _fastTotalLabel.text = vlcTotalTime.stringValue;
141 |
142 | if ([vlcTime compare:_mediaplayer.time] == NSOrderedAscending) {
143 | _fastImageView.highlighted = YES;
144 | } else {
145 | _fastImageView.highlighted = NO;
146 | }
147 | }
148 |
149 | - (IBAction)sliderTouchUpInsideAction:(id)sender {
150 | _fastStateView.hidden = YES;
151 | _isSliderDragging = NO;
152 | _mediaplayer.position = _playerSlider.value;
153 | }
154 |
155 | - (IBAction)sliderTouchUpOutsideAction:(id)sender {
156 | static NSString *tipsString = @"操作无效";
157 | [self tipsLabelShowString:tipsString];
158 | _fastStateView.hidden = YES;
159 | _isSliderDragging = NO;
160 | }
161 |
162 | - (IBAction)sliderTouchDownAction:(id)sender {
163 | static NSString *tipsString = @"请拖动";
164 | [self tipsLabelShowString:tipsString];
165 | _fastStateView.hidden = NO;
166 | _isSliderDragging = YES;
167 | }
168 |
169 | - (IBAction)sliderTouchCancelAction:(id)sender {
170 | _fastStateView.hidden = YES;
171 | _isSliderDragging = NO;
172 | }
173 |
174 | - (void)tipsLabelShowString:(NSString *)str {
175 | _tipsLabel.text = str;
176 | _tipsLabel.alpha = 1.0;
177 | [UIView animateWithDuration:2 animations:^{
178 | _tipsLabel.alpha = 0;
179 | }];
180 | }
181 |
182 | //关闭播放器
183 | - (IBAction)closePlayerVCAction:(id)sender {
184 | [self dismissViewControllerAnimated:YES completion:nil];
185 | }
186 |
187 | //显示当前的时间
188 | - (void)setupCurrentTime {
189 | NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
190 | [formatter setDateFormat:@"HH:mm"];
191 | NSDate *currentDate = [NSDate date];
192 | NSString *currentDateTimeString = [formatter stringFromDate:currentDate];
193 | _currentTimeLabel.text = currentDateTimeString;
194 | _currentTimeLabel.hidden = NO;
195 | }
196 |
197 | //显示当前的电量
198 | - (void)setupBatteryLevel {
199 | UIDevice *currentDevice = [UIDevice currentDevice];
200 | [currentDevice setBatteryMonitoringEnabled:YES];
201 | if (currentDevice.batteryState != UIDeviceBatteryStateUnknown) {
202 | self.batteryLevelLabel.hidden = NO;
203 | CGFloat batteryLevel = [currentDevice batteryLevel];
204 | NSString *levelString = [NSString stringWithFormat:@"%ld%%", (NSInteger)(batteryLevel * 100)];
205 | _batteryLevelLabel.text = levelString;
206 | } else {
207 | self.batteryLevelLabel.hidden = YES;
208 | }
209 | }
210 |
211 | //播放器view点击手势
212 | - (IBAction)tapAction:(id)sender {
213 |
214 | CGFloat topConstraint = 0;
215 | CGFloat bottomConstraint = 0;
216 |
217 | if (_isToolViewHidden) {
218 | if (_isTransformed) {
219 | topConstraint = -20;
220 | [self setupBatteryLevel];
221 | [self setupCurrentTime];
222 | } else {
223 | _currentTimeLabel.hidden = YES;
224 | _batteryLevelLabel.hidden = YES;
225 | }
226 | _isToolViewHidden = NO;
227 | } else {
228 | topConstraint = -64;
229 | bottomConstraint = -44;
230 | _isToolViewHidden = YES;
231 | }
232 |
233 | [self.view layoutIfNeeded];
234 | [UIView animateWithDuration:0.5 animations:^{
235 | _topViewTopConstraint.constant = topConstraint;
236 | _bottomBottomConstraint.constant = bottomConstraint;
237 | [self.view layoutIfNeeded];
238 | }];
239 | }
240 |
241 |
242 | //隐藏状态栏
243 | - (BOOL)prefersStatusBarHidden NS_AVAILABLE_IOS(7_0){
244 | return _isTransformed;
245 | }
246 | //锁定屏幕
247 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0){
248 | return UIInterfaceOrientationMaskPortrait;
249 | }
250 |
251 | #pragma mark - delegate
252 | //接受状态改变通知
253 | - (void)mediaPlayerStateChanged:(NSNotification *)aNotification{
254 | VLCMediaPlayerState currentState = _mediaplayer.state;
255 | NSLog(@"状态:%ld", currentState);
256 | switch (currentState) {
257 | case VLCMediaPlayerStateStopped: {//0
258 | _playOrPauseButton.selected = YES;
259 | _playerStateLabel.text = @"Stopped";
260 | _playerStateLabel.hidden = NO;
261 | }
262 | break;
263 | case VLCMediaPlayerStateOpening: {//1
264 | _playerStateLabel.text = @"Opening";
265 | _playerStateLabel.hidden = NO;
266 | }
267 | break;
268 | case VLCMediaPlayerStateBuffering: {//2
269 | _playerStateLabel.text = @"正在缓冲";
270 | _playerStateLabel.hidden = NO;
271 | }
272 | break;
273 | case VLCMediaPlayerStateEnded: {//3
274 | _playOrPauseButton.selected = YES;
275 | _playerStateLabel.text = @"The End";
276 | _playerStateLabel.hidden = NO;
277 | }
278 | break;
279 | case VLCMediaPlayerStateError: {//4
280 | _playOrPauseButton.selected = YES;
281 | _playerStateLabel.text = @"Error";
282 | _playerStateLabel.hidden = NO;
283 | }
284 | break;
285 | case VLCMediaPlayerStatePlaying: {//5
286 | _playerStateLabel.hidden = YES;
287 | _playOrPauseButton.selected = NO;
288 | }
289 | break;
290 | case VLCMediaPlayerStatePaused: {//6
291 | _playOrPauseButton.selected = YES;
292 | }
293 | break;
294 |
295 | default:
296 | break;
297 | }
298 | }
299 |
300 | //接受通知,当时间改变时
301 | - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification {
302 | _playerStateLabel.hidden = YES;
303 | if(!_isToolViewHidden){
304 | _playerCurrentTimeLabel.text = _mediaplayer.time.stringValue;
305 | _playerTotalTimeLabel.text = _mediaplayer.remainingTime.stringValue;
306 | if (!_isSliderDragging) {
307 | [_playerSlider setValue:_mediaplayer.position animated:YES];
308 | }
309 | }
310 | }
311 |
312 | - (NSInteger)totalTime{
313 | if (_totalTime <= 0) {
314 | _totalTime = _mediaplayer.media.length.numberValue.integerValue;
315 | }
316 | return _totalTime;
317 | }
318 |
319 |
320 | //横竖屏
321 | - (IBAction)zoomAction:(id)sender {
322 | UIButton *button = sender;
323 | static CGFloat angle = 0;
324 | if (button.selected) {
325 | angle = 0;
326 | button.selected = NO;
327 | _isTransformed = NO;
328 | } else {
329 | UIDevice *device = [UIDevice currentDevice];
330 | if (device.orientation != UIDeviceOrientationLandscapeRight) {
331 | angle = M_PI/2;
332 | } else {
333 | angle = -M_PI/2;
334 | }
335 | button.selected = YES;
336 | _isTransformed = YES;
337 | }
338 |
339 | CGFloat screenHeight = self.view.bounds.size.height;
340 | CGFloat screenWidth = self.view.bounds.size.width;
341 | CGFloat constant = 0;
342 | if (_isTransformed) {
343 | constant = -20;
344 |
345 | [self setupBatteryLevel];
346 | [self setupCurrentTime];
347 |
348 | } else {
349 | constant = 0;
350 | _currentTimeLabel.hidden = YES;
351 | _batteryLevelLabel.hidden = YES;
352 | }
353 | [self.view layoutIfNeeded];
354 | [UIView animateWithDuration:0.2 animations:^{
355 | [self.view setTransform:CGAffineTransformMakeRotation(angle)];//旋转view
356 | self.view.bounds = CGRectMake(0, 0, screenHeight, screenWidth);//设置bounds
357 | _topViewTopConstraint.constant = constant;
358 | [self setNeedsStatusBarAppearanceUpdate];
359 | [self.view layoutIfNeeded];
360 | }];
361 | }
362 |
363 | //开始自定义手势
364 |
365 | //开始touch
366 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
367 | UITouch *touch = [touches anyObject];
368 | _beginPoint = [touch locationInView:self.playerView];
369 | _positionWhenTouched = _mediaplayer.time.numberValue.integerValue;
370 | _isQuickPlay = NO;
371 | }
372 |
373 | //开始移动手指
374 | - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
375 | UITouch *touch = [touches anyObject];
376 | CGPoint currPoint = [touch locationInView:self.playerView];
377 |
378 | CGFloat horizontal = currPoint.x - _beginPoint.x;
379 | CGFloat vertical = currPoint.y - _beginPoint.y;
380 |
381 | if(fabs(vertical) < 30 && fabs(horizontal) < 30){
382 | // static NSString *tipsString = @"请滑动手指";
383 | // [self tipsLabelShowString:tipsString];
384 | }else if (fabs(vertical) < 30 && fabs(horizontal) > 30) {
385 | //水平滑动
386 | _isQuickPlay = YES;
387 | _fastStateView.hidden = NO;
388 | CGFloat subVolumeValue = (currPoint.x - _beginPoint.x) / 10.0;
389 | _positionWhenTouchEnd = _positionWhenTouched + subVolumeValue * 1000;
390 | if (_positionWhenTouchEnd < 0) {
391 | _positionWhenTouchEnd = 0;
392 | }
393 |
394 | if (subVolumeValue < 0) {
395 | _fastImageView.highlighted = YES;
396 | } else {
397 | _fastImageView.highlighted = NO;
398 | }
399 |
400 | VLCTime *vlcTime = [VLCTime timeWithInt:(int)_positionWhenTouchEnd];
401 | VLCTime *vlcTotalTime = [VLCTime timeWithInt:(int)self.totalTime];
402 | _fastProgressLabel.text = vlcTime.stringValue;
403 | _fastTotalLabel.text = vlcTotalTime.stringValue;
404 | _tipsLabel.hidden = NO;
405 | return;
406 | } else if (fabs(horizontal) < 30 && fabs(vertical) > 30){
407 | //竖直滑动,调节音量
408 | MPMusicPlayerController *volumeControl = [MPMusicPlayerController applicationMusicPlayer];
409 | CGPoint previousPoint = [touch previousLocationInView:self.playerView];
410 | CGFloat subVolumeValue = (previousPoint.y - currPoint.y) / 100.0;
411 | static CGFloat volumeValue = 0;
412 |
413 | #pragma clang diagnostic push
414 | #pragma clang diagnostic ignored"-Wdeprecated-declarations"
415 | //写在这个中间的代码,都不会被编译器提示-Wdeprecated-declarations类型的警告
416 | volumeValue = volumeControl.volume;
417 | volumeValue += subVolumeValue;
418 | if (volumeValue > 1) {
419 | volumeValue = 1.0;
420 | }
421 |
422 | if (volumeValue < 0) {
423 | volumeValue = 0.0;
424 | }
425 | volumeControl.volume = volumeValue;
426 | #pragma clang diagnostic pop
427 |
428 | _isQuickPlay = NO;
429 | _fastStateView.hidden = YES;
430 | return;
431 | }else {
432 | _isQuickPlay = NO;
433 | _fastStateView.hidden = YES;
434 | static NSString *tipsString = @"无效动作";
435 | [self tipsLabelShowString:tipsString];
436 | }
437 | }
438 |
439 | //touch结束
440 | -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
441 | if(_isQuickPlay) {
442 | VLCTime *time = [VLCTime timeWithInt:(int)_positionWhenTouchEnd];
443 | _mediaplayer.time = time;
444 | }
445 | _fastStateView.hidden = YES;
446 | }
447 | - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event{
448 | _fastStateView.hidden = YES;
449 | }
450 |
451 | @end
452 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/ZQFVLCMoviePlayerClass/ZQFVLCPlayerViewController.xib:
--------------------------------------------------------------------------------
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 |
40 |
41 |
42 |
43 |
44 |
45 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
72 |
78 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
109 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
145 |
151 |
152 |
153 |
154 |
160 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
212 |
223 |
232 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayer/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // ZQFVLCMoviePlayer
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayerTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ZQFVLCMoviePlayerTests/ZQFVLCMoviePlayerTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ZQFVLCMoviePlayerTests.m
3 | // ZQFVLCMoviePlayerTests
4 | //
5 | // Created by zqf on 16/4/11.
6 | // Copyright © 2016年 zengqingfu. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ZQFVLCMoviePlayerTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ZQFVLCMoviePlayerTests
16 |
17 | - (void)setUp {
18 | [super setUp];
19 | // Put setup code here. This method is called before the invocation of each test method in the class.
20 | }
21 |
22 | - (void)tearDown {
23 | // Put teardown code here. This method is called after the invocation of each test method in the class.
24 | [super tearDown];
25 | }
26 |
27 | - (void)testExample {
28 | // This is an example of a functional test case.
29 | // Use XCTAssert and related functions to verify your tests produce the correct results.
30 | }
31 |
32 | - (void)testPerformanceExample {
33 | // This is an example of a performance test case.
34 | [self measureBlock:^{
35 | // Put the code you want to measure the time of here.
36 | }];
37 | }
38 |
39 | @end
40 |
--------------------------------------------------------------------------------