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

Seekbar not working in chorme and firefox version : 2.9.2 #345

Open
shivasingh0101 opened this issue Jan 4, 2016 · 7 comments
Open

Seekbar not working in chorme and firefox version : 2.9.2 #345

shivasingh0101 opened this issue Jan 4, 2016 · 7 comments

Comments

@shivasingh0101
Copy link

When I supply the sample url http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v it s working but when supply my own server media url it is not working and the actual issue is getting width:0% for div tag with class jp-seek-bar. I have checked streaming the media with 200 and 206 response codes also. Can anybody suggest me what im doing wrong?

@erikmartinessanches
Copy link

erikmartinessanches commented Jul 13, 2016

I have the same problem. jp-seek-bar progress remains at width: 0% and also <div class="jp-play-bar progress-bar progress-bar-success" style="width: 0%;"> Using jQuery 2.2.0, playlist and own mp3 files.

@1khushigrewal
Copy link

Anyone got the solution of problem jp-seek-bar class getting the style width: 0% constantly while media playing.Problem seems to be occuring in _updateInterface function if we comment out this.css.jq.seekBar.width(this.status.seekPercent+"%"); then working tracks continues to use jp-seek-bar normally but width that constantly remaining 0% gets solved.

@GuyPaddock
Copy link

Any update on this issue?

@sanjay-wagento
Copy link

I set Response.AddHeader("Accept-Ranges", "bytes"); and it works

@aramboyajyan
Copy link

aramboyajyan commented Mar 15, 2018

I run into the same issue; adding Accept-Ranges: bytes solved the problem. Thanks @sanjay-wagento!

To explain it for anyone else who encounters this: Accept-Ranges: bytes should be set in response header for downloading the file. I didn't test this enough, but it is possible that the issue happens only when the file is not linked directly on the server, but is served via code.

@SAFatemi
Copy link

SAFatemi commented Dec 4, 2020

Adding for PHP:
header('Accept-Ranges: bytes');

@loukltd
Copy link

loukltd commented Jun 21, 2021

I posted an issue regarding this but I found adding the following function fixed my code

 // User clicks
  $(".jp-seek-bar").click(function(e) {
    var offset = $(this).offset();
    var totalWidth = $(this).outerWidth();
    var left = e.pageX - offset.left;
    var totalDuration = $("#jquery_jplayer_1").data("jPlayer").status.duration;
    var currentPosition = (left * totalDuration) / totalWidth;
    // Move player to current position
    $("#jquery_jplayer_1").jPlayer("play", currentPosition);
  });

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

8 participants