-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,133 additions
and
679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## Submitting issues | ||
|
||
* First of all, please [search](https://github.com/0xced/XCDYouTubeKit/issues) if your issue has already been filed. | ||
* Read the [documentation](http://cocoadocs.org/docsets/XCDYouTubeKit/), the solution to your issue might be there. | ||
* Make sure you are using the [latest version](https://github.com/0xced/XCDYouTubeKit/releases) of XCDYouTubeKit. | ||
* State which version of XCDYouTubeKit you use in your report. | ||
* State which version of the iOS or OS X SDK you use. | ||
* State which device (or simulator) you use and the exact OS version in your report. | ||
* If you encounter a crash, provide a stack trace. At the time of the crash, just type the `bt all` command in the (lldb) command prompt. If you got a crash report from HockeyApp or Crashlytics for example, include the stack trace too, preferably in textual form instead of a screenshot for easier searching. | ||
* In your report, describe exactly | ||
* **what you did** | ||
* **what you expected** | ||
* **what you observed** | ||
|
||
--- | ||
|
||
Here is an example of a good bug report: | ||
|
||
1. With the provided XCDYouTubeKit Demo app | ||
2. Using XCDYouTubeKit 2.0.3 and iOS SDK 8.0 | ||
3. Running iPhone 4s simulator on iOS 7.1 | ||
4. In the *Full Screen Player* view of the demo app, I entered the video identifier `EdeVaT-zZt44` and pressed the *Play Full Screen* button. The *Low Quality* switch was off. | ||
5. I expected the video *Better* from Apple to play. | ||
6. Instead, the player closed immediately with the following log in the Xcode console: | ||
|
||
``` | ||
2015-01-11 14:50:40.994 XCDYouTubeKit iOS Demo[67501:60b] Finish Reason: Playback Error | ||
Error Domain=XCDYouTubeVideoErrorDomain Code=2 "Invalid parameters." UserInfo=0x7a6955a0 {NSURL=https://www.youtube.com/get_video_info?el=detailpage&hl=en&ps=default&video_id=EdeVaT-zZt44, NSLocalizedDescription=Invalid parameters.} | ||
``` | ||
|
||
(The problem here is that the video identifier is invalid: `EdeVaT-zZt44` with an extra `4` instead of `EdeVaT-zZt4`) | ||
|
||
--- | ||
|
||
If your problem can not be demonstrated with the demo app, please provide a test app yourself. A link to a zipped Xcode project is fine but a GitHub repository with your test app is even better. You don’t need to provide your whole app. Create a test app with the very minimum code required in order to exhibit your problem. During the process of reducing your test app to the minimum, you are very likely to find the solution to your problem by yourself, try it! | ||
|
||
## Submitting pull requests | ||
|
||
* Please try to follow the coding style of the project as much as you can. | ||
* Unless your pull request is a trivial fix such as a typo, please make sure to have a unit test covering your changes. | ||
* I am using git flow, so it means that the current development happens on the `develop` branch. Please submit your pull requests on the `develop` branch. See also the GitHub guide on [Forking Projects](https://guides.github.com/activities/forking/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// VideoPickerController.h | ||
// XCDYouTubeKit Demo | ||
// | ||
// Created by Cédric Luthi on 20.01.15. | ||
// Copyright (c) 2015 Cédric Luthi. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class VideoPickerController; | ||
|
||
@protocol VideoPickerControllerDelegate <NSObject> | ||
@optional | ||
- (void) videoPickerController:(VideoPickerController *)videoPickerController didSelectVideoWithIdentifier:(NSString *)videoIdentifier; | ||
@end | ||
|
||
@interface VideoPickerController : NSObject <UIPickerViewDataSource, UIPickerViewDelegate> | ||
|
||
@property (nonatomic, copy) NSArray *videos; | ||
|
||
@property (nonatomic, weak) IBOutlet id<VideoPickerControllerDelegate> delegate; | ||
|
||
@property (nonatomic, weak) IBOutlet UIPickerView *pickerView; | ||
|
||
- (IBAction) togglePickerView:(id)sender; | ||
- (IBAction) showPickerView:(id)sender; | ||
- (IBAction) hidePickerView:(id)sender; | ||
|
||
@end |
Oops, something went wrong.