├── .gitignore ├── README.md ├── VLCKitPlayer ├── MobileVLCKitPlayer.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── VLCKitPlayer │ ├── Base.lproj │ │ └── Main.storyboard │ ├── DVIAppDelegate.h │ ├── DVIAppDelegate.m │ ├── DVIPlayerViewController.h │ ├── DVIPlayerViewController.m │ ├── DVIViewController.h │ ├── DVIViewController.mm │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── MobileVLCKitPlayer-Info.plist │ ├── MobileVLCKitPlayer-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m └── VLCKitPlayerTests │ ├── MobileVLCKitPlayerTests-Info.plist │ ├── VLCKitPlayerTests.m │ └── en.lproj │ └── InfoPlist.strings ├── bootstrap ├── discuss.jpg ├── snapshot1.jpg └── snapshot2.jpg /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | build/ 3 | *.pbxuser 4 | !default.pbxuser 5 | *.mode1v3 6 | !default.mode1v3 7 | *.mode2v3 8 | !default.mode2v3 9 | *.perspectivev3 10 | !default.perspectivev3 11 | xcuserdata 12 | *.xccheckout 13 | profile 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | 19 | .DS_Store 20 | # CocoaPods 21 | Pods 22 | 23 | #package 24 | *.tar.gz 25 | /MobileVLCKit.framework 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

戴维营教育iOS全媒体播放器开发框架

