Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get time play on videos #28

Open
jcallaNewsCorp opened this issue Mar 29, 2022 · 1 comment
Open

Cannot get time play on videos #28

jcallaNewsCorp opened this issue Mar 29, 2022 · 1 comment

Comments

@jcallaNewsCorp
Copy link

jcallaNewsCorp commented Mar 29, 2022

We have this error
Screen Shot 2022-03-29 at 15 31 20

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
Screen Shot 2022-03-29 at 15 51 32
getCurrentTime is from YoutubePlayer-in-WKWebView

Framework YoutubePlayer-in-WKWebView

@hmhv
Copy link
Owner

hmhv commented Apr 1, 2022

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) {

スクリーンショット 2022-04-01 23 48 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants