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

myFluidPlayer.on('error', function(){ }) #241

Open
Yahook opened this Issue Jul 7, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@Yahook

Yahook commented Jul 7, 2018

Dear deverlopers of Fluid Player,

I started to use FluidPlayer on my websites, but I can't find a very important function which will allow me to do something on errors. For example video is missing for some reason and in this case I want to catch this error, load a new video url into a player and play it and if it's needed to repeat this again. How can I do that?

@cian-exads

This comment has been minimized.

Collaborator

cian-exads commented Jul 9, 2018

Hi @Yahook, we'll be continuing to add more Fluid Player API calls like those outlined in the Fluid Player Docs, but at the moment there's none for catching errors. For now you'll need to do it manually, there are plenty of articles on handling html5 video errors - https://stackoverflow.com/questions/5573461/html5-video-error-handling

I'll keep this issue open and will bring it up to be looked at for future development.

@Yahook

This comment has been minimized.

Yahook commented Jul 9, 2018

Thanks for the link to stackoverflow. I will try it. I'm talking about errors when video link exists but it's not valid for some reason (for example it's expired). In this case I want to request a new link from cdn and load it into a player. Is it possible to load a new video url via api when player is already created?

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