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

Long videos have a fast-pacing or skipping stuttering issue #786

Open
ibrahimozdenkotic opened this issue Apr 17, 2023 · 0 comments
Open

Comments

@ibrahimozdenkotic
Copy link

In long videos, for example, in videos lasting 1 or 1.5 hours, when skipping to any minute or skipping fast forward, the video gets stuck and does not progress. What settings need to be changed? This is the code I tried:

<video id="videoElement" controls width="640" height="560" muted data-url="{{ $url }}"
        data-duration="{{ $duration }}">
        <script src="https://cdn.jsdelivr.net/npm/flv.js@^1.6.2/dist/flv.min.js"></script>

        <script>
            if (flvjs.isSupported()) {
                var url = document.getElementById('videoElement').getAttribute('data-url');
                var duration = document.getElementById('videoElement').getAttribute('data-duration');
                var videoElement = document.getElementById('videoElement');
                var flvPlayer = flvjs.createPlayer({
                    type: 'flv',
                    url: url,
                    duration: duration,
                    isLive: true,

                });
                flvPlayer.attachMediaElement(videoElement);
                flvPlayer.load();
                flvPlayer.play();
            }
        </script>
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

1 participant