5 |
6 | 一个长沙戴维营教育学员在学习开源项目时所集成编译和二次开发的iOS平台音视频多媒体万能播放器开发框架。 7 |
8 | 这个框架运用了功能强大的开源音视频项目VLC以及其他开源项目。 9 |
10 | 我们把已经编译好的Framework顺带一个极简单的Demo开放出来, 11 |
12 | 为有需要的朋友们省去复杂的编译过程,直接使用本仓库下的MobileVLCKit.framework 13 |
14 | 就可以啦。 15 |
16 | 使用方法: 17 |
18 | 第一步: 19 |
20 | 打开终端,执行命令。 21 |
22 | $git clone https://github.com/wuqiong/MobileVLCKit-SDK.git 23 |
24 | 第二步: 25 |
26 | $cd MobileVLCKit-SDK 27 |
28 | $./bootstrap 29 |
30 | 第三步: 31 |
32 | 打开本极小的Demo编译运行,新建自己的工程,引用MobileVLCKit.framework,开发属于自己的万能播放器吧。 33 |
34 | 35 | 本SDK支持在iOS平台播放众多的音视频文件和流媒体格式: 36 |
37 | 音频格式: 38 |
39 | aac | aiff | aif | amr | aob | ape | axa | flac | it | 40 |
41 | m2a | m4a | mka | mlp | mod | mp1 | mp2 | mp3 | mpa | 42 |
43 | mpc | oga | oma | opus | rmi | s3m | spx | tta | 44 |
45 | voc | vqf | wav | wma | wv | xa | xm 46 | 47 |
48 | 视频格式: 49 |
50 | 3gp | 3gp | 3gp2 | 3gpp | amv | asf | avi | axv | divx | 51 |
52 | dv | flv | f4v | gvi | gxf | m1v | m2p | m2t | m2ts | 53 |
54 | m2v | m4v | mks | mkv | moov | mov | mp2v | mp4 | mpeg | 55 |
56 | mpeg1 | mpeg2 | mpeg4 | mpg | mpv | mt2s | mts | mxf | 57 |
58 | nsv | nuv | oga | ogg | ogm | ogv | ogx | spx | ps | qt | 59 |
60 | rec | rm | rmvb | tod | ts | tts | vob | vro | webm | 61 |
62 | wm | wmv | wtv | xesc 63 |
64 | 65 | 流媒体: 66 | rtp | rtsp | hls/http 等等, Adobe的rtmp 的流媒体也是支持的哦. 67 |
68 | 字幕格式: 69 |
70 | cdg | idx | srt | sub | utf | ass | ssa | aqt | jss 71 |
72 | | psb | rt | smi | txt | smil 73 |
74 |
75 | 76 | 抓图: 77 | ![抓图](https://raw.github.com/wuqiong/MobileVLCKit-SDK/master/snapshot1.jpg) 78 |
79 | ![抓图](https://raw.github.com/wuqiong/MobileVLCKit-SDK/master/snapshot2.jpg) 80 | 81 |
82 | 小组讨论: 83 | ![小组讨论现场](https://raw.github.com/wuqiong/MobileVLCKit-SDK/master/discuss.jpg) 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /VLCKitPlayer/MobileVLCKitPlayer.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 001CE79B18DC5DF3003D01F9 /* DVIPlayerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 001CE79A18DC5DF3003D01F9 /* DVIPlayerViewController.m */; }; 11 | 008418C618D9204600237FB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008418C518D9204600237FB2 /* Foundation.framework */; }; 12 | 008418C818D9204600237FB2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008418C718D9204600237FB2 /* CoreGraphics.framework */; }; 13 | 008418CA18D9204600237FB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008418C918D9204600237FB2 /* UIKit.framework */; }; 14 | 008418D018D9204600237FB2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 008418CE18D9204600237FB2 /* InfoPlist.strings */; }; 15 | 008418D218D9204600237FB2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 008418D118D9204600237FB2 /* main.m */; }; 16 | 008418D618D9204600237FB2 /* DVIAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 008418D518D9204600237FB2 /* DVIAppDelegate.m */; }; 17 | 008418D918D9204600237FB2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 008418D718D9204600237FB2 /* Main.storyboard */; }; 18 | 008418DC18D9204600237FB2 /* DVIViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 008418DB18D9204600237FB2 /* DVIViewController.mm */; }; 19 | 008418DE18D9204600237FB2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 008418DD18D9204600237FB2 /* Images.xcassets */; }; 20 | 008418FD18D9215700237FB2 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008418FC18D9215700237FB2 /* AVFoundation.framework */; }; 21 | 008418FF18D9216400237FB2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 008418FE18D9216400237FB2 /* CoreAudio.framework */; }; 22 | 0084190118D9217000237FB2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0084190018D9217000237FB2 /* AudioToolbox.framework */; }; 23 | 0084190318D9218300237FB2 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0084190218D9218300237FB2 /* libz.dylib */; }; 24 | 0084190718D921BA00237FB2 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0084190618D921BA00237FB2 /* libiconv.dylib */; }; 25 | 0084190B18D921D200237FB2 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0084190A18D921D200237FB2 /* libbz2.dylib */; }; 26 | 0084190C18D9225400237FB2 /* libstdc++.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0084190418D9219000237FB2 /* libstdc++.dylib */; }; 27 | 189BFE1B1A6FEEC7003BF5BA /* MobileVLCKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 189BFE1A1A6FEEC7003BF5BA /* MobileVLCKit.framework */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 001CE79918DC5DF3003D01F9 /* DVIPlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVIPlayerViewController.h; sourceTree = ""; }; 32 | 001CE79A18DC5DF3003D01F9 /* DVIPlayerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVIPlayerViewController.m; sourceTree = ""; }; 33 | 008418C218D9204600237FB2 /* MobileVLCKitPlayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MobileVLCKitPlayer.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 008418C518D9204600237FB2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 35 | 008418C718D9204600237FB2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 36 | 008418C918D9204600237FB2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 37 | 008418CD18D9204600237FB2 /* MobileVLCKitPlayer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MobileVLCKitPlayer-Info.plist"; sourceTree = ""; }; 38 | 008418CF18D9204600237FB2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 39 | 008418D118D9204600237FB2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 40 | 008418D318D9204600237FB2 /* MobileVLCKitPlayer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MobileVLCKitPlayer-Prefix.pch"; sourceTree = ""; }; 41 | 008418D418D9204600237FB2 /* DVIAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVIAppDelegate.h; sourceTree = ""; }; 42 | 008418D518D9204600237FB2 /* DVIAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DVIAppDelegate.m; sourceTree = ""; }; 43 | 008418D818D9204600237FB2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 44 | 008418DA18D9204600237FB2 /* DVIViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVIViewController.h; sourceTree = ""; }; 45 | 008418DB18D9204600237FB2 /* DVIViewController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = DVIViewController.mm; sourceTree = ""; }; 46 | 008418DD18D9204600237FB2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 47 | 008418E418D9204600237FB2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 48 | 008418EC18D9204700237FB2 /* MobileVLCKitPlayerTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MobileVLCKitPlayerTests-Info.plist"; sourceTree = ""; }; 49 | 008418EE18D9204700237FB2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 50 | 008418F018D9204700237FB2 /* VLCKitPlayerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VLCKitPlayerTests.m; sourceTree = ""; }; 51 | 008418FC18D9215700237FB2 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 52 | 008418FE18D9216400237FB2 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; 53 | 0084190018D9217000237FB2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 54 | 0084190218D9218300237FB2 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; 55 | 0084190418D9219000237FB2 /* libstdc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libstdc++.dylib"; path = "usr/lib/libstdc++.dylib"; sourceTree = SDKROOT; }; 56 | 0084190618D921BA00237FB2 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = usr/lib/libiconv.dylib; sourceTree = SDKROOT; }; 57 | 0084190818D921C300237FB2 /* libc++.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libc++.dylib"; path = "usr/lib/libc++.dylib"; sourceTree = SDKROOT; }; 58 | 0084190A18D921D200237FB2 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = usr/lib/libbz2.dylib; sourceTree = SDKROOT; }; 59 | 189BFE031A6FEEBA003BF5BA /* MobileVLCKitPlayer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = MobileVLCKitPlayer.xcodeproj; sourceTree = ""; }; 60 | 189BFE081A6FEEBA003BF5BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 61 | 189BFE091A6FEEBA003BF5BA /* DVIAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVIAppDelegate.h; sourceTree = ""; }; 62 | 189BFE0A1A6FEEBA003BF5BA /* DVIAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DVIAppDelegate.m; sourceTree = ""; }; 63 | 189BFE0B1A6FEEBA003BF5BA /* DVIPlayerViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVIPlayerViewController.h; sourceTree = ""; }; 64 | 189BFE0C1A6FEEBA003BF5BA /* DVIPlayerViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DVIPlayerViewController.m; sourceTree = ""; }; 65 | 189BFE0D1A6FEEBA003BF5BA /* DVIViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVIViewController.h; sourceTree = ""; }; 66 | 189BFE0E1A6FEEBA003BF5BA /* DVIViewController.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = DVIViewController.mm; sourceTree = ""; }; 67 | 189BFE101A6FEEBA003BF5BA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 68 | 189BFE111A6FEEBA003BF5BA /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 69 | 189BFE121A6FEEBA003BF5BA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 70 | 189BFE131A6FEEBA003BF5BA /* MobileVLCKitPlayer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MobileVLCKitPlayer-Info.plist"; sourceTree = ""; }; 71 | 189BFE141A6FEEBA003BF5BA /* MobileVLCKitPlayer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MobileVLCKitPlayer-Prefix.pch"; sourceTree = ""; }; 72 | 189BFE171A6FEEBA003BF5BA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 73 | 189BFE181A6FEEBA003BF5BA /* MobileVLCKitPlayerTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MobileVLCKitPlayerTests-Info.plist"; sourceTree = ""; }; 74 | 189BFE191A6FEEBA003BF5BA /* VLCKitPlayerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VLCKitPlayerTests.m; sourceTree = ""; }; 75 | 189BFE1A1A6FEEC7003BF5BA /* MobileVLCKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileVLCKit.framework; path = ../MobileVLCKit.framework; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 008418BF18D9204600237FB2 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | 189BFE1B1A6FEEC7003BF5BA /* MobileVLCKit.framework in Frameworks */, 84 | 0084190C18D9225400237FB2 /* libstdc++.dylib in Frameworks */, 85 | 0084190B18D921D200237FB2 /* libbz2.dylib in Frameworks */, 86 | 0084190718D921BA00237FB2 /* libiconv.dylib in Frameworks */, 87 | 0084190318D9218300237FB2 /* libz.dylib in Frameworks */, 88 | 0084190118D9217000237FB2 /* AudioToolbox.framework in Frameworks */, 89 | 008418FF18D9216400237FB2 /* CoreAudio.framework in Frameworks */, 90 | 008418FD18D9215700237FB2 /* AVFoundation.framework in Frameworks */, 91 | 008418C818D9204600237FB2 /* CoreGraphics.framework in Frameworks */, 92 | 008418CA18D9204600237FB2 /* UIKit.framework in Frameworks */, 93 | 008418C618D9204600237FB2 /* Foundation.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | /* End PBXFrameworksBuildPhase section */ 98 | 99 | /* Begin PBXGroup section */ 100 | 008418B918D9204600237FB2 = { 101 | isa = PBXGroup; 102 | children = ( 103 | 008418CB18D9204600237FB2 /* VLCKitPlayer */, 104 | 008418EA18D9204700237FB2 /* VLCKitPlayerTests */, 105 | 008418C418D9204600237FB2 /* Frameworks */, 106 | 008418C318D9204600237FB2 /* Products */, 107 | ); 108 | sourceTree = ""; 109 | }; 110 | 008418C318D9204600237FB2 /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 008418C218D9204600237FB2 /* MobileVLCKitPlayer.app */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 008418C418D9204600237FB2 /* Frameworks */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 189BFE1A1A6FEEC7003BF5BA /* MobileVLCKit.framework */, 122 | 189BFE021A6FEEBA003BF5BA /* VLCKitPlayer */, 123 | 0084190A18D921D200237FB2 /* libbz2.dylib */, 124 | 0084190818D921C300237FB2 /* libc++.dylib */, 125 | 0084190618D921BA00237FB2 /* libiconv.dylib */, 126 | 0084190418D9219000237FB2 /* libstdc++.dylib */, 127 | 0084190218D9218300237FB2 /* libz.dylib */, 128 | 0084190018D9217000237FB2 /* AudioToolbox.framework */, 129 | 008418FE18D9216400237FB2 /* CoreAudio.framework */, 130 | 008418FC18D9215700237FB2 /* AVFoundation.framework */, 131 | 008418C518D9204600237FB2 /* Foundation.framework */, 132 | 008418C718D9204600237FB2 /* CoreGraphics.framework */, 133 | 008418C918D9204600237FB2 /* UIKit.framework */, 134 | 008418E418D9204600237FB2 /* XCTest.framework */, 135 | ); 136 | name = Frameworks; 137 | sourceTree = ""; 138 | }; 139 | 008418CB18D9204600237FB2 /* VLCKitPlayer */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 008418D418D9204600237FB2 /* DVIAppDelegate.h */, 143 | 008418D518D9204600237FB2 /* DVIAppDelegate.m */, 144 | 008418D718D9204600237FB2 /* Main.storyboard */, 145 | 008418DA18D9204600237FB2 /* DVIViewController.h */, 146 | 008418DB18D9204600237FB2 /* DVIViewController.mm */, 147 | 001CE79918DC5DF3003D01F9 /* DVIPlayerViewController.h */, 148 | 001CE79A18DC5DF3003D01F9 /* DVIPlayerViewController.m */, 149 | 008418DD18D9204600237FB2 /* Images.xcassets */, 150 | 008418CC18D9204600237FB2 /* Supporting Files */, 151 | ); 152 | path = VLCKitPlayer; 153 | sourceTree = ""; 154 | }; 155 | 008418CC18D9204600237FB2 /* Supporting Files */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 008418CD18D9204600237FB2 /* MobileVLCKitPlayer-Info.plist */, 159 | 008418CE18D9204600237FB2 /* InfoPlist.strings */, 160 | 008418D118D9204600237FB2 /* main.m */, 161 | 008418D318D9204600237FB2 /* MobileVLCKitPlayer-Prefix.pch */, 162 | ); 163 | name = "Supporting Files"; 164 | sourceTree = ""; 165 | }; 166 | 008418EA18D9204700237FB2 /* VLCKitPlayerTests */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 008418F018D9204700237FB2 /* VLCKitPlayerTests.m */, 170 | 008418EB18D9204700237FB2 /* Supporting Files */, 171 | ); 172 | path = VLCKitPlayerTests; 173 | sourceTree = ""; 174 | }; 175 | 008418EB18D9204700237FB2 /* Supporting Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 008418EC18D9204700237FB2 /* MobileVLCKitPlayerTests-Info.plist */, 179 | 008418ED18D9204700237FB2 /* InfoPlist.strings */, 180 | ); 181 | name = "Supporting Files"; 182 | sourceTree = ""; 183 | }; 184 | 189BFE021A6FEEBA003BF5BA /* VLCKitPlayer */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 189BFE031A6FEEBA003BF5BA /* MobileVLCKitPlayer.xcodeproj */, 188 | 189BFE061A6FEEBA003BF5BA /* VLCKitPlayer */, 189 | 189BFE151A6FEEBA003BF5BA /* VLCKitPlayerTests */, 190 | ); 191 | name = VLCKitPlayer; 192 | sourceTree = ""; 193 | }; 194 | 189BFE041A6FEEBA003BF5BA /* Products */ = { 195 | isa = PBXGroup; 196 | name = Products; 197 | sourceTree = ""; 198 | }; 199 | 189BFE061A6FEEBA003BF5BA /* VLCKitPlayer */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 189BFE071A6FEEBA003BF5BA /* Main.storyboard */, 203 | 189BFE091A6FEEBA003BF5BA /* DVIAppDelegate.h */, 204 | 189BFE0A1A6FEEBA003BF5BA /* DVIAppDelegate.m */, 205 | 189BFE0B1A6FEEBA003BF5BA /* DVIPlayerViewController.h */, 206 | 189BFE0C1A6FEEBA003BF5BA /* DVIPlayerViewController.m */, 207 | 189BFE0D1A6FEEBA003BF5BA /* DVIViewController.h */, 208 | 189BFE0E1A6FEEBA003BF5BA /* DVIViewController.mm */, 209 | 189BFE0F1A6FEEBA003BF5BA /* InfoPlist.strings */, 210 | 189BFE111A6FEEBA003BF5BA /* Images.xcassets */, 211 | 189BFE121A6FEEBA003BF5BA /* main.m */, 212 | 189BFE131A6FEEBA003BF5BA /* MobileVLCKitPlayer-Info.plist */, 213 | 189BFE141A6FEEBA003BF5BA /* MobileVLCKitPlayer-Prefix.pch */, 214 | ); 215 | path = VLCKitPlayer; 216 | sourceTree = ""; 217 | }; 218 | 189BFE151A6FEEBA003BF5BA /* VLCKitPlayerTests */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 189BFE161A6FEEBA003BF5BA /* InfoPlist.strings */, 222 | 189BFE181A6FEEBA003BF5BA /* MobileVLCKitPlayerTests-Info.plist */, 223 | 189BFE191A6FEEBA003BF5BA /* VLCKitPlayerTests.m */, 224 | ); 225 | path = VLCKitPlayerTests; 226 | sourceTree = ""; 227 | }; 228 | /* End PBXGroup section */ 229 | 230 | /* Begin PBXNativeTarget section */ 231 | 008418C118D9204600237FB2 /* MobileVLCKitPlayer */ = { 232 | isa = PBXNativeTarget; 233 | buildConfigurationList = 008418F418D9204700237FB2 /* Build configuration list for PBXNativeTarget "MobileVLCKitPlayer" */; 234 | buildPhases = ( 235 | 008418BE18D9204600237FB2 /* Sources */, 236 | 008418BF18D9204600237FB2 /* Frameworks */, 237 | 008418C018D9204600237FB2 /* Resources */, 238 | ); 239 | buildRules = ( 240 | ); 241 | dependencies = ( 242 | ); 243 | name = MobileVLCKitPlayer; 244 | productName = VLCKitPlayer; 245 | productReference = 008418C218D9204600237FB2 /* MobileVLCKitPlayer.app */; 246 | productType = "com.apple.product-type.application"; 247 | }; 248 | /* End PBXNativeTarget section */ 249 | 250 | /* Begin PBXProject section */ 251 | 008418BA18D9204600237FB2 /* Project object */ = { 252 | isa = PBXProject; 253 | attributes = { 254 | CLASSPREFIX = DVI; 255 | LastUpgradeCheck = 0500; 256 | ORGANIZATIONNAME = "戴维营教育"; 257 | }; 258 | buildConfigurationList = 008418BD18D9204600237FB2 /* Build configuration list for PBXProject "MobileVLCKitPlayer" */; 259 | compatibilityVersion = "Xcode 3.2"; 260 | developmentRegion = English; 261 | hasScannedForEncodings = 0; 262 | knownRegions = ( 263 | en, 264 | Base, 265 | ); 266 | mainGroup = 008418B918D9204600237FB2; 267 | productRefGroup = 008418C318D9204600237FB2 /* Products */; 268 | projectDirPath = ""; 269 | projectReferences = ( 270 | { 271 | ProductGroup = 189BFE041A6FEEBA003BF5BA /* Products */; 272 | ProjectRef = 189BFE031A6FEEBA003BF5BA /* MobileVLCKitPlayer.xcodeproj */; 273 | }, 274 | ); 275 | projectRoot = ""; 276 | targets = ( 277 | 008418C118D9204600237FB2 /* MobileVLCKitPlayer */, 278 | ); 279 | }; 280 | /* End PBXProject section */ 281 | 282 | /* Begin PBXResourcesBuildPhase section */ 283 | 008418C018D9204600237FB2 /* Resources */ = { 284 | isa = PBXResourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | 008418DE18D9204600237FB2 /* Images.xcassets in Resources */, 288 | 008418D018D9204600237FB2 /* InfoPlist.strings in Resources */, 289 | 008418D918D9204600237FB2 /* Main.storyboard in Resources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXResourcesBuildPhase section */ 294 | 295 | /* Begin PBXSourcesBuildPhase section */ 296 | 008418BE18D9204600237FB2 /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | 008418D618D9204600237FB2 /* DVIAppDelegate.m in Sources */, 301 | 008418D218D9204600237FB2 /* main.m in Sources */, 302 | 008418DC18D9204600237FB2 /* DVIViewController.mm in Sources */, 303 | 001CE79B18DC5DF3003D01F9 /* DVIPlayerViewController.m in Sources */, 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | /* End PBXSourcesBuildPhase section */ 308 | 309 | /* Begin PBXVariantGroup section */ 310 | 008418CE18D9204600237FB2 /* InfoPlist.strings */ = { 311 | isa = PBXVariantGroup; 312 | children = ( 313 | 008418CF18D9204600237FB2 /* en */, 314 | ); 315 | name = InfoPlist.strings; 316 | sourceTree = ""; 317 | }; 318 | 008418D718D9204600237FB2 /* Main.storyboard */ = { 319 | isa = PBXVariantGroup; 320 | children = ( 321 | 008418D818D9204600237FB2 /* Base */, 322 | ); 323 | name = Main.storyboard; 324 | sourceTree = ""; 325 | }; 326 | 008418ED18D9204700237FB2 /* InfoPlist.strings */ = { 327 | isa = PBXVariantGroup; 328 | children = ( 329 | 008418EE18D9204700237FB2 /* en */, 330 | ); 331 | name = InfoPlist.strings; 332 | sourceTree = ""; 333 | }; 334 | 189BFE071A6FEEBA003BF5BA /* Main.storyboard */ = { 335 | isa = PBXVariantGroup; 336 | children = ( 337 | 189BFE081A6FEEBA003BF5BA /* Base */, 338 | ); 339 | name = Main.storyboard; 340 | sourceTree = ""; 341 | }; 342 | 189BFE0F1A6FEEBA003BF5BA /* InfoPlist.strings */ = { 343 | isa = PBXVariantGroup; 344 | children = ( 345 | 189BFE101A6FEEBA003BF5BA /* en */, 346 | ); 347 | name = InfoPlist.strings; 348 | sourceTree = ""; 349 | }; 350 | 189BFE161A6FEEBA003BF5BA /* InfoPlist.strings */ = { 351 | isa = PBXVariantGroup; 352 | children = ( 353 | 189BFE171A6FEEBA003BF5BA /* en */, 354 | ); 355 | name = InfoPlist.strings; 356 | sourceTree = ""; 357 | }; 358 | /* End PBXVariantGroup section */ 359 | 360 | /* Begin XCBuildConfiguration section */ 361 | 008418F218D9204700237FB2 /* Debug */ = { 362 | isa = XCBuildConfiguration; 363 | buildSettings = { 364 | ALWAYS_SEARCH_USER_PATHS = NO; 365 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 366 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 367 | CLANG_CXX_LIBRARY = "libstdc++"; 368 | CLANG_ENABLE_MODULES = YES; 369 | CLANG_ENABLE_OBJC_ARC = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_CONSTANT_CONVERSION = YES; 372 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 373 | CLANG_WARN_EMPTY_BODY = YES; 374 | CLANG_WARN_ENUM_CONVERSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 377 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 378 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 379 | COPY_PHASE_STRIP = NO; 380 | GCC_C_LANGUAGE_STANDARD = "compiler-default"; 381 | GCC_DYNAMIC_NO_PIC = NO; 382 | GCC_OPTIMIZATION_LEVEL = 0; 383 | GCC_PREPROCESSOR_DEFINITIONS = ( 384 | "DEBUG=1", 385 | "$(inherited)", 386 | ); 387 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 388 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 389 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 390 | GCC_WARN_UNDECLARED_SELECTOR = YES; 391 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 392 | GCC_WARN_UNUSED_FUNCTION = YES; 393 | GCC_WARN_UNUSED_VARIABLE = YES; 394 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 395 | ONLY_ACTIVE_ARCH = YES; 396 | SDKROOT = iphoneos; 397 | }; 398 | name = Debug; 399 | }; 400 | 008418F318D9204700237FB2 /* Release */ = { 401 | isa = XCBuildConfiguration; 402 | buildSettings = { 403 | ALWAYS_SEARCH_USER_PATHS = NO; 404 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 405 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 406 | CLANG_CXX_LIBRARY = "libstdc++"; 407 | CLANG_ENABLE_MODULES = YES; 408 | CLANG_ENABLE_OBJC_ARC = YES; 409 | CLANG_WARN_BOOL_CONVERSION = YES; 410 | CLANG_WARN_CONSTANT_CONVERSION = YES; 411 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 412 | CLANG_WARN_EMPTY_BODY = YES; 413 | CLANG_WARN_ENUM_CONVERSION = YES; 414 | CLANG_WARN_INT_CONVERSION = YES; 415 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = YES; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | GCC_C_LANGUAGE_STANDARD = "compiler-default"; 421 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 422 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 423 | GCC_WARN_UNDECLARED_SELECTOR = YES; 424 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 425 | GCC_WARN_UNUSED_FUNCTION = YES; 426 | GCC_WARN_UNUSED_VARIABLE = YES; 427 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 428 | SDKROOT = iphoneos; 429 | VALIDATE_PRODUCT = YES; 430 | }; 431 | name = Release; 432 | }; 433 | 008418F518D9204700237FB2 /* Debug */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 437 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 439 | CLANG_CXX_LIBRARY = "libstdc++"; 440 | FRAMEWORK_SEARCH_PATHS = ( 441 | "$(inherited)", 442 | /Users/cheetah/projects, 443 | /Users/cheetah/Downloads, 444 | "/Users/cheetah/lab/oc/MobileVLCKit-SDK", 445 | "/Users/apple/Desktop/VLC/MobileVLCKit-SDK", 446 | ); 447 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 448 | GCC_PREFIX_HEADER = ""; 449 | INFOPLIST_FILE = "VLCKitPlayer/MobileVLCKitPlayer-Info.plist"; 450 | PRODUCT_NAME = MobileVLCKitPlayer; 451 | WRAPPER_EXTENSION = app; 452 | }; 453 | name = Debug; 454 | }; 455 | 008418F618D9204700237FB2 /* Release */ = { 456 | isa = XCBuildConfiguration; 457 | buildSettings = { 458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 459 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 461 | CLANG_CXX_LIBRARY = "libstdc++"; 462 | FRAMEWORK_SEARCH_PATHS = ( 463 | "$(inherited)", 464 | /Users/cheetah/projects, 465 | /Users/cheetah/Downloads, 466 | "/Users/cheetah/lab/oc/MobileVLCKit-SDK", 467 | "/Users/apple/Desktop/VLC/MobileVLCKit-SDK", 468 | ); 469 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 470 | GCC_PREFIX_HEADER = ""; 471 | INFOPLIST_FILE = "VLCKitPlayer/MobileVLCKitPlayer-Info.plist"; 472 | PRODUCT_NAME = MobileVLCKitPlayer; 473 | WRAPPER_EXTENSION = app; 474 | }; 475 | name = Release; 476 | }; 477 | /* End XCBuildConfiguration section */ 478 | 479 | /* Begin XCConfigurationList section */ 480 | 008418BD18D9204600237FB2 /* Build configuration list for PBXProject "MobileVLCKitPlayer" */ = { 481 | isa = XCConfigurationList; 482 | buildConfigurations = ( 483 | 008418F218D9204700237FB2 /* Debug */, 484 | 008418F318D9204700237FB2 /* Release */, 485 | ); 486 | defaultConfigurationIsVisible = 0; 487 | defaultConfigurationName = Release; 488 | }; 489 | 008418F418D9204700237FB2 /* Build configuration list for PBXNativeTarget "MobileVLCKitPlayer" */ = { 490 | isa = XCConfigurationList; 491 | buildConfigurations = ( 492 | 008418F518D9204700237FB2 /* Debug */, 493 | 008418F618D9204700237FB2 /* Release */, 494 | ); 495 | defaultConfigurationIsVisible = 0; 496 | defaultConfigurationName = Release; 497 | }; 498 | /* End XCConfigurationList section */ 499 | }; 500 | rootObject = 008418BA18D9204600237FB2 /* Project object */; 501 | } 502 | -------------------------------------------------------------------------------- /VLCKitPlayer/MobileVLCKitPlayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DVIAppDelegate.h 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DVIAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // DVIAppDelegate.m 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import "DVIAppDelegate.h" 10 | 11 | @implementation DVIAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // 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. 22 | // 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. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // 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. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 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 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIPlayerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DVIPlayerViewController.h 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-21. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DVIPlayerViewController : UIViewController 12 | @property (nonatomic, copy) NSString *mediaPath; 13 | @end 14 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIPlayerViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DVIPlayerViewController.m 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-21. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import "DVIPlayerViewController.h" 10 | 11 | #import 12 | 13 | @interface DVIPlayerViewController () 14 | @property (strong, nonatomic) IBOutlet UIView *mediaView; 15 | @property (nonatomic, strong) VLCMediaPlayer *vlcPlayer; 16 | @end 17 | 18 | @implementation DVIPlayerViewController 19 | 20 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 21 | { 22 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 23 | if (self) { 24 | // Custom initialization 25 | } 26 | return self; 27 | } 28 | 29 | - (void)viewDidLoad 30 | { 31 | [super viewDidLoad]; 32 | // Do any additional setup after loading the view. 33 | 34 | _vlcPlayer = [[VLCMediaPlayer alloc] initWithOptions:nil]; 35 | _vlcPlayer.drawable = self.mediaView; 36 | 37 | // @"rtmp://livertmppc.wasu.cn/live/dfws" 38 | //http://192.168.1.254/hdmv.mp4 39 | 40 | VLCMedia *media = [VLCMedia mediaWithURL:[NSURL URLWithString: _mediaPath]]; 41 | [_vlcPlayer setMedia:media]; 42 | [_vlcPlayer play]; 43 | } 44 | 45 | - (void)viewWillDisappear:(BOOL)animated 46 | { 47 | [_vlcPlayer stop]; 48 | 49 | [super viewWillDisappear:animated]; 50 | } 51 | 52 | - (void)didReceiveMemoryWarning 53 | { 54 | [super didReceiveMemoryWarning]; 55 | // Dispose of any resources that can be recreated. 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DVIViewController.h 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DVIViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/DVIViewController.mm: -------------------------------------------------------------------------------- 1 | // 2 | // DVIViewController.m 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import "DVIViewController.h" 10 | #import "DVIPlayerViewController.h" 11 | 12 | @interface DVIViewController () 13 | @property (strong, nonatomic) IBOutlet UITextField *urlTextField; 14 | @end 15 | 16 | @implementation DVIViewController 17 | 18 | - (void)viewDidLoad 19 | { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | 23 | _urlTextField.text = @"rtmp://live.hkstv.hk.lxdns.com/live/hks"; 24 | 25 | } 26 | 27 | - (void)didReceiveMemoryWarning 28 | { 29 | [super didReceiveMemoryWarning]; 30 | // Dispose of any resources that can be recreated. 31 | } 32 | 33 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 34 | { 35 | DVIPlayerViewController *playerCtrl = [segue destinationViewController]; 36 | playerCtrl.mediaPath = _urlTextField.text; 37 | } 38 | @end 39 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/Images.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" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/MobileVLCKitPlayer-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.diveinedu.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/MobileVLCKitPlayer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // VLCKitPlayer 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "DVIAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DVIAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayerTests/MobileVLCKitPlayerTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.diveinedu.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayerTests/VLCKitPlayerTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // VLCKitPlayerTests.m 3 | // VLCKitPlayerTests 4 | // 5 | // Created by 吴琼 on 14-3-19. 6 | // Copyright (c) 2014年 戴维营教育. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface VLCKitPlayerTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation VLCKitPlayerTests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /VLCKitPlayer/VLCKitPlayerTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PKG_NAME="MobileVLCKit-framework-latest.tar.gz" 4 | rm -rf ./MobileVLCKit.framework 5 | echo "Downloading $PKG_NAME, wait..." 6 | 7 | curl "http://wuqiong.info:8088/download/${PKG_NAME}" -o "${PKG_NAME}" > /dev/null 2>&1 8 | 9 | if [ $? == 0 ]; 10 | then 11 | echo "Downloaded the package! ${PKG_NAME}"; 12 | fi 13 | if [ ! -f $PKG_NAME ]; 14 | then 15 | echo "error! ${PKG_NAME} doesn't exist!" 16 | exit -1; 17 | fi 18 | 19 | echo "Prepareing to extract......" 20 | tar xzvf $PKG_NAME; 21 | 22 | if [ $? != 0 ]; 23 | then 24 | echo "Extracting ${PKG_NAME} failed!" 25 | else 26 | echo "Bootstraping the Framework done, Enjoy!" 27 | fi 28 | 29 | -------------------------------------------------------------------------------- /discuss.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuqiong/MobileVLCKit-SDK/0183af538eac6ac5e6b8939554009b99a478e9b5/discuss.jpg -------------------------------------------------------------------------------- /snapshot1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuqiong/MobileVLCKit-SDK/0183af538eac6ac5e6b8939554009b99a478e9b5/snapshot1.jpg -------------------------------------------------------------------------------- /snapshot2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wuqiong/MobileVLCKit-SDK/0183af538eac6ac5e6b8939554009b99a478e9b5/snapshot2.jpg --------------------------------------------------------------------------------