ct7ct7ct7 / Android-VimeoPlayer

Unofficial Vimeo video player library for Android.
https://ct7ct7ct7.github.io/Android-VimeoPlayer
MIT License
56 stars 39 forks source link

Full screen seek position reset during rotation #21

Open FranciscoTavares opened 5 years ago

FranciscoTavares commented 5 years ago

Issue

I tested with the repository example.

pragyawebvillee commented 5 years ago

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

gohugo commented 5 years ago

maybe you can set the orientation of your activity ?

pragyawebvillee commented 5 years ago

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

kumananchandru commented 4 years ago

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

sanamdongol commented 4 years ago

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

Have you found the solution?

FranciscoTavares commented 4 years ago

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

Mohaymin commented 2 years ago

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.