Cannot get time play on videos
Opened this issue · 1 comments
jcallaNewsCorp commented
Step to reproduce this issue:
1 - Play a youtube video using this framework
2 - debug and get value of getCurrentTime
. It will appear 0
3 - Change mode in Portrait or Landscape mode.
4 - Repeat step 2
If we debugging on this code to get the time of the video, we always get 0
getCurrentTime
is from YoutubePlayer-in-WKWebView
Framework YoutubePlayer-in-WKWebView
hmhv commented
I checked it with fixed example code and i can get correct current time.
Did you play any special movie?
} else if (sender == self.pauseButton) {
[self.playerView getCurrentTime:^(float time, NSError * _Nullable error) {
if (!error) {
[wself appendStatusText:[NSString stringWithFormat:@"pause time: %.0f seconds\n", time]];
}
}];
[self.playerView pauseVideo];
} else if (sender == self.reverseButton) {