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

Full screen seek position reset during rotation #21

Open
FranciscoTavares opened this issue Oct 31, 2019 · 7 comments
Open

Full screen seek position reset during rotation #21

FranciscoTavares opened this issue Oct 31, 2019 · 7 comments

Comments

@FranciscoTavares
Copy link

Issue

  • In full screen rotation the video returns to the beginning. Sometimes it works and sometimes it doesn't work.

I tested with the repository example.

@pragyawebvillee
Copy link

@FranciscoTavares, Have you found any solution for this? I got the same issue.
When changed to landscape mode, video starts from beginning.

@gohugo
Copy link

gohugo commented Nov 17, 2019

maybe you can set the orientation of your activity ?

@pragyawebvillee
Copy link

pragyawebvillee commented Nov 22, 2019

@gohugo I don't want to restrict user to watch video in portrait / landscape mode.

@kumananchandru
Copy link

Facing the same issue. When clicking the full screen it starts from the beginning.

@sanamdongol
Copy link

Facing the same issue. When clicking the full screen it starts from the beginning.

Have you found the solution?

@FranciscoTavares
Copy link
Author

I had to use ExoPlayer and get the information from their SDK videos. I had more work but it worked.

@Mohaymin
Copy link

Mohaymin commented Jul 16, 2022

I used the following workaround:

Inside vimeoPlayerView's addReadyListener() method, I implemented onReady() in the following way:

@Override
public void onReady(String title, float duration, TextTrack[] textTrackArray) {
                vimeoPlayerView.seekTo(startAt);
                Handler handler = new Handler(Looper.getMainLooper());
                handler.postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        vimeoPlayerView.play();
                    }
                }, 700);
            }

Apparantly, executing vimeoPlayerView.play() after some milliseconds solves the issue.

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

6 participants