在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:youtube/youtube-ios-player-helper开源软件地址:https://github.com/youtube/youtube-ios-player-helper开源编程语言:Objective-C 88.9%开源软件介绍:YouTube-Player-iOS-HelperOverviewTo run the example project; clone the repo, and run InstallationCocoaPodsYouTube-Player-iOS-Helper is available through CocoaPods. To install the library, add the following line to your Podfile and replace "x.y.z" with the latest version.
Swift Package ManagerAdd the following line to the dependencies in your .package("https://github.com/youtube/youtube-ios-player-helper.git", from: "x.y.z") Add .target(name: "TargetName",
dependencies: [
"YouTubeiOSPlayerHelper"
]
) UsageAfter installing in your project, to use the library:
@property(nonatomic, strong) IBOutlet YTPlayerView *playerView;
[self.playerView loadWithVideoId:@"M7lc1UVf-VE"];
See the sample project for more advanced uses, including passing additional player parameters and working with callbacks via YTPlayerViewDelegate. Original Authors
LicenseYouTube-Player-iOS-Helper is available under the Apache 2.0 license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论