截图
https://www.videolan.org/vlc/download-ios.html
Binary
You can also get the binary from our servers instead of the App Store: [VLC for iOS 3.1.5 binary](http://get.videolan.org/vlc-iOS/3.1.5/vlc-ios-3.1.5.ipa)
.
A binary version of MobileVLCKit is available through CocoaPods.
创建 VLC 项目
1 | pod init |
更新 pod
1 | pod repo update |
安装 MobileVLCKit
1 | pod install --verbose |
下载实在太慢了
1 | cat ~/.cocoapods/repos/master/Specs/b/f/7/MobileVLCKit/3.3.2/MobileVLCKit.podspec.json | grep http |
用 Motrix
下载上面的 MobileVLCKit-3.3.2-***.tar.xz
更换 http
地址,进入下载好的地址
启动 Python3 Http Server
1 | python3 -m http.server 80 |
更换 http
地址为本地地址
1 | diff --git a/Specs/b/f/7/MobileVLCKit/3.3.2/MobileVLCKit.podspec.json b/Specs/b/f/7/MobileVLCKit/3.3.2/MobileVLCKit.podspec.json |
重新安装
1 | pod install --verbose |
终于安装成功了!
使用
添加 Project-Bridge-Header.h
头文件
这里的是 VLC-Bridge-Header.h
- 添加 VLC-Bridge-Header.h -> “#import “MobileVLCKit/MobileVLCKit.h””
- Build Settings -> Objective-C Bridging Header -> “VLC/VLC-Bridge-Header.h”
源码:https://github.com/iOSDevLog/VLC-iOS
微信公众号
License
iOSDevLog.github.io is released under the MIT license. See LICENSE for details.