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

Wrong calculation in seekPercentage() in examples. #69

Open
RuZniki opened this issue Dec 3, 2014 · 1 comment
Open

Wrong calculation in seekPercentage() in examples. #69

RuZniki opened this issue Dec 3, 2014 · 1 comment

Comments

@RuZniki
Copy link

RuZniki commented Dec 3, 2014

$event.target.offsetWidth have different value depends on click place.
image

If we click on the area which not was played before everything {green arrow} seekPercentage works good. Because target area is
$event.target = (div.progress) which have static width.

But if click target in played area {red arrow}.
$event.target = (div.progress-bar) which have fluid width, calculation become wrong.

To reproduce bug, just click two times in one place at red arrow (div.progress-bar).

RuZniki added a commit to RuZniki/angular-media-player that referenced this issue Dec 3, 2014
@targetoyes
Copy link

it all works good but sometimes it can't get the src of the playlist,in web console shows that it cant get the resource,i cant find way to solve it.

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