Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 86d5c8a

Browse files
committed
Merge pull request #183 from jlampa/remove-deprecated-clearVideo-method
Remove deprecated method: clearVideo
2 parents 8a1172e + 5400560 commit 86d5c8a

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

Classes/YTPlayerView.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,6 @@ typedef NS_ENUM(NSInteger, YTPlayerError) {
271271
*/
272272
- (void)seekToSeconds:(float)seekToSeconds allowSeekAhead:(BOOL)allowSeekAhead;
273273

274-
/**
275-
* Clears the loaded video from the player. Corresponds to this method from
276-
* the JavaScript API:
277-
* https://developers.google.com/youtube/iframe_api_reference#clearVideo
278-
*/
279-
- (void)clearVideo;
280-
281274
#pragma mark - Queuing videos
282275

283276
// Queueing functions for videos. These methods correspond to their JavaScript

Classes/YTPlayerView.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ - (void)seekToSeconds:(float)seekToSeconds allowSeekAhead:(BOOL)allowSeekAhead {
122122
[self stringFromEvaluatingJavaScript:command];
123123
}
124124

125-
- (void)clearVideo {
126-
[self stringFromEvaluatingJavaScript:@"player.clearVideo();"];
127-
}
128-
129125
#pragma mark - Cueing methods
130126

131127
- (void)cueVideoById:(NSString *)videoId

Project/youtube-player-ios-example/youtube-player-ios-exampleTests/youtube_player_ios_exampleTests.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,6 @@ - (void)testStopVideo {
149149
[mockWebView verify];
150150
}
151151

152-
- (void)testClearVideo {
153-
[[mockWebView expect] stringByEvaluatingJavaScriptFromString:@"player.clearVideo();"];
154-
[playerView clearVideo];
155-
[mockWebView verify];
156-
}
157-
158152
- (void)testSeekTo {
159153
[[mockWebView expect] stringByEvaluatingJavaScriptFromString:@"player.seekTo(5.5, false);"];
160154
[playerView seekToSeconds:5.5 allowSeekAhead:NO];

0 commit comments

Comments
 (0)