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

Can not pause FLV files which have no metadata #89

Open
etp-alfonso opened this Issue Jul 18, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@etp-alfonso

etp-alfonso commented Jul 18, 2012

I'm using jPlayer to play user submitted FLV files. They sometimes have no metadata. With those files, pause is not working and video keeps playing.
Running the videos through FLVtool2 or YAMDI say they have no metadata and repairing them makes jPlayer SWF work again.
Altough I'm no Flash programmer, I did some research and found that setting this var to TRUE makes it work again. It has some side effects and it's just a dirty hack, but I hope at least it's a start.
Also, there I've found a support request in groups which may be related.
TIA.

@ghost

This comment has been minimized.

Contributor

ghost commented Nov 6, 2013

I'll keep the FLV playback without metadata issue in mind, but FLV are not our primary concern. It was added as a bit of a bonus, simply because the mp4 player also works with FLVs.

@happyworm happyworm closed this Nov 6, 2013

@pataquets

This comment has been minimized.

pataquets commented Nov 6, 2013

Too bad FLV playing has not the same love than other formats :(
Shouldn't this be warned/noticed somewhere in the docs in case anybody else trips on it? At least we should avoid more hair pulling for others. Or at least, leave the issue open as a "known bug" record. IMO, it doesn't hurt to leave the issue open in case someone has interest in working on it.
About the code, I'm no Flash programmer but, what would be the fix? If it is easy enough, I can give it a shot and try to fix it myself.
BTW, the link to the code in the OP is outdated, it should be: https://github.com/happyworm/jPlayer/blob/f7ebe5b65859250df2a3d2ac6b7b6607e6bb8691/actionscript/happyworm/jPlayer/JplayerStatus.as#L73

@ghost

This comment has been minimized.

Contributor

ghost commented Nov 6, 2013

Yeah I figured it was the:

metaDataReady = false;

...property that needed to be set true in order to hack/fix the problem.

The problem with the metadata not being available is that the duration of the FLV is not known, so most of the information cannot be calculated... I'm talking about progress bars and so on... In many ways, without metadata the FLV is more like a live-stream, where you just play it, maybe pausing and playing it again along the way, until it reaches the end. You can not change the currentTime using the progress bars, since it has no knowledge of how long the track is.

I will add this issue to the docs as a known issue and reopen it then.

@happyworm happyworm reopened this Nov 6, 2013

@pataquets

This comment has been minimized.

pataquets commented Nov 6, 2013

Thank you!

@thepag thepag added the Flash label Nov 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment