Skip to content

Commit

Permalink
Merge pull request #183 from jlampa/remove-deprecated-clearVideo-method
Browse files Browse the repository at this point in the history
Remove deprecated method: clearVideo
  • Loading branch information
ulukaya committed Mar 11, 2016
2 parents 8a1172e + 5400560 commit 86d5c8a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
7 changes: 0 additions & 7 deletions Classes/YTPlayerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,6 @@ typedef NS_ENUM(NSInteger, YTPlayerError) {
*/
- (void)seekToSeconds:(float)seekToSeconds allowSeekAhead:(BOOL)allowSeekAhead;

/**
* Clears the loaded video from the player. Corresponds to this method from
* the JavaScript API:
* https://developers.google.com/youtube/iframe_api_reference#clearVideo
*/
- (void)clearVideo;

#pragma mark - Queuing videos

// Queueing functions for videos. These methods correspond to their JavaScript
Expand Down
4 changes: 0 additions & 4 deletions Classes/YTPlayerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ - (void)seekToSeconds:(float)seekToSeconds allowSeekAhead:(BOOL)allowSeekAhead {
[self stringFromEvaluatingJavaScript:command];
}

- (void)clearVideo {
[self stringFromEvaluatingJavaScript:@"player.clearVideo();"];
}

#pragma mark - Cueing methods

- (void)cueVideoById:(NSString *)videoId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ - (void)testStopVideo {
[mockWebView verify];
}

- (void)testClearVideo {
[[mockWebView expect] stringByEvaluatingJavaScriptFromString:@"player.clearVideo();"];
[playerView clearVideo];
[mockWebView verify];
}

- (void)testSeekTo {
[[mockWebView expect] stringByEvaluatingJavaScriptFromString:@"player.seekTo(5.5, false);"];
[playerView seekToSeconds:5.5 allowSeekAhead:NO];
Expand Down

0 comments on commit 86d5c8a

Please sign in to comment